I've installed autofs package, and I know /etc/auto.master and /etc/auto.misc . I set only one monitored path in /etc/auto.master:
/root/media /etc/auto.misc
Then I set usb sub-directory setting in /etc/auto.misc:
usb -fstype=auto,sync,nosuid,rw,gid=100,umask=000 :/dev/sdb1
I'm very sured that if I insert usbstick into system, it always in /dev/sdb and only one partition in FAT32 will be shown in /dev/sdb1.
And finally I restart autofs service certainly. But I just can't find anything in /root/media after I insert my usbstick.
There isn't /root/media pre-built, and I can found /root/media be built after I restart autofs service by executing /etc/init.d/autofs restart. Incidentally, I tried /etc/init.d/autofs reload already, and got a useless same result.
Anybody knows where is the problem?