usbmount — fails to automount
I was actually also interested in automatic USB mount on Ubuntu 18.04 for my "as good as newly installed" server.
I'm uncertain in which way you've installed USBmount or what version of it you're running, but I do know that a bug specific to USBmount has been fixed in the git (and there doesn't seem to be a 18.04 compatible version in apt.
If it's not a recent installation (maybe upgraded server from 16.04, where it did work or not from the github project page, I advise to backup your configuration and reinstall usbmount from the Github page.
The instructions for this can be found on the Github page, but my process was as following:
- Backup and remove usbmount (in my case, I had a clean 18.04 install, so there was nothing to backup/remove)
- git clone http://github.com/rbrito/usbmount.git
- cd usbmount
- sudo apt-get update && sudo apt-get install -y debhelper build-essential
- sudo dpkg-buildpackage -us -uc -b
- sudo dpkg -i usbmount_0.0.24_all.deb
- ^ Fails because of unmet dependencies use:
- sudo apt --fix-broken install
After that, I formatted a usbdrive using:
- sudo mkfs.vfat -n 'name_for_your_pendrive' /dev/sdy1
And when re-inserting the USBdrive, it automatically mounted.
Note: I must also add that any issues are better reported under the Github project.
Note2: If you think this answer was helpful, please comment on how to reload the settings, since I'm strugling with that at the moment. EDIT: changes seem to go into effect directly...
Note3: Make sure your BIOS is not set to boot from USB over boot from harddrive, since if you leave the drive in, it may attempt to boot from it.
Note4: Please first test it with a well supported format, before going on to NTFS, exfat or hfsplus.