Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2011 14:30:51 +0700
From:      Eugene Grosbein <eugen@rdtc.ru>
To:        Kurt Jaeger <lists@c0mplx.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Filesystem strangeness
Message-ID:  <20110405073051.GA65834@rdtc.ru>
In-Reply-To: <20110405072227.GE34314@home.opsec.eu>
References:  <20110405072227.GE34314@home.opsec.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110405073051.GA65834>