lkml.org 
[lkml]   [2001]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Re[2]: fsck root fs: fsck, devfs, /proc/mounts miscooperate.
On Wed, Aug 29, 2001 at 03:14:17PM +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 /

Umm... it works for me. (No, I don't use devfs, but I do test
e2fsprogs to make sure they do some sane vs. devfs by using UML...)

usermode:/etc# cat /etc/mtab
/dev/ubd/0 / ext2 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw,mode=0622 0 0
usermode:/etc# fsck -NV /
Parallelizing fsck version 1.23 (15-Aug-2001)
[/sbin/fsck.ext2 -- /] fsck.ext2 /dev/ubd/0


What does your /etc/mtab file show for an entry for the root
filesystem when you're trying to make it work? Fsck does require that
/etc/mtab is sane, and I'm guessing that you're missing an entry in
/etc/mtab for /.

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

\
 
 \ /
  Last update: 2005-03-22 13:01    [W:0.080 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site