Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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'm trying to make udev stop mounting one of my devices at boot time, and I've created a rule in /etc/udev/rules.d/ called 1-myblacklist.rules. All the rule does is matches the device by kernel identifier (ie. sdb) and and set the attribute OPTION to "ignore_device"

udevadm test /sys/block/sdb 

Shows that the my rules file is parsed as the first entry, but all subsequent rules still gets applied. And the partitions on the drive still shows up on my desktop (XFCE).

share|improve this question
If its not mounting until xfce starts, then thats not udev, thats thunar+dbus. You might be able to use policykit to restrict this, but I dont know. This is territory I havent messed with much. – Patrick Dec 29 '11 at 2:24
up vote 3 down vote accepted

I just wanted to post the solution to this problem, in-case somebody else is faced with a similar challenge.

Adding the following rules file did the trick:


share|improve this answer

The mounting of the device could be performed by XFCE itself. This page shows how to set it up under Debian/Lenny and would also be instructive on how to disable auto-mounting: http://blog.slucas.fr/en/debian/lenny-xfce-automount

share|improve this answer
Hey :) I believe that article is about making enabling (or disabling i suppose) automount. This is not really what im after. – JustDanyul Nov 29 '11 at 0:56
Have you booted into a lower run-level to verify that the disk is mounted at boot time and not by any XFCE software? – Erik Dec 6 '11 at 21:57

Your Answer


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.