Or does it overwrite the existing data in the mountpoint? Or is it just un-accessible?
-
1Mounting a filesystem won't "overwrite" anything (it's not a file copying or moving scheme just presenting another filesystem within the filesystem namespace at a given point) just maybe make it impossible to access the old content till you umount. With some tricks you can even access the old data "behind" the mounted filesystem without umount'ing your fs, with VFS binds, etc.– LGBMar 9, 2011 at 16:24
Add a comment
|
1 Answer
No it does not have to be an empty directory. You can "overmount" it, but be aware, that you hide the files originally in that directory.
This can lead to some confusion since the space on the underlying filesystem - not the newly mounted one - stays occupied.
-
4