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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-26-2010, 12:26 AM
|
#1
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
|
autofs in Slackware 13.0. Some questions
Hello
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?
Best
Charles
|
|
|
|
02-26-2010, 02:25 AM
|
#2
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
Quote:
|
automount[3300]: parse(sun): unknown option: -timeout=30
|
Mind the correct syntax is "-timeout 30"
Btw I'm using this startup script, where you can define the timeout and remove it from /etc/auto.master
Quote:
elif [ -f $map ]
then
echo "/usr/sbin/automount -p /var/run/automount.pid -t 30 $dir file $map
$options $localoptions
|
Regards
|
|
|
|
02-26-2010, 03:04 AM
|
#3
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
Original Poster
|
Quote:
Originally Posted by bathory
Mind the correct syntax is "-timeout 30"
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.
Looking at kernel.org's autofs sources, there doesn't seem to have been a stable version yet 
|
|
|
|
02-26-2010, 03:17 AM
|
#4
|
|
Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,363
|
Hi,
Yup, it goes to auto.master.
You don't need the equal sign"=". Just put a space instead, like: "--timeout 60"
Code:
/mnt /etc/auto.misc --timeout 20
Cheers
|
|
|
|
03-03-2010, 12:34 PM
|
#5
|
|
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian Squeeze (server), Slackware 13.37 (netbook), Slackware64 14.0 (desktop),
Posts: 8,357
Original Poster
|
Quote:
Originally Posted by bathory
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
|
|
|
|
11-04-2011, 03:52 PM
|
#6
|
|
LQ Newbie
Registered: Mar 2010
Distribution: Slackware
Posts: 26
Rep:
|
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?
|
|
|
|
11-04-2011, 04:44 PM
|
#7
|
|
Senior Member
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140
|
Does it work if you add a fstab entry for a nfs mount and mount manually with mount command ?
|
|
|
|
11-05-2011, 09:06 AM
|
#8
|
|
LQ Newbie
Registered: Mar 2010
Distribution: Slackware
Posts: 26
Rep:
|
Sure.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:47 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
|
|