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.
autofs in Slackware 13.0 is version 3.1.7 which is quite old; the sample config files in /usr/doc/autofs-3.1.7/samples/ are dated 1997. The package is not of normal Slackware standard; the sample rc.autofs does not work on Slackware, it's only for Debian and RedHat (Alien Bob provides a fixed version).
I figure there is a reason for this unusual state of affairs. Perhaps autofs is no longer important, superseded by udev. Perhaps more current versions of autofs are not stable enough for Slackware.
AFAIK udev does not support auto-unmount and AFAIK this is important for using vchanger 0.8.5 with Bacula 5.0.0.
The problem is that option "--timeout=60" in /etc/autofs.master (as advised in the vchanger documentation) results in "automount[3300]: parse(sun): unknown option: -timeout=30" in syslog. It may not be supported in autofs 3.1.7.
What to do?
Stay with autofs 3.1.7 and find another way of doing timeout?
Install the latest autofs?
Find a way to implement automount (at vchanger's instigation) and timeout using udev?
Btw I'm using this startup script, where you can define the timeout and remove it from /etc/auto.master
Thanks bathory -- to my rescue again
Where is the correct syntax described? In auto.master I tried --timeout=60 first then -timeout=60 and finally ---timeout=60 (it reportedly solved a problem on OpenSUSE). Only --timeout=60 resulted in automounting (without auto unmounting).
That's one clever startup script, re-writing the config files on the fly and moving any timeout option to an automounter command option.
As a workaround -- to allow project progress -- I've done the equivalent manually (KISS), deleting --timeout=60 from auto.master and adding as an automounter command option in (Alien Bob's) rc.autofs. It's auto unmounting OK.
You don't need the equal sign"=". Just put a space instead, like: "--timeout 60"
Code:
/mnt /etc/auto.misc --timeout 20
Thanks bathory
Sorry it has taken a while. Tried it while installing on another computer that but it broke automounting. Removed --timeout and retested, changing nothing else. Automounting worked again.
Code:
root@CW8:~# /usr/sbin/automount --version
Linux automount version 3.1.7
A question about autofs and nfs4 under slackware.
Under redhat i use simply -fstype=nfs4 and work
under slackware i can't see only empty directories.
Why?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.