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 two partitions on a hard drive in my machine that are formatted as ntfs, but must under no circumstance be mounted by my Ubuntu installation (unless I do some preparation first). However nautilus happily displays the partitions, and a single click will mount them automatically.

This is very dangerous behaviour, how can I hide the partitions from nautilus and prevent accidentally mounting them by a single stray mouse click?

Thanks

Update: I have been experimenting with writing udev rules, however I have not been able to get it working. If anybody has the specific steps needed to modify udev as to not show specific partitions, I would really appreciate it.

share|improve this question

1 Answer 1

You can write a udev rule that prohibits non-root users from mounting the partition.

You could also hide the partition icons on your desktop by running gconf-editor and unchecking volumes_visible in /apps/nautilus/desktop.

share|improve this answer
    
Hi. I have already hidden volumes on my desktop. (I don't like icons on the desktop.) But they still show up in several places in nautilus. I will have a look at the udev link you provided... –  Bjarke Freund-Hansen Feb 22 '11 at 7:30

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.