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

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



2011/9/11 Itay <debian@itayf.fastmail.fm>:
> 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
>>>
>>>  /etc/udev/rules.d/10-no-automount.rules
>>>
>>> and in it put the line
>>>
>>>  ACTION="add|change", subsystem=="block",
>>> ENV{UDISKS_AUTOMOUNT_HINT}="never"

According to the existing file "/etc/udev/hdparm.rules", try to modify
the rule file to be ACTION=="add|change".

>>>
>>> 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.
>
> 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)
> ----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
> ACTION="add|change", subsystem=="block", ENV{UDISKS_AUTOMOUNT_HINT}="never"
> ----8<--------8<--------8<--------8<--------8<--------8<--------8<--------8<----
>
> Thanks,
> Itay
>
>
>> I will appreciate any additional help.
>>
>> Thanks,
>> Itay
>>
>>
>>
>>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive:
> [🔎] alpine.DEB.2.00.1109102303190.3893@gandalf.furmanet">http://lists.debian.org/[🔎] alpine.DEB.2.00.1109102303190.3893@gandalf.furmanet
>
>


Reply to: