Automount USB?

killmasta93

Renowned Member
Aug 13, 2017
974
59
68
31
Hi,
I was wondering if someone could shed some light on the issue im having. Currently found out that usbmount is not in the repository of Debian Jessie. I was also reading about trying to automount with systemd the issue is that i dont want to automount it with fstab on proxmox because if it reboots sometimes it gets stuck because it tries to find the USB. I was wondering maybe a way to auto connect the usb when plugged to the mount location without using fstab?

I was reading this guide but not sure

https://ddumont.wordpress.com/2016/04/24/automount-usb-devices-with-systemd/

Thank you
 
Sorry for the late reply, I was reading about the udev trigger so if i understood correctly create a file inside of /etc/udev/rules.d call it usb
then find out the device name

Code:
KERNEL=="device name",ACTION=="mount",RUN+="/path/to/script.sh"

but i was reading the below answer it was saying another thing which i did not really understand?

Thank you
 

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!