User avatar
Posts: 39
Joined: Thu Aug 02, 2012 1:41 pm
Location: Loughborough
Contact: Website

Automount USB

Wed Apr 27, 2016 10:40 am

Morning all,

I am trying to auto mount a usb memory stick when connected. IE without needing to reboot using fstab.

I am trying to get autofs to work but having no luck:


Code: Select all

/media/usb   /etc/auto.ext-usb --timeout=2,defaults,user,exec,uid=1000

Code: Select all

usb     -fstype=vfat,rw,nosuid,nodev    :/dev/sda1
Then to check it is working after restarting etc:

Code: Select all

[email protected]:~ $ ls /media/
pi  usb
But the usb folder which should contain the files from the memory stick is empty.

Any ideas, please?

Return to “Troubleshooting”