Tuesday, November 13, 2012

How to remove NTFS Devices from Nautilus

Create a udev rule

1. Open a terminal sessions and type: gksudo gedit /etc/udev/rules.d/hide-partitions.rules

2. Paste the following:


ACTION!="add|change", GOTO="hide_partitions_end"
SUBSYSTEM!="block", GOTO="hide_partitions_end"
KERNEL=="loop*|ram*", GOTO="hide_partitions_end"

################################################## ############################

# Let's hide sda2 and sda3
KERNEL=="sda2", ENV{UDISKS_PRESENTATION_HIDE}="1"
KERNEL=="sda3", ENV{UDISKS_PRESENTATION_HIDE}="1"

################################################## ############################

LABEL="hide_partitions_end"


3. Save and Exit.

4. Reboot computer to take effect.


Reference:
Retrieved November 13, 2012
http://askubuntu.com/questions/181130/how-to-get-rid-of-devices-in-the-right-panel-of-nautilus

No comments:

Post a Comment