lkml.org 
[lkml]   [2002]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRE: PROBLEM: ext2/mount - multiple mounts corrupts inodes


On Wed, 30 Jan 2002, Kris Urquhart wrote:

> + DEVICE=/dev/hda3
> + MOUNT=/mnt/hd
> + cat /proc/mounts
> + grep /mnt/hd
> + umount /mnt/hd
> umount: /mnt/hd: not mounted
[created fs on hda3]
> + rm -rf /mnt/hd
> + mkdir -p /mnt/hd
> + mount -t ext2 /dev/hda3 /mnt/hd
> + cat /proc/mounts
> + grep /mnt/hd
> /dev/hda3 /mnt/hd ext2 rw 0 0
> + cp -r /bin/tar /mnt/hd
> + cp -r /bin/zcat /mnt/hd
> + 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

Complains about mounting same fs on the same spot, refuses to mount.

> + 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.

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

-
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:18    [W:0.047 / U:1.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site