2 filesystems on same mount point!?

Tom London selinux at gmail.com
Sun Aug 13 16:42:44 UTC 2006


Running latest rawhide.

My USB hard drive has 3 partitions (first NTFS, 2nd & 3rd ext3). If I
plug it in, invariably both ext3 partitions seem to get mounted on
'/media/disk':

[root at localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb3 on /media/disk type ext3 (rw,noexec,nosuid,nodev)
/dev/sdb2 on /media/disk type ext3 (rw,noexec,nosuid,nodev)
[root at localhost ~]#

In fact, this time /dev/sdb2 is 'really mounted' (I even get the nice
nautilus-type window popping up for /dev/sdb2).

If I manually unmount the 'phantom filesystem', I get both unmounted
and /dev/sdb3 remounted:

[root at localhost ~]# umount /dev/sdb3
[root at localhost ~]#
[root at localhost ~]# mount
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb3 on /media/disk type ext3 (rw,noexec,nosuid,nodev)
[root at localhost ~]#

/media/disk now 'points' to the actual content of /dev/sdb3.

I quickly bz'ed this yesterday here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202316
erroneously against autofs.

Should this filed against hal? udev? what?

tom
-- 
Tom London




More information about the fedora-test-list mailing list