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.
hmmm.....from " man mount "
---------
soft This option allows the kernel to time out if the nfs server is not
responding for some time. The time can be specified with timeo=time.
This option might be useful if your nfs server sometimes doesn't
respond or will be rebooted while some process tries to get a file
from the server. Usually it just causes lots of trouble.
---------
it sais it should work, but also causes " lot's of trouble ".
well....been trying for hours to get it working.
are you sure the script is ok ?
it won't run ok.......
maybe someone can explain this part:
---------
function getmounts()
{
# Check for local maps to be loaded
if [ -f /etc/auto.master ]
then
echo "echo "check"" #<---- added by me
cat /etc/auto.master | sed -e '/^#/d' -e '/^$/d'| (
while read dir map options
do
if [ ! -z "$dir" -a ! -z "$map" \
-a x`echo "$map" | cut -c1` != 'x-' ]
then
echo "echo "check1 "" #<added by me
etc.......
----------
this function is called as " getmounts | sh "
i added two checks.
the first one is echoed, the 2.nd one not.
and it's after this that the command " automount" is issued
so that's never run.
if [ ! -z "$dir" -a ! -z "$map" \
-a x`echo "$map" | cut -c1` != 'x-' ]
There are 3 expressions :
! -z "$dir" : $dir must not be empty
! -z "$map" : $map must not be empty
x`echo "$map" | cut -c1` != 'x-' : this one seems complicated but not really,
first let see what is between the ` ` chars : echo "$map" | cut -c1
so it takes the first char in $map variable if $map was equal to "-fs", then
x`echo "$map" | cut -c1` != 'x-'
becomes
x- != 'x-' : so the test return false
(basically, if the first char of $map contains '-', the last test returns false)
And finally the -a connective option stands for the 3 expressions must returns true
like : expression1 && expression2 && expression3
I would remove --timeout in auto.master to see if it works but frankly
I have no idea why /etc/auto.master does not pass the first test in
getmounts() function :
Code:
echo "/net /etc/auto.net --timeout=60" | (
while read dir map options; do
if [ ! -z "$dir" -a ! -z "$map" -a x`echo "$map" | cut -c1` != 'x-' ]; then
echo "test ok"
echo "dir: $dir"
echo "map: $map"
echo "options: $options"
fi
done)
-----------------------
test ok
dir: /net
map: /etc/auto.net
options: --timeout=60
Do the /net and /net/packages
directories have to be created? Or are they created by the automount scripts?
I have tried to do this following your instructions (ie. without creating the directories) and I get the following error:
[root@machine1 /]# cd /net/packages
bash: cd: /net/packages: No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.