SlackwareThis 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.
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.
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.
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)
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.
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 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...
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.