Gnome: Nautilus: How to hide partitions from the ‘devices’ area on the left pane

I have a lot of partitions such as windows system partitions that I never use from Linux yet it always annoyed me that they were showing up automatically in nautilus and if I happened to click on them accidentally I would get a mount dialog that I could not cancel.

Solution – add udev rules to ignore them and reboot.

Heres a copy of my file, modify yours accordingly…