Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?


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

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

You must log in to answer this question.

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