Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have noticed that my mountpoints in /media often acquire underscores, double or triple at time, when I use Vuze which is configured to save the files on a mountpoint directory in /media.

This is very annoying as it often spoils the downloads and furthermore, it creates versions of files that are confusing I have to spend time resolving and deleting.

Is there any way to forbid access to a mountpoint, when there is no file system from /etc/fstab mounted on it?

share|improve this question

1 Answer 1

For filesystems with fixed paths like /home, I often chmod 000 the underlying directory so that I can't accidentally put things there when the filesystem isn't mounted. But the mountpoints in /media are created and removed dynamically (by udev, I think). You shouldn't have leftover directories in there with nothing mounted on them; if you do, that's the real problem you should be trying to solve. Mountpoints in /media are supposed to be automatically deleted when the filesystem is unmounted.

share|improve this answer

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.