Re[4]: fsck root fs: fsck, devfs, /proc/mounts miscooperate.

VDA (VDA@port.imtp.ilyichevsk.odessa.ua)
Fri, 31 Aug 2001 13:58:42 +0300


Hello Ted,

Thursday, August 30, 2001, 10:39:10 PM, you wrote:
>> # fsck /
>> Parallelizing fsck version 1.15 (18-Jul-1999)
>> e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
>> /sbin/e2fsck: Is a directory while trying to open /

TT> Umm... it works for me. (No, I don't use devfs, but I do test
TT> e2fsprogs to make sure they do some sane vs. devfs by using UML...)
...
TT> What does your /etc/mtab file show for an entry for the root
TT> filesystem when you're trying to make it work? Fsck does require that
TT> /etc/mtab is sane, and I'm guessing that you're missing an entry in
TT> /etc/mtab for /.

My /etc/mtab is symlinked to /proc/mounts and have these entries:
/dev/scsi/host0/bus0/target1/lun0/part1 / ext2 ro 0 0
/dev/sda2 /.share ext2 rw 0 0
...

Also fsck does not work for my second mountpoint if specified
as a relative path:

pegasus:/#fsck .share <--- relative path
Parallelizing fsck version 1.23 (15-Aug-2001)
No devices specified to be checked!
pegasus:/#fsck /.share <--- absolute path
Parallelizing fsck version 1.23 (15-Aug-2001)
e2fsck 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09
/dev/sda2 is mounted.
WARNING! Running e2fsck on a mounted filesystem...

Looks like running "fsck <mountpoint>" is uncommon
and isn't tested much.

--
Best regards,
VDA
mailto:VDA@port.imtp.ilyichevsk.odessa.ua
http://port.imtp.ilyichevsk.odessa.ua/vda/

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/