You are not logged in.
I'm trying to use autofs on my headless server so I can easily access inserted DVDs. Whenever I try to cd to the /meda/misc/sr0 directory, Arch spews out this:
[root@hb-server misc]# cd /media/misc/sr0/
-bash: cd: /media/misc/sr0/: No such file or directory
I can mount the DVD manually with no problem though.
Here are the config files:
/etc/autofs/auto.master:
/media/misc /etc/autofs/auto.misc --timeout=5 --ghost
/etc/autofs/auto.misc:
sr0 -fstype=iso9660,ro,umask=0000 :/dev/sr0
Autofs is in rc.conf en the autofs4 module is loaded on boot.
There are is nothing in fstab related to sr0.
Any suggestions?
Offline
Any suggestions?
Um, yes: drop that avatar thing, it's driving me nuts.
'fdisk -l' and 'mount' may help. Can you mount the DVD by hand?
Offline
Yes I can mount by hand no problem. And I'm not quite sure how the fdisk listing helps here?
Offline
I thought fdisk should show it - it works w/ usb pendrives. My bad.
I found in the wiki a bit different code
/media/misc /etc/autofs/auto.misc --timeout=5,ghost
And a note: "Note: Make sure there is an empty line on the end of template files (press ENTER after last word). If there is no correct EOF line, the AutoFS daemon won't properly load."
"If you have a CD/DVD combo-drive you can change the cdrom line with "-fstype=auto" to have the media type autodetected."
Edit: BTW, is the daemon running?
Last edited by karol (2009-05-29 12:37:27)
Offline
The EOF lines are there, I tried the different syntax, but the result is the same I'm afraid. I don't get it, I've used autofs plenty before on other computers and I never had problems like this.
Offline
What's different w/ this headless beast? How do you get into that machine?
Offline
It's accessed remotely with SSH. I've used autofs before, but not for DVDs, so I'm guessing the problem might have something to do with that.
Offline
"-fstype=auto" doesn't help?
http://wiki.archlinux.org/index.php/Autofs#Remote_SSH
Last edited by karol (2009-05-29 13:09:47)
Offline
Nope, tried that before.
Offline
So - once again - the daemon is running, you can access CDs automatically *w/ this setup* (SSH etc.) but not DVDs, right? Yeah, I know this is precisely what you've written in the topic's title, just that *I* don't get it - how the f is it possible?
If you can autofs CDs that means it's enabled in the kernel, daemon's running etc.
What's in the logs?
<wild guesses continued>
"The target directories have to exist on your system and need to be empty, since their contents will be swapped with the dynamically loaded media."
But if you can mount manually the dir has to exist, so ...
Is this related to your problem? http://bbs.archlinux.org/viewtopic.php? … 78#p539778
Drop 'umask=0000', maybe autofs doesn't like it
Last edited by karol (2009-05-29 14:07:31)
Offline