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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!