From: Richard Gooch <rgooch@ras.ucalgary.ca>
To: Andreas Dilger <adilger@turbolabs.com>
Cc: VDA <VDA@port.imtp.ilyichevsk.odessa.ua>, linux-kernel@vger.kernel.org
Subject: Re: fsck root fs: fsck, devfs, /proc/mounts miscooperate.
Date: Wed, 29 Aug 2001 13:03:46 -0600 [thread overview]
Message-ID: <200108291903.f7TJ3kv10286@vindaloo.ras.ucalgary.ca> (raw)
In-Reply-To: <20010829121732.I24270@turbolinux.com>
In-Reply-To: <22075604.20010829095413@port.imtp.ilyichevsk.odessa.ua> <20010829021304.D24270@turbolinux.com> <6410958637.20010829151417@port.imtp.ilyichevsk.odessa.ua> <20010829121732.I24270@turbolinux.com>
Andreas Dilger writes:
> On Aug 29, 2001 15:14 +0300, VDA wrote:
> > Installed e2fsprogs 1.23. It does not print warning now on
> > "fsck /dev/scsi/host0/bus0/target1/lun0/part1"
> > However, it still cannot fs check root fs when given "fsck /" which I
> > really need in my init script. Now the only way to do root fs check
> > for me is to parse /proc/mounts and extract mount point for / via sed
> > (I have never used sed yet...).
> >
> > # 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 /
>
> That's because "/" is a directory and not a device. fsck works with
> devices. If you want to avoid specifying your root partition in
> /etc/fstab explicitly, then you can use an ext2 label instead. Set
> the label on the filesystem with "tune2fs -L root <root_dev>", and
> then put "LABEL=root" in /etc/fstab instead of a device name. This
> way if your root device gets moved around you are still OK. This of
> course works with filesystems other than root as long as they are
> ext2/ext3/xfs (reiserfs does not have labels yet).
/dev/root works regardless of filesystem type :-)
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
next prev parent reply other threads:[~2001-08-29 19:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=200108291903.f7TJ3kv10286@vindaloo.ras.ucalgary.ca \
--to=rgooch@ras.ucalgary.ca \
--cc=VDA@port.imtp.ilyichevsk.odessa.ua \
--cc=adilger@turbolabs.com \
--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).