Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
    
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

1 Answer 1

up vote 11 down vote accepted

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.

share|improve this answer
1  
In other words, any files there are hidden behind the mount. –  psusi Mar 9 '11 at 15:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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