You are not logged in.

#1 2009-05-29 10:45:46

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Autofs does not mount my DVDs

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

#2 2009-05-29 11:42:35

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Autofs does not mount my DVDs

HyperBaton wrote:

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

#3 2009-05-29 11:59:46

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: Autofs does not mount my DVDs

Yes I can mount by hand no problem. And I'm not quite sure how the fdisk listing helps here?

Offline

#4 2009-05-29 12:31:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Autofs does not mount my DVDs

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

#5 2009-05-29 13:03:47

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: Autofs does not mount my DVDs

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

#6 2009-05-29 13:05:11

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Autofs does not mount my DVDs

What's different w/ this headless beast? How do you get into that machine?

Offline

#7 2009-05-29 13:08:03

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: Autofs does not mount my DVDs

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

#8 2009-05-29 13:08:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Autofs does not mount my DVDs

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

#9 2009-05-29 13:12:48

HyperBaton
Member
From: Belgium
Registered: 2008-01-18
Posts: 207

Re: Autofs does not mount my DVDs

Nope, tried that before.

Offline

#10 2009-05-29 13:27:09

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Autofs does not mount my DVDs

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

Board footer

Powered by FluxBB