DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Note also that you should create the /var/autofs directory, while the /var/autofs/explay is created automatically when you connect the flash drive. So connect the flash drive in the usb port and the run
Code:
ls /var/autofs/explay
to see if it's mounted automatically by listing its contents.
If this is not working running dmesg could show you what's wrong.
According to /etc/auto.misc your usb stick it's automounted on /var/autofs/explay and not on /var/autofs/flash. Now you have to edit /etc/auto.master like this:
Code:
/var/autofs /etc/auto.misc
If you want to use the timeout option you should add "--timeout=2" (note there are 2 dashes in front) to the above line.
There is no such file in my /etc catalog, i create it manualy. And nothing happens after plug-in my device…
Ok, this is my fault. I've forgotten the dot in the filename. The correct is /etc/auto.master. You should have something like the following:
/etc/auto.master
You can connect the usb device in the computer and watch the dmesg output to find the correct device name (in my system the usb stick is /dev/sda1) and replace explay with it in /etc/auto.misc.
Of course you need to restart autofs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.