LinuxQuestions.org
Review your favorite Linux distribution.
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 05-12-2013, 09:33 AM   #16
travalon
Member
 
Registered: Jun 2012
Location: AZ
Distribution: Mint 13, Ubuntu
Posts: 78

Original Poster
Rep: Reputation: Disabled

OOOps....
Just messing with the entries in auto.master rendered my machine un-bootable. However I learned from the last time to have a backup copy of a "not bad" auto.master and a persistent Linux install on a usb stick so I could go in and revert back to b4 I broke it. Still empty folders though.
I have checked the group names and IDs on both machines and they match almost. On the host The group name is capitalized (I can't change it) and the client it isn't. Does that matter?

Last edited by travalon; 05-12-2013 at 09:42 AM.
 
Old 05-12-2013, 10:00 AM   #17
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by travalon View Post
It's kinda working. I was afraid I would corrupt my installation again but I did eventually try with and without the bg option. I get the directories generated or if they already exist they are used. There is an icon of a lock on each folder and when I open the folder, it's empty. I can sudo mount and I have changed the permissions to my shares so I can write to them as well and they are ok. Google here i come!!!
one thing of note for autofs to function properly the mount point must be already created with proper permissions on the system and there can be zero sub-folders.

ex:

/mnt/NFS

will work, but:

/mnt/NFS/foo with a mount point of /mnt/NFS will not as /mnt/NFS/foo will screw up the autofs.
 
Old 05-12-2013, 10:59 AM   #18
travalon
Member
 
Registered: Jun 2012
Location: AZ
Distribution: Mint 13, Ubuntu
Posts: 78

Original Poster
Rep: Reputation: Disabled
I just read that some where here http://www.autofs.org/ in the manuals just before breaking my install. I'll have to go back and check everything. I'm thinking I would like to use the wild cards '*' and '&'. If I understand them correctly it will make for easier use on multiple machines.
 
Old 05-12-2013, 12:14 PM   #19
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
here is my working auto.master and auto.NFS for my daughters laptop.

Code:
[user@user ~]$ cat /etc/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc	/etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#	"nosuid" and "nodev" options unless the "suid" and "dev"
#	options are explicitly given.
#
/net	-hosts
#
# Include /etc/auto.master.d/*.autofs
#
+dir:/etc/auto.master.d

#
#	Direct Map
/-	/etc/auto.direct

#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/home/user/NFS		/etc/auto.NFS		--timeout=600	--ghost
Code:
[user@user ~]$ cat /etc/auto.NFS 
TV_Shows	-rw,soft,intr,bg,rsize=8192,wsize=8192	server:/exports/NFS_TV_Shows/centos/public/TV_Shows
and just as a reminder here is my /etc/exports from my server:

Code:
[user@centos ~]$ cat /etc/exports 
#
#	/etc/exports

#	NFS4
/exports *(rw,insecure,subtree_check,crossmnt,fsid=0)

#	NFSv3
/exports/centos/public *(rw,insecure,no_subtree_check,fsid=3010)
/exports/NFS_TV_Shows *(rw,insecure,no_subtree_check,fsid=3020)
hope that helps.
 
  


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
RHEL 6 autofs configuration aalinare Linux - General 6 02-14-2013 01:23 AM
autofs configuration ramadas88 Linux - Server 8 09-21-2010 04:50 AM
Autofs/Automount configuration problems Ccielogs Linux - Server 2 09-11-2009 02:21 AM
Is there a way to include winbind/ntp/autofs configuration in redhat kickstart file? wirelessgirl21 Linux - Newbie 1 06-14-2009 07:58 AM
autofs kemkem42 Linux - Software 1 09-22-2005 01:22 PM

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

All times are GMT -5. The time now is 01:28 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
Open Source Consulting | Domain Registration