Red Hat Bugzilla – Bug 27677
mount(8) allows a second mount on /
Last modified: 2007-04-18 12:31:28 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.17-14 i686)
It's possible to mount a filesystem on the / mount point even if the mount
point is already in use. A second entry for the / mount point is then
placed in /etc/mtab!
Steps to Reproduce:
Given that /dev/hda5 is mounted as / and we have a currently unmounted
filesystem on /dev/hda6:
1. mount /dev/hda6 /
2. cd /; ls
3. ls /tmp
Actual Results: The `cd /; ls` resulted in a list of the top level of
/dev/hda6. The `ls /etc` resulted in a list of the original /dev/hda5
The system appeared to continue running normally otherwise.
Expected Results: We should have had an error after step 1:
"according to mtab, /dev/hda5 is already mounted on /"
For testing purposes, I could apparently untangle the situation by manually
removing the second rogue / entry from /etc/mtab before attempting a
Hmm, is this really a bug or just a feature ????
No idea, but problem verified with mount-2.11e-1.rpm.
It's a feature.