Hi, On Tue, Jul 22, 2025 at 08:11:44PM -0400, Stefan Monnier wrote: > On one of my (Debian stable) machines, all the partitions that aren't > mentioned in /etc/fstab end up mounted in /media/root/<UUID>, and that's > apparently a "feature" of `udisks2`. > > How can I tell udisks2 to refrain from doing that?
I'm not sure if it's the best/easiest way, but in the past I've used udev rules with ENV{UDISKS_IGNORE}="1": https://wiki.archlinux.org/title/Udisks#Hide_selected_partitions You could instead put the thing in fstab with a "noauto" as one of its mount options. Then it wouldn't be mounted by the system at boot, nor by udisks. Obviously you can stop all automounting by stopping the udisks2 service (and maybe masking it). That leaves it installed but not running. Some software wants it to be running though. Although it is udisks2 and udev that are facilitating this, I thought it only happened inside a desktop environment. Though your example of /media/root/UUID suggests not. Anyway, some ideas for desktop environments: https://www.baeldung.com/linux/ubuntu-disable-automated-mounting Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting