[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to disable USB automounts (still failing...)




On Mon, 5 Sep 2011, Brian wrote:

On Mon 05 Sep 2011 at 09:17:22 +0300, Itay wrote:

When I stick a USB device into the socket it is automounted; KDE pops up
device notification widget, file manager window, etc.

[...]

In fact, I would like to disable automounts for all users.

[...]

2) To disable automount in udev rules.
   I don't understand udev at all, and couldn't locate the actual
   lines that I should comment out.

Create the file

  /etc/udev/rules.d/10-no-automount.rules

and in it put the line

  ACTION="add|change", subsystem=="block", ENV{UDISKS_AUTOMOUNT_HINT}="never"

No need to reboot as it takes effect immediately.

Before doing this you will have read udisks(7) and know why it may not
work. You may also want to investigate changing the udev rule to see the
effect of UDISKS_PRESENTATION_HIDE.

Indeed it did not work.  This is including testing after a reboot.
I read udisks(7), and tried understanding again udev's man page but this lies beyond my reach.

I will appreciate any additional help.

Thanks,
Itay



Reply to: