You are not logged in.

#1 2010-09-18 09:35:32

oinkl
Member
Registered: 2010-01-13
Posts: 47

Accessing directories using autofs and pcmanfm

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

#2 2010-09-18 13:06:56

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Accessing directories using autofs and pcmanfm

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

#3 2010-09-18 15:33:00

IgnorantGuru
Member
Registered: 2009-11-09
Posts: 640
Website

Re: Accessing directories using autofs and pcmanfm

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

Board footer

Powered by FluxBB