During the rc startup sequence, fsck fails to check this one ext2
partition (known as /dev/sd0i and a7e6ed0a30d39bcc.i). I had to
disable fsck in fstab (set last field fs_passno to 0) to get the system
up. The partition looks good: I can mount and work with it just fine.
I also ran "fsck -f" against it and it was okay too.
I've noticed one difference between this ext2 partition and another ffs
partition, though. For the ext2 partition, fsck can't resolve neither
its DUID nor mount point. It results in the same error message that I get
in rc: "Can't stat a7e6ed0a30d39bcc.i: No such file or directory".
In other words, fsck works fine on an *ffs* partition when invoked
with a device, DUID, and mount point (both with and without -p):
# fsck /dev/sd1k # ok
# fsck 3390623058d1ca15.k # ok
# fsck /usr/obj # ok
But fsck fails on the *ext2* partition, unless it's passed a device:
# fsck /dev/sd0i # ok
# fsck a7e6ed0a30d39bcc.i # error
Can't stat a7e6ed0a30d39bcc.i: No such file or directory
# fsck /data/cargopod # error
Can't stat a7e6ed0a30d39bcc.i: No such file or directory
(All filesystems were un-mounted when fsck ran.)
What may be the problem here?
Details follow.
* * *
The problem reproduces on 7.6/amd64-stable and -current.
rc output:
Automatic boot in progress: starting file system checks.
/dev/sd1a (3390623058d1ca15.a): file system is clean; not checking
/dev/sd1l (3390623058d1ca15.l): file system is clean; not checking
/dev/sd1d (3390623058d1ca15.d): file system is clean; not checking
/dev/sd1f (3390623058d1ca15.f): file system is clean; not checking
Can't stat a7e6ed0a30d39bcc.i: No such file or directory
CAN'T CHECK FILE SYSTEM.
a7e6ed0a30d39bcc.i: UNEXPECTED INCONSISTENCY; RUN fsck_ext2fs MANUALLY.
/dev/sd1g (3390623058d1ca15.g): file system is clean; not checking
/dev/sd1h (3390623058d1ca15.h): file system is clean; not checking
/dev/sd1k (3390623058d1ca15.k): file system is clean; not checking
/dev/sd1j (3390623058d1ca15.j): file system is clean; not checking
/dev/sd1e (3390623058d1ca15.e): file system is clean; not checking
THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY:
ext2fs: a7e6ed0a30d39bcc.i (/data/cargopod)
Automatic file system check failed; help!
/etc/fstab:
3390623058d1ca15.b none swap sw
3390623058d1ca15.a / ffs rw 1 1
3390623058d1ca15.l /home ffs rw,nodev,nosuid 1 2
3390623058d1ca15.d /tmp ffs rw,nodev,nosuid 1 2
3390623058d1ca15.f /usr ffs rw,nodev 1 2
3390623058d1ca15.g /usr/X11R6 ffs rw,nodev 1 2
3390623058d1ca15.h /usr/local ffs rw,wxallowed,nodev 1 2
3390623058d1ca15.k /usr/obj ffs rw,nodev,nosuid 1 2
3390623058d1ca15.j /usr/src ffs rw,nodev,nosuid 1 2
3390623058d1ca15.e /var ffs rw,nodev,nosuid 1 2
a7e6ed0a30d39bcc.i /data/cargopod ext2fs rw,nodev,nosuid,noexec 0 0 #
last 0 was 3
DUIDs:
# sysctl hw.disknames
hw.disknames=sd0:a7e6ed0a30d39bcc,sd1:3390623058d1ca15
Disklabel:
# disklabel a7e6ed0a30d39bcc.i
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: cargopod
duid: a7e6ed0a30d39bcc
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 121601
total sectors: 1953525168
boundstart: 0
boundend: 1953525168
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 1953525168 0 unused
i: 1953523120 2048 ext2fs #
/data/cargopod