[autofs] autoumount USB devices not working

Problems with packages? Post here, using [tags] of the package name.

[autofs] autoumount USB devices not working

Postby basj » Tue May 05, 2015 12:38 pm

I tried at least 10 times to install (+remove and reinstall), modify configuration files, etc. but autofs currently doesn't work for automounting USB sticks / SD cards.

I decided to investigate more, by testing on a fresh new ArchLinuxArm install. Here are the steps I did (I mainly followed https://wiki.archlinux.org/index.php/Autofs) :

1) Fresh new ArchLinuxArm install from http://os.archlinuxarm.org/os/ArchLinux ... est.tar.gz

2) Login as root from ssh

3) $this->bbcode_second_pass_code('', 'pacman -Sy autofs')

4) nano /etc/autofs/auto.master
I let like it is by default:
$this->bbcode_second_pass_code('', ' /misc /etc/autofs/auto.misc')

5) nano /etc/autofs/auto.misc
I add this line:
$this->bbcode_second_pass_code('', ' usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sda1')
or later, I also tried with:
$this->bbcode_second_pass_code('', ' usbstick -fstype=auto :/dev/sda1')

(I double-checked: it is /dev/sda1, I can mount it manually and it works.)


6) systemctl start autofs

7) Insert a SD card in the reader. Nothing happens. (I can mount it manually with "mount /dev/sda1 /misc", then it works. But autofs doesn't do the job)

--

Have I forgotten something / done something wrong?

--

Note: It seems that some other people have a similar problem: https://bbs.archlinux.org/viewtopic.php ... 5#p1368185
basj
 
Posts: 1
Joined: Tue May 05, 2015 12:01 pm

Re: [autofs] autoumount USB devices not working

Postby planeteater » Tue May 05, 2015 3:29 pm

$this->bbcode_second_pass_quote('', '
')7) Insert a SD card in the reader. Nothing happens. (I can mount it manually with "mount /dev/sda1 /misc", then it works. But autofs doesn't do the job)

Autofs mounts stuff only on access, and automatically unmounts them after some inactivity time, so nothing's wrong so far. Try something like
$this->bbcode_second_pass_code('', 'ls /misc/usbstick')
and it should appear.
planeteater
 
Posts: 26
Joined: Sat Dec 29, 2012 2:44 pm


Return to Packages

Who is online

Users browsing this forum: No registered users and 17 guests