Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
09-13-2006, 07:47 PM
|
#1
|
Member
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119
Rep:
|
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?
|
|
|
09-14-2006, 02:12 AM
|
#2
|
Member
Registered: Apr 2006
Location: A comfy chair...
Distribution: Slackware
Posts: 111
Rep:
|
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)
|
|
|
09-14-2006, 06:07 AM
|
#3
|
Member
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119
Original Poster
Rep:
|
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.
|
|
|
09-14-2006, 07:59 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
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 08:13 AM.
|
|
|
09-16-2006, 08:28 AM
|
#5
|
Member
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119
Original Poster
Rep:
|
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.
|
|
|
09-17-2006, 03:28 AM
|
#6
|
Member
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480
Rep:
|
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.
|
|
|
09-17-2006, 07:20 AM
|
#7
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
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.
|
|
|
09-22-2006, 03:58 PM
|
#8
|
Member
Registered: May 2006
Location: Tennessee
Distribution: current, rawhide
Posts: 88
Rep:
|
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 04:02 PM.
|
|
|
09-23-2006, 07:13 AM
|
#9
|
Member
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119
Original Poster
Rep:
|
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...
|
|
|
09-23-2006, 11:15 AM
|
#10
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep:
|
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 11:17 AM.
|
|
|
09-26-2006, 06:16 AM
|
#11
|
Member
Registered: Mar 2005
Location: Right behind you.
Distribution: NBG, then randomed.
Posts: 480
Rep:
|
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.
|
|
|
09-26-2006, 10:21 AM
|
#12
|
Member
Registered: Dec 2001
Location: Beckwith Township, Ontario, Canada
Distribution: Slackware 14.0, Slackware-64 14.1
Posts: 119
Original Poster
Rep:
|
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.
|
|
|
09-27-2006, 01:29 PM
|
#13
|
Member
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:31 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|