How do I disable USB automount?

Tobia

New Member
Aug 31, 2016
12
2
3
My Proxmox VE 4.4 (Debian Jessie 8.9) is auto-mounting USB devices under /media, even without any desktop UI like Gnome.

I would like to disable this functionality, but all information I can find online refers to Gnome.

Does anybody know what piece of the OS is responsible for this behavior in Proxmox VE 4 and/or Debian 8 and how to disable it?
 
udev rule, entry in the fstab, or packages like autofs.
 
I'm talking about a standard PVE 4.4 installation. I can't see any of those things, and yet usb devices get auto-mounted under /media/usbN
 
a standard pve 4.4 installation don't do this
Mine does.

I have no autofs package installed, no fstab entry at all (only swap and proc), and no udev rule (only 70-persistent-net.rules) and yet USB devices get automounted at /media/usbX

It must be some part of systemd
 
Mine does.

I have no autofs package installed, no fstab entry at all (only swap and proc), and no udev rule (only 70-persistent-net.rules) and yet USB devices get automounted at /media/usbX

It must be some part of systemd

there is definitely nothing like this set up by default by PVE. check the installer packages and compare to a stock package list, maybe you can find the culprit that way.