Disable steam udev Auto-mounting of media which breaks Desktop Automounters

As root copy the steam automounter udev rules from:
/usr/lib/udev/rules.d/99-steamos-automount.rules
/usr/lib/udev/rules.d/99-steamos-automount.rules
to:
/etc/udev/rules.d/99-steamos-automount.rules
/etc/udev/rules.d/99-steamos-automount.rules
Comment the two lines that begin
ACTION
ACTION
by adding a
#
#
at the start of them i.e:
#ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh add %k"
#ACTION=="remove", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh remove %k"
#ACTION=="add", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh add %k"
#ACTION=="remove", RUN+="/usr/bin/systemd-run --no-block --collect /usr/libexec/hwsupport/block-device-event.sh remove %k"
reload the udev rules:
udevadm control --reload
udevadm control --reload
This will return the system to using the 'on-click' mount behavior expected for storage in every other distro/DE, as well as allowing users who need to manipulate the storage devices at blocklevel (i.e with dd / media-imager, recovery tools etc) without having a mounted filesystem break these workflows.
1 Reply
aenertia
aenertiaOP4mo ago
Since the automount behavior is the default as of SteamOS3.x , but is only useful inside gamescope-session, further improving a solution which only add's/loads the udev rules during the gamescope-session would be a more complete solution. However this is really a bug in upstream in steamos, and should ideally be fixed by implementing a proper storage/automount workflow within steamui via UX elements rather than a udev rule which IMO breaks default and normal expected behaviour It's also noted that since this only applies to storage presented as mmc or sd and not nvme the upstream udev rules is not a complete solution in anycase as it's entirely feasible that external nvme storage controllers to be plugged into the system
Want results from more Discord servers?
Add your server