linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* fsck root fs: fsck, devfs, /proc/mounts miscooperate.
@ 2001-08-29  6:54 VDA
  2001-08-29  8:13 ` Andreas Dilger
  2001-08-29 12:14 ` VDA
  0 siblings, 2 replies; 9+ messages in thread
From: VDA @ 2001-08-29  6:54 UTC (permalink / raw)
  To: linux-kernel

Hello all,

I use devfs to manage my /dev.
I symlinked /etc/mtab to /proc/mounts.
My root fs is on /dev/sdb1 and stays RO.
There is not /etc/fstab entry for it
(I hate making new Linux partitions by copying my old system, boot
them and discover I forgot to change root entry in /etc/fstab - kernel
already knows where root is, so why do I need to tell that?).

I have trouble with fsck'ing my root fs from init script.
As you can see below:
"fsck /" can't figure out from where my root is mounted.
"fsck /dev/sdb1" works fine, but that means init script must be
modified when root mount point is changed.
"fsck /dev/scsi/host0/bus0/target1/lun0/part1" is suitable for init
script (I could get dev name from /proc/mounts)
but complaining about mounted fs (why? my root fs is RO).

So, how can I fsck my root?

# cat /etc/mtab
/dev/scsi/host0/bus0/target1/lun0/part1 / ext2 ro 0 0
...

# 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 /

The superblock could not be read or does not describe a correct ext2
filesystem...

# fsck /dev/sdb1
Parallelizing fsck version 1.15 (18-Jul-1999)
e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
/dev/sdb1: clean, 6416/122400 files, 86059/488432 blocks

# fsck /dev/scsi/host0/bus0/target1/lun0/part1
Parallelizing fsck version 1.15 (18-Jul-1999)
e2fsck 1.15, 18-Jul-1999 for EXT2 FS 0.5b, 95/08/09
/dev/scsi/host0/bus0/target1/lun0/part1 is mounted.

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage...
-- 
Best regards,
VDA
mailto:VDA@port.imtp.ilyichevsk.odessa.ua
http://port.imtp.ilyichevsk.odessa.ua/vda/



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-08-31 11:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-29  6:54 fsck root fs: fsck, devfs, /proc/mounts miscooperate VDA
2001-08-29  8:13 ` Andreas Dilger
2001-08-29 14:27   ` Re[2]: " Richard Gooch
2001-08-29 12:14 ` VDA
2001-08-29 18:17   ` Andreas Dilger
2001-08-29 19:03   ` Richard Gooch
2001-08-29 19:21   ` Re[4]: " VDA
2001-08-30 19:39   ` Re[2]: " Theodore Tso
2001-08-31 10:58   ` Re[4]: " VDA

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).