User avatar
howroyd
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:

/etc/auto.master

Code: Select all

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

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”