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

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

On Sat, 10 Sep 2011, Itay wrote:

Date: Sat, 10 Sep 2011 18:16:58 +0300 (IDT)
From: Itay <debian@itayf.fastmail.fm>
To: debian-user@lists.debian.org
Subject: Re: How to disable USB automounts (still failing...)
Resent-Date: Sat, 10 Sep 2011 15:28:32 +0000 (UTC)
Resent-From: debian-user@lists.debian.org

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


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

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.

A bit more info:
After rebooting I detected in /var/log/syslog the following errors:
  udevd[451]: invalid ACTION operation
  udevd[451]: invalid rule '/etc/udev/rules.d/10-no-automount.rules:1'

Here is /etc/udev/rules.d/10-no-automount.rules (one line)
ACTION="add|change", subsystem=="block", ENV{UDISKS_AUTOMOUNT_HINT}="never"


I will appreciate any additional help.


Reply to: