AutoFS doesn't seem to work... [SOLVED]

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
GJones
Donor
Posts: 300
Joined: 22. Jul 2011, 23:27

AutoFS doesn't seem to work... [SOLVED]

Post by GJones »

I just read a thing about autofs, and realized it looks pretty awesome as an automount mechanism for a lightweight desktop. So of course exited my desktop environment and tried it out... And it didn't mount anything.

My auto.master:

Code: Select all

#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc	/etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#	"nosuid" and "nodev" options unless the "suid" and "dev"
#	options are explicitly given.
#
/net	-hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
And auto.misc:

Code: Select all

#
# 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

cd		-fstype=auto,ro,nosuid,nodev	:/dev/cdrom
usb-flash       -fstype=auto,ro,nosuid,nodev    :/dev/sdb
usdb-hdd        -fstype=auto,ro,nosuid,nodev    :/dev/sdb1

# the following entries are samples to pique your imagination
#linux		-ro,soft,intr		ftp.example.org:/pub/linux
#boot		-fstype=ext2		:/dev/hda1
#floppy		-fstype=auto		:/dev/fd0
#floppy		-fstype=ext2		:/dev/fd0
#e2floppy	-fstype=ext2		:/dev/fd0
#jaz		-fstype=ext2		:/dev/sdc1
#removable	-fstype=ext2		:/dev/hdd
(The read-only entries for usb-flash and usb-hdd are wrong, but they should not prevent anything from mounting.)

And yes, I've created /misc. Also tried to create /misc/cd, etc. but those got deleted automatically - I wasn't clear on whether they were needed, it looks like they're not supposed to be. Anyway the automount process runs, but nothing gets mounted.

What gives?

Edit: OMG I AM SO STUPID. The directory does not exist until it is accessed through LS or somesuch. Brilliant!

In more positive news, though, it looks like I'm done with HAL.
Post Reply