LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2012, 06:07 PM   #1
Rockin80sRob
LQ Newbie
 
Registered: Aug 2012
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Can't get basic autofs function to work


I'm trying to understand how autofs works by attempting to get an abitrary test folder mounted to a mount point. Basic autofs function. When I do this, the mount point stays empty and I can't write anything to that fold/mount point any longer. I am using RHEL 5.3 and I left everyting at default except for the "/etc/auto.mymount" file addition. No NIS, LDAP, etc.

##############
/etc/auto.master
#---------------------
/misc /etc/auto.misc
/net -host
+auto.master

/mymount /etc/auto.mymount
##############

##############
/etc/auto.mymount
#---------------------
testkey :/var/tmp/test-src-mount
##############

Made the /etc/auto.mymount file with 775 permissions.
This should work. I have the all the necessary services running even though not really needed for the example above: autofs, nfs, iplock.

FYI For my specific case, I am doing a simple remote nfs mount on another backup/mirror LINUX system. Manual network mounting works fine.
 
Old 08-20-2012, 06:39 PM   #2
silendo
Member
 
Registered: Jun 2012
Location: Italy
Distribution: Slackware 13.37
Posts: 45

Rep: Reputation: Disabled
Excuse, can you used /etc/fstab ?
 
Old 08-20-2012, 09:24 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,417

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Try this http://www.linuxhomenetworking.com/w...FS_Automounter
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autofs don't work zkab Linux - Networking 5 09-17-2011 06:55 AM
autofs do not work vjhuntz Linux - General 11 06-27-2007 11:26 PM
C++ Basic Function Help, PLS. InvisibleSniper Programming 31 08-03-2005 10:37 AM
autofs in sid doesn't work! Skyblaze Debian 2 02-27-2005 01:53 PM
Linux autofs: can it work without NIS? kbshaq Linux - Networking 1 02-16-2005 09:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration