Automounting USB drives on GUI-free server

Karl Auer kauer at biplane.com.au
Sun Sep 4 14:04:10 UTC 2016


I have an application running on a text-mode-only Ubuntu system
(16.04).

As far as I can tell, USB drives only automount inside Unity, i.e.,
when a GUI is running. However, I need USB drives to automount on boot
and when inserted, even when no GUI is running and no-one is logged in.

So far my googling has turned up only quite complicated solutions
involving dozens of lines of udev rules, but most of these solutions
are several years old.

I'll go the udev route if I have to, I was just hoping there was an
easier way these days.

When I insert a USB stick, syslog tells me it has been detected and
plumbed; a device /dev/sdb becomes available and I can mount it
manually.

Regards, K.

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
http://twitter.com/kauer389

GPG fingerprint: E00D 64ED 9C6A 8605 21E0 0ED0 EE64 2BEE CBCB C38B
Old fingerprint: 3C41 82BE A9E7 99A1 B931 5AE7 7638 0147 2C3C 2AC4







More information about the ubuntu-users mailing list