From owner-freebsd-stable@FreeBSD.ORG Tue Apr 5 07:49:30 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D3C7106566B for ; Tue, 5 Apr 2011 07:49:30 +0000 (UTC) (envelope-from eugen@eg.sd.rdtc.ru) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [62.231.161.221]) by mx1.freebsd.org (Postfix) with ESMTP id AF9218FC15 for ; Tue, 5 Apr 2011 07:49:29 +0000 (UTC) Received: from eg.sd.rdtc.ru (localhost [127.0.0.1]) by eg.sd.rdtc.ru (8.14.4/8.14.4) with ESMTP id p357UuJn065883; Tue, 5 Apr 2011 14:30:56 +0700 (NOVST) (envelope-from eugen@eg.sd.rdtc.ru) Received: (from eugen@localhost) by eg.sd.rdtc.ru (8.14.4/8.14.4/Submit) id p357UpFO065882; Tue, 5 Apr 2011 14:30:51 +0700 (NOVST) (envelope-from eugen) Date: Tue, 5 Apr 2011 14:30:51 +0700 From: Eugene Grosbein To: Kurt Jaeger Message-ID: <20110405073051.GA65834@rdtc.ru> References: <20110405072227.GE34314@home.opsec.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110405072227.GE34314@home.opsec.eu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: Filesystem strangeness X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 07:49:30 -0000 On Tue, Apr 05, 2011 at 09:22:27AM +0200, Kurt Jaeger wrote: > On a FreeBSD 8.0-RELEASE i386 (GENERIC kernel): > > # cd /usr/src/sys/boot/efi/libefi/ > # ls -l > ls: efinet.c: Bad file descriptor Your file system it broken and needs fsck. > total 38 > -rw-r--r-- 1 root wheel 461 Oct 25 2009 Makefile > -rw-r--r-- 1 root wheel 1777 Oct 25 2009 delay.c > -rw-r--r-- 1 root wheel 2682 Oct 25 2009 efi_console.c > -rw-r--r-- 1 root wheel 9957 Oct 25 2009 efifs.c > -rw-r--r-- 1 root wheel 2269 Oct 25 2009 errno.c > -rw-r--r-- 1 root wheel 2536 Oct 25 2009 handles.c > -rw-r--r-- 1 root wheel 5712 Oct 25 2009 libefi.c > -rw-r--r-- 1 root wheel 6087 Oct 25 2009 time.c > # df /usr > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/ad4s1e 101554150 3143488157741142862 -3143488157647713044 3364544879817% /usr > gk-hwkrt-new# > > The last reboot did not do any fsck, smartctl does not complain. > So, what can I do to fix this ? Go to single user mode, unmount /usr and run "fsck -y /usr" Eugene Grosbein