1832343 Members
2351 Online
110041 Solutions
New Discussion

Re: can not automount

 
SOLVED
Go to solution
Leonid Mishkind
Frequent Advisor

Re: can not automount

Regarding the map, it was mounted at all time. This is not the first time I see the message /my was mounted.

You were right about the execution permissions.
Both files ( /etc/auto_master and /etc/auto.mymap ) did not have execute , Though adding the permissions to the files did not change anything.
Here is the current outputs:

root@unixlab2: ls -l /etc/auto_master
-rwxr-xr-x 1 root root 46 Apr 17 13:49 /etc/auto_master
root@unixlab2: ls -l /etc/auto.mymap
-rwxrwxrwx 1 root sys 36 Apr 17 13:49 /etc/auto.mymap
root@unixlab2: automount -f /etc/auto_master -v
automount: /my mounted
automount: no unmounts
root@unixlab2: ls -l /my/unixlab1
/my/unixlab1 not found
root@unixlab2: ls -ld /my/unixlab1
/my/unixlab1 not found
root@unixlab2: grep /my /etc/mnttab
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176906116
root@unixlab2: showmount -e unixlab1
export list for unixlab1:
/home/testleo/automount (everyone)


Once again , thanks for your help
Peter Nikitka
Honored Contributor
Solution

Re: can not automount

Hi,

here we have it!
I wrote
>>
There may NOT be execute rights on this file!
<<
Your output:
>>
root@unixlab2: ls -l /etc/auto.mymap
-rwxrwxrwx 1 root sys 36 Apr 17 13:49 /etc/auto.mymap
<<

A map with execute rights is tried to be execute as a program - but /etc/auto.mymap is not such a script, which produces map information as output - it's just a plain map.
So do:
chmod 644 /etc/auto.mymap /etc/auto_master
and again
automount -f /etc/auto_master -v

Then try
ls -l /my/unixlab1

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"
Leonid Mishkind
Frequent Advisor

Re: can not automount

YES!!! That is the answer!!! It works fine.
root@unixlab2: ls -l /my/unixlab1
total 0
-rw-rw-rw- 1 root sys 0 Apr 11 09:45 1
/etc/auto.mymap /my autofs ignore,indirect 0 0 1176909530
unixlab1:/home/testleo/automount /my/unixlab1 nfs nodevs,rsize=32768,wsize=32768,NFSv3 0 0 1176909534


You are the greatest!!! All the points go to you!!!
Peter Nikitka
Honored Contributor

Re: can not automount

Hi Mishkind,

it's really nice to hear that the system works now!
Looking at a thread with 27 (or so) replies, it would be nice to reward All replies of All users with points (according to their part of help for a final/complete solution).

mfG Peter
The Universe is a pretty big place, it's bigger than anything anyone has ever dreamed of before. So if it's just us, seems like an awful waste of space, right? Jodie Foster in "Contact"