You are not logged in.
I'm using autofs to automount usb sticks under /media. Autofs only mounts the directory when I try to access it. When I plug in the usb stick and try to access the directory via pcmanfm, I'm getting an "Unable to read from directory error". The directory is not mounted.
However, if I open a console and "cd" into the directory, the directory is then mounted, and I can access it via pcmanfm. How would I set it up such that directory access via pcmanfm triggers autofs automount?
These are the contents of my autofs.master
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).
/media /etc/autofs/auto.media --timeout=60
and autofs.media
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage
cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdrom
usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sdc1
Last edited by oinkl (2010-09-18 09:35:51)
Offline
Why autofs? pcmanfm can mount it itself using hal/udev, depending on version.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I know with the legacy version of pcmanfm, entering the directory does trigger autofs to mount it. I've not tried it with the newer 0.9 pcmanfm. If that doesn't work, you might submit a bug report on pcmanfm. Also, try another file manager to see if the problem exists generally. You can install pcmanfm-mod (based on the legacy version) concurrently with the newer pcmanfm, and see if that works.
Offline