Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 31 Jan 2002 00:05:26 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 31 Jan 2002 00:05:16 -0500 Received: from leibniz.math.psu.edu ([146.186.130.2]:20442 "EHLO math.psu.edu") by vger.kernel.org with ESMTP id ; Thu, 31 Jan 2002 00:05:06 -0500 Date: Thu, 31 Jan 2002 00:05:05 -0500 (EST) From: Alexander Viro To: Kris Urquhart cc: Andreas Dilger , "'linux-kernel@vger.kernel.org'" Subject: RE: PROBLEM: ext2/mount - multiple mounts corrupts inodes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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/