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