Filesystem strangeness
Eugene Grosbein
eugen at rdtc.ru
Tue Apr 5 07:49:30 UTC 2011
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
More information about the freebsd-stable
mailing list