USB Automount

Thank you very much, I will try it out. Still an issue, but did not have the time. Maybe Corona will give me now the time, cause I am actually off work…

rosswesleyporter

Thanks for supplying the link! Today I finally got the time to implement the second part of your pdf tutorial, cause I only need the automount thing. I am nearly sure, I followed all your steps, but I return a service which fails with exit status 5 (5 EXIT_NOTINSTALLED The program is not installed.):

● usbstick-handler@sdb1.service - Mount USB sticks
   Loaded: loaded (/lib/systemd/system/usbstick-handler@.service; static; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2020-06-10 12:53:55 CEST; 4min 11s ago
  Process: 3999 ExecStart=/usr/local/bin/cpmount /dev/sdb1 (code=exited, status=5)
 Main PID: 3999 (code=exited, status=5)

Jun 10 12:53:55 PaeddasStation systemd[1]: Starting Mount USB sticks...
Jun 10 12:53:55 PaeddasStation cpmount[3999]: Error: invalid file system name 'exfat'
Jun 10 12:53:55 PaeddasStation cpmount[3999]: mount: /media/usb1: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
Jun 10 12:53:55 PaeddasStation cpmount[3999]: mount: /media/usb1: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
Jun 10 12:53:55 PaeddasStation systemd[1]: usbstick-handler@sdb1.service: Main process exited, code=exited, status=5/NOTINSTALLED
Jun 10 12:53:55 PaeddasStation systemd[1]: usbstick-handler@sdb1.service: Failed with result 'exit-code'.

So pmount does not work with exfat?? Is vfat not an synonym for that and according to the man page it supports vfat?
Any ideas?

I’ve been successful using the package UDEVIL (which is shipped with DEVMON deamon) to autmount hot plug usb sticks. I launch Devmon as a service during boot. Additionally I use the package USBIP to share them over my wifi network.