LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-13-2006, 06:47 PM   #1
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Rep: Reputation: 16
automount won't, mount will (mount CDROMs)


What on earth would cause automount to fail, yet a manual mount attempt of the same media succeed?

Using...
  • the "Terminator" script posted here and elsewhere online;
  • autofs v4 support is built-in to the kernel;
  • iso9660 fs support is built-in to the kernel;
  • "cdrom0 -fstype=iso9660,ro,gid=100,umask=002 :/dev/sr0" in auto.cd, along with a similar line for my second cdrom drive;

...yet invariably automount's attempts fail with the following:

Code:
automount[2658]: attempting to mount entry /var/autofs/removeable/cdrom1
automount[2665]: >> mount: wrong fs type, bad option, bad superblock on /dev/sr1,
automount[2665]: >>        missing codepage or other
 error
automount[2665]: >>        In some cases useful info
 is found in syslog - try
automount[2665]: >>        dmesg | tail  or so
automount[2665]: mount(generic): failed to mount /dev/sr1 (type iso9660) on /var/autofs/removeable/cdrom1

Manually mounting the same media on the other hand to any arbitrary mount point, works flawlessly.


I don't get it. Anyone have any ideas?
 
Old 09-14-2006, 01:12 AM   #2
Daga
Member
 
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111

Rep: Reputation: 15
Is the CD using UDF? I know in /etc/fstab you can specify udf,iso9660 as the filesystem type. It will try UDF first and fall back to iso9660 (also called cdfs someplaces? I don't remember the details...) if the first failed. Maybe that will work here? (disclaimer: haven't tried it with the script)
 
Old 09-14-2006, 05:07 AM   #3
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by Daga
Is the CD using UDF?
I wish it was that easy.

The CDs I've been testing it with are iso9660/joliet. Not to mention that when I mount them manually, mount picks up the filesystem type on its own quite happily. I've tried setting "-fstype=auto" in auto.cd, but to no avail.


Quote:
I know in /etc/fstab you can specify udf,iso9660 as the filesystem type. It will try UDF first and fall back to iso9660 (also called cdfs someplaces? I don't remember the details...) if the first failed.
Neat... I didn't know that. Consider this filed away for future experimentation after I get automount to behave.
 
Old 09-14-2006, 06:59 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I've been having problems with autofs the last few days. I wonder if there is a change in config file syntax because I've been getting some warnings about wrong commands.

I had 4.0.0 running ok, then updated to 4.1.4 and things started going wrong. Also the version in -current (3.x.x) doesn't seem to help.

Just removepkg'd it installed 4.1.4 again and it works, but what I noticed was that my /etc/auto.cd gets deleted with the removepkg.

I notice your auto.cd has:

cdrom0 -fstype=iso9660,ro,gid=100,umask=002 :/dev/sr0"

But the error says:

utomount[2665]: >> mount: wrong fs type, bad option, bad superblock on /dev/sr1,

Last edited by dive; 09-14-2006 at 07:13 AM.
 
Old 09-16-2006, 07:28 AM   #5
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by dive
I had 4.0.0 running ok, then updated to 4.1.4 and things started going wrong. Also the version in -current (3.x.x) doesn't seem to help.
I haven't tried 4.x yet; this is all with 3.1.7 from the 10.2 distro.

Interestingly enough come to think of it, this trouble started when I moved to the 2.6 kernel. automount behaved itself when I was running 2.4.

Quote:
I notice your auto.cd has:

cdrom0 -fstype=iso9660,ro,gid=100,umask=002 :/dev/sr0"

But the error says:

utomount[2665]: >> mount: wrong fs type, bad option, bad superblock on /dev/sr1,
Good catch, but as I said in my first post auto.cd includes a similar line for my second cdrom drive.
 
Old 09-17-2006, 02:28 AM   #6
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
The way to do this with a 2.6.x kernel is with HAL and dbus, and you do not use the ide-scsi module anymore with the 2.6.x kernels.
 
Old 09-17-2006, 06:20 AM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I managed to get 4.1.4 running. I have had a 2.6.15 kernel for a while and have no idea why it works now. I don't have HAL installed though.
 
Old 09-22-2006, 02:58 PM   #8
TNWestTex
Member
 
Registered: May 2006
Location: Tennessee
Distribution: current, rawhide
Posts: 88

Rep: Reputation: 16
HAL dbus and current

Quote:
Originally Posted by evilDagmar
The way to do this with a 2.6.x kernel is with HAL and dbus, and you do not use the ide-scsi module anymore with the 2.6.x kernels.
I don't see either HAL or dbus in current. Are they made completely obsolete by udev?

I noticed some pertinent changes in the *.new startup files in rc.d that affect automounting.

Last edited by TNWestTex; 09-22-2006 at 03:02 PM.
 
Old 09-23-2006, 06:13 AM   #9
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by TNWestTex
I don't see either HAL or dbus in current. Are they made completely obsolete by udev?
I haven't looked in to HAL yet, but if you compare the release dates of dbus to the timestamps of the packages in "current", dbus is ahead in the game.

I would assume that it hasn't been made obsolete; rather that "current" hasn't caught up to it yet.

I still haven't tried adding dbus to my system yet to see what effect it has on autofs. I've been intending to, but life keeps getting in the way...
 
Old 09-23-2006, 10:15 AM   #10
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I have neither HAL not DBUS and automount works fine. Just be sure to uninstall all previous versions of autofs - ie dont upgradepkg, do removepkg and installpkg separately is all I can think of that made it work for me. Also I think the auto.x file format has changed so do a 'man auto.master'. Maybe that was the problem.

Also I found after removing autofs 3.x that it also removed /etc/auto. files too.

Last edited by dive; 09-23-2006 at 10:17 AM.
 
Old 09-26-2006, 05:16 AM   #11
evilDagmar
Member
 
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480

Rep: Reputation: 31
Quote:
Originally Posted by TNWestTex
I don't see either HAL or dbus in current. Are they made completely obsolete by udev?
No, they make use of it.
 
Old 09-26-2006, 09:21 AM   #12
dguy
Member
 
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by dive
Just be sure to uninstall all previous versions of autofs - ie dont upgradepkg, do removepkg and installpkg separately is all I can think of that made it work for me.
Thanks, but no upgrades have been done in my case. The same build of autofs has been distributed with Slack since 8.1 as far as I can remember, and that's all that I've been using.
 
Old 09-27-2006, 12:29 PM   #13
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
That hal dbus kde can be tricky. I got it all working by using a wiki at kde.org and google. Can't tell you whether it will be added to future versions of slackware though. Pat's keeping it old school for now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't mount audio/cdroms with Slackware JockVSJock Slackware 16 07-10-2006 11:31 PM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM
how to mount cdroms automatically? greythorne Arch 5 06-24-2005 04:52 PM
i can't mount my cdroms Paxmaster Linux - Hardware 10 07-21-2004 09:40 AM
cant mount cdroms in slackware Timeturtle Linux - Hardware 2 11-16-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration