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).
Best Answer
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:
/etc/udev/rules.d/90-hide-partitions.rules