I have 3 disks in my PC which are partioned equally as I use them for Raid 1.
The first partion on every disk is a simple ext2 partion for booting. No Raid there. So I mount them as /boot and /boot2 and /boot3. So I can backup my /boot to the other boot directories. That worked for some month and this morning I just want to look if all directories have enough free space left. So I did a df -h and got this:
As you can see /dev/sda1 and /dev/sdb1 are both mounted on /boot
Here is what mount says:
/dev/sdb1 on /boot type ext2 (ro,acl,user_xattr)
/dev/sdc1 on /boot2 type ext2 (ro,acl,user_xattr)
...
/dev/sda1 on /boot type ext2 (ro,acl,user_xattr)
This is no Problem for me as I could just remount it correctly, but I would like to know if this problem is known. I did not change anything by now and this PC is a server which is running 24/7, so I can deliver more debugging Information if someone is interested.
It’s not illegal and the system doesn’t prevent it but it probably doesn’t anything useful for you. The most recent mount on the directory will hide the contents of the previous mount. No idea how you reached that situation. A typo perhaps?
I’m not sure if I mounted /boot again after booting, but I thought that mounting 2 devices on one dir is not possible as it is somewhat undefined and problematic.
Not at all. All Unix/Linux filesystems (with the exception of the first one, the / filesystem) mount on some point, which is a directory in another filesystem. If there was something underneath, too bad, it gets hidden. The only difference here is that the mount point is the top directory of the underlying filesystem. But does it harm anything, in the sense that it has unclear semantics, becomes unstable, or causes cycles in the graph? No. So it is allowed and no special case treatment is required.