Skip to contentSkip to conversation

Mounting same device many times/mountpoints. Is this legal?

DISCUSSION Ola Garstad 2 participants 2 messages Apr 30, 2001

lore
Share & tools
lore
#0 lore raw

I am running kernel 2.4.3 on RH 7.0

By mistake I mounted the same device two places. Is this legal??? On 2.2.x I got an error if I did this.
It guess thus could have destoryed the filesystem if had written to it.

bash-2.04# mount
[lines removed]
/dev/hdc8 on /mnt/1 type reiserfs (rw)
/dev/hdc8 on /var/log type reiserfs (rw)

#1 lore raw
Quoted 3 lines · Ola Garstad

I am running kernel 2.4.3 on RH 7.0

By mistake I mounted the same device two places. Is this legal???

Yes, it is.

Quoted 2 lines

On 2.2.x I got an error if I did this.
It guess thus could have destoryed the filesystem if had written to it.

No (well, aside of the potential filesystem bugs, but their chances of fs corruption do not depend on number of mountpoints).