RE: PROBLEM: ext2/mount - multiple mounts corrupts inodes

Kris Urquhart (kurquhart@littlefeet-inc.com)
Thu, 31 Jan 2002 09:31:21 -0800


> From: Alexander Viro [mailto:viro@math.psu.edu]
> Sent: Wednesday, January 30, 2002 9:05 PM
>
> > + grep /mnt/hd
> > + cat /proc/mounts
> > /dev/hda3 /mnt/hd ext2 rw 0 0
> > + find /mnt/hd -ls
> > 2 1 drwxr-xr-x 3 root root 1024 Dec
> 31 15:17 /mnt/hd
> > 11 12 drwxr-xr-x 2 root root 12288 Dec 31 15:17
> > /mnt/hd/lost+found
> > find: /mnt/hd/tar: Input/output error
> > find: /mnt/hd/zcat: Input/output error
>
> WTF??? Very interesting... What about kernel messages? It
> looks like
> stat(2) failing.

Yes, please see my recent reply to Andreas Dilger.

> Just in case - could you put the same find before the second
> attempt of
> mount?
>

+ find /mnt/hd -ls
2 1 drwxr-xr-x 3 root root 1024 Dec 31 23:42 /mnt/hd
11 12 drwxr-xr-x 2 root root 12288 Dec 31 23:42
/mnt/hd/lost+found
12 149 -rwxr-xr-x 1 root root 150796 Dec 31 23:42
/mnt/hd/tar
13 52 -rwxr-xr-x 1 root root 51228 Dec 31 23:42
/mnt/hd/zcat
+ mount -t ext2 /dev/hda3 /mnt/hd
mount: /dev/hda3 already mounted or /mnt/hd busy
mount: according to mtab, /dev/hda3 is already mounted on /mnt/hd
+ cat /proc/mounts
+ grep /mnt/hd
/dev/hda3 /mnt/hd ext2 rw 0 0
+ find /mnt/hd -ls
2 1 drwxr-xr-x 3 root root 1024 Dec 31 23:42 /mnt/hd
11 12 drwxr-xr-x 2 root root 12288 Dec 31 23:42
/mnt/hd/lost+found
find: /mnt/hd/tar: Input/output error
find: /mnt/hd/zcat: Input/output error

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