Click to See Complete Forum and Search --> : Errms... Am I supposed to be able to mount the same partition twice??


bdg1983
10-17-2001, 04:45 AM
I switched my /home partition over to a new harddrive a couple days ago, during which I mounted the new partition on /mnt and coppied everything from /home to /mnt. I then umounted /home and mounted the new /home. Apparently, I forgot to umount /mnt. I noticed this today when testing a CD I had just burned. The output from mount is thus:


bradmont@bradmont ~% mount
/dev/hdb3 on / type reiserfs (rw,errors=remount-ro,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdb5 on /usr type reiserfs (rw)
/dev/hdb6 on /var type reiserfs (rw)
/dev/hdb7 on /tmp type reiserfs (rw)
/dev/hda1 on /home type reiserfs (rw)
/dev/hda1 on /mnt type reiserfs (rw)


I seem to recall something about it not being possible/propper to mount the same partition more than once... Anyone know if this is a bug that should be reported, or is it normal? (Running ReiserFS on 2.4.12)

[ 17 October 2001: Message edited by: Bradmont ]

Strike
10-17-2001, 05:00 AM
I'm pretty sure it's an expected behavior. I can do the same even with vfat partitions:


[ddipaolo@half-life ~]% mount
/dev/hdb2 on / type ext3 (rw,errors=remount-ro,errors=remount-ro)
proc on /proc type proc (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/hdb3 on /usr type ext2 (rw)
/dev/hdb6 on /home type reiserfs (rw)
/dev/hdb7 on /var type ext2 (rw)
/dev/hda1 on /dos/C type vfat (rw)
/dev/hda5 on /dos/D type vfat (rw)
/dev/hda6 on /dos/E type vfat (rw)
/dev/hda6 on /home/ddipaolo/tmp type vfat (rw)

bdg1983
10-17-2001, 05:05 AM
Ok, thanks. It's just that once, I totally screwed up an ext2 partition with vmware, while trying to boot a linux install that was already running (a bunch of stuff about unclean unmounting and forcing fsck, and the like, which screwed the whole system over). Probably due to the fact that they weren't being mounted by the same machine... :o

posterboy
10-17-2001, 05:22 AM
I admit to having done that more than a few times. Man, how confusing that can be until you catch on to what you have done. I also have an awful time when I mount a floppy as a user, forget it, then, su to root, and mount it again. But, this is not a bug, it's doing just what we told it to, darn it.