NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Strange "hard link" after fsck
Hello,
One of my server runs netbsd-7 (very recent CVS tree). This server has
paniced as I have tried to use altqd on an OpenVPN link. I have done
fsck in single user mode on all slices and fsck has reconnected a
directory in /usr/lost+found. I don't understand how delete this
directory, it seems to be a hard link on /root but /root and /usr are
not on the same slice !...
legendrelegendre# mount
/dev/ld0a on / type ffs (log, local)
/dev/ld0f on /var type ffs (log, local)
/dev/ld0e on /usr type ffs (log, local)
/dev/ld0g on /home type ffs (log, NFS exported, local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
tmpfs on /var/shm type tmpfs (local)
# df -h
Filesystem Size Used Avail %Cap Mounted on
/dev/ld0a 31G 21G 8.4G 71% /
/dev/ld0f 31G 644M 29G 2% /var
/dev/ld0e 62G 18G 41G 30% /usr
/dev/ld0g 775G 265G 471G 36% /home
kernfs 1.0K 1.0K 0B 100% /kern
ptyfs 1.0K 1.0K 0B 100% /dev/pts
procfs 4.0K 4.0K 0B 100% /proc
tmpfs 4.0G 24K 4.0G 0% /var/shm
legendre# cd /usr
legendre# ls -l
total 82
drwxr-xr-x 8 root wheel 512 Jan 5 12:20 X11R7
drwxr-xr-x 2 root wheel 8192 Jan 17 17:59 bin
drwxr-xr-x 3 root wheel 1024 Jan 17 17:57 games
drwxr-xr-x 61 root wheel 5120 Jan 17 17:55 include
drwxr-xr-x 7 root wheel 31232 Jan 17 17:56 lib
drwxr-xr-x 6 root wheel 512 Jan 5 12:20 libdata
drwxr-xr-x 5 root wheel 1536 Jan 17 17:59 libexec
drwxr-xr-x 6 root wheel 512 Jan 6 12:49 local
drwx-----T 3 root wheel 512 Jan 17 17:35 lost+found
drwxr-xr-x 2 root wheel 512 Jan 16 21:21 mdec
drwxr-xr-x 24 root wheel 512 Jan 17 17:45 obj
drwxr-xr-x 18 root wheel 512 Jan 17 17:26 pkg
drwxr-xr-x 88 root wheel 2048 Jan 18 00:11 pkgsrc
drwxr-xr-x 2 root wheel 6144 Jan 17 17:57 sbin
drwxr-xr-x 33 root wheel 1024 Jan 5 12:20 share
drwxr-xr-x 29 root wheel 1024 Jan 18 00:13 src
drwxr-xr-x 24 root wheel 512 Jan 16 21:23 tests
drwxr-xr-x 12 root wheel 512 Jan 6 17:09 tools
drwxr-xr-x 6 root wheel 512 Jan 16 19:17 xsrc
legendre# cd lost+found/
legendre# ls -l
total 2
drwxr-xr-x 3 root wheel 512 Jul 18 2015 #3470097
legendre# pwd
/usr/lost+found
legendre# cd #3470097/
legendre# pwd
/root
legendre#
Of course, I have restarted a new fsck on /usr in single user mode
without any result.
I don't understand how fsck can reconnect a directory that should be on
another slice.
Any idea ?
Best regards,
JKB
Home |
Main Index |
Thread Index |
Old Index