22

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

1
  • 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, 2011 at 16:24

1 Answer 1

31

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.

1
  • 4
    In other words, any files there are hidden behind the mount.
    – psusi
    Mar 9, 2011 at 15:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .