# /etc/udev/rules.d/99-noautomount.rules ENV{UDISKS_PRESENTATION_HIDE}="1" ENV{UDISKS_PRESENTATION_NOPOLICY}="1" ENV{UDISKS_AUTOMOUNT_HINT}="never" ENV{UDISKS_SYSTEM_INTERNAL}="1" ENV{UDISKS_IGNORE}="1" ENV{UDISKS_AUTO}="0"
Редактировать:
https://www.systutorials.com/docs/linux/man/7-udisks/:
UDISKS_PRESENTATION_HIDE If set to 1 this is a hint to presentation level software that the device should not be shown to the user. UDISKS_PRESENTATION_NOPOLICY If set to 1 this is a hint to presentation level software that the device should not be automounted or autoassembled (for e.g. components of a multi-disk device). UDISKS_AUTOMOUNT_HINT A variable to influence whether a device should be automounted. Possible values include "always" (to hint that a device should always be automounted) and "never" (to hint that a device should never be automounted). Note that this is only a hint - the auto-mounter might not honor it. UDISKS_SYSTEM_INTERNAL If set, this will override the usual bus type based detection of whether a device is considered "system internal". "0" means "removable" (i. e. eligible for automounting, and normal users can mount), any other value means "system internal" (i. e. no automounting, and only administrators can mount).
https://www.systutorials.com/docs/linux/man/8-udisks/:
UDISKS_IGNORE If set, this overrides the value of the HintIgnore property. UDISKS_AUTO If set, this overrides the value of the HintAuto property.