From: VDA <VDA@port.imtp.ilyichevsk.odessa.ua>
To: linux-kernel@vger.kernel.org
Subject: fsck root fs: fsck, devfs, /proc/mounts miscooperate.
Date: Wed, 29 Aug 2001 09:54:13 +0300 [thread overview]
Message-ID: <22075604.20010829095413@port.imtp.ilyichevsk.odessa.ua> (raw)
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/
next reply other threads:[~2001-08-29 6:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-29 6:54 VDA [this message]
2001-08-29 8:13 ` fsck root fs: fsck, devfs, /proc/mounts miscooperate 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22075604.20010829095413@port.imtp.ilyichevsk.odessa.ua \
--to=vda@port.imtp.ilyichevsk.odessa.ua \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).