19

Or does it overwrite the existing data in the mountpoint? Or is it just un-accessible?

  • 1
    Mounting 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. – LGB Mar 9 '11 at 16:24
25

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.

  • 2
    In other words, any files there are hidden behind the mount. – psusi Mar 9 '11 at 15:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.