LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-13-2011, 05:14 AM   #1
Ianmb
LQ Newbie
 
Registered: Apr 2010
Posts: 21

Rep: Reputation: 0
Smile Autofs on SUSE Linux Enterprise 11 SP1


Hey guys,

I want to automount the /usr/local/whatever directory on a desktop, which is hosted by a server running SLES.

I'm a bit of a newbie to SUSE and the automount stuff so I'd appreciate if somebody could explain to me in very simple terms how I can do this. I'm just not sure what goes in what file, and how to make subdirectories of the mounts visible etc.

I am running SLES and SLED 11 SP1 with the latest kernel revisions.

Thanks in advance!
 
Old 10-13-2011, 06:05 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,798

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Hello,

Are you talking about mounting this directory on system boot, or per user? You can use fstab to mount devices; Even though this link is on the ubuntu website, it provides good documentation on fstab - https://help.ubuntu.com/community/Fstab

Cheers,

Josh
 
Old 10-13-2011, 06:50 AM   #3
Ianmb
LQ Newbie
 
Registered: Apr 2010
Posts: 21

Original Poster
Rep: Reputation: 0
Ideally I'd want it per user, and on demand, rather than static mounts.

Also I prefer to use the command line rather than Yast in this case.....
 
Old 10-14-2011, 06:09 AM   #4
Ianmb
LQ Newbie
 
Registered: Apr 2010
Posts: 21

Original Poster
Rep: Reputation: 0
OK, I want to automount the /usr/local directory from my fileserver on my desktop.

This is the /etc/exports file on server1:

/usr/local xxx.xxx.xxx.xxx(rw,sync)

This is the /etc/auto.master on desktop1:

#+auto.master
/usr/local /etc/auto.local --timeout=300 --ghost

And the /etc/auto.local file on desktop1:
* -fstype=nfs,rw,nosuid,soft server1.where.ever:/usr/local

But I cannot cd into anything under /usr/local after restarting all the daemons, I just get 'No such file or directory'.

Where am I going wrong? I don't use LDAP. The autofs RPM is autofs-5.0.3-89.12.1
 
Old 10-21-2011, 04:52 PM   #5
cjcox
Member
 
Registered: Jun 2004
Posts: 304

Rep: Reputation: 42
Check your /etc/nsswitch.conf file and make sure you have an automount: entry there (should have it).

You need to test mount of the remote /usr/local area to some empty directory... just to verify NFS is ok.

I just did a test of this style on SLES SP1, using slightly different paths, but with a direct mount style (like yours) and it seemed to work fine for me.

so... my case:

Code:
# cat /etc/auto.master
... blah
/cjc/misc /etc/auto.cjcmisc 
# cat /etc/auto.cjcmisc
* -fstype=nfs,rw,nosuid,soft myserver:/software
# service autofs restart
Shutting down automount
Starting automount
# cd /cjc/misc/BTI
# df 
myserver:/software       125825280 112743392  13081888  90% /cjc/misc/BTI
Works for me.
 
Old 10-21-2011, 04:57 PM   #6
cjcox
Member
 
Registered: Jun 2004
Posts: 304

Rep: Reputation: 42
Be aware of how to use wildcards though in your maps. Cuz the /usr/local area will get mounted to WHATEVER name you specify on access (which maybe isn't what you wanted).

so.. there's no difference between:

Code:
cd /cjc/misc/BTI
cd /cjc/misc/gobblygook
cd /cjc/misc/whatever
Doing this and myserver:/software gets mounted 3 times ... for each dir (BTI, gobblygook, whatever)

You make have wanted a ampersand on the end of your area to mount line in auto.local (my auto.cjcmisc)

e.g.

Code:
* -fstype=nfs,rw,nosuid,soft server1.where.ever:/usr/local/&
Maybe???
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SUSE Linux Enterprise Desktop 10 and SP1 allyghee Suse/Novell 1 08-29-2007 02:57 PM
LXer: SUSE Linux Enterprise Desktop SP1 Screenshots LXer Syndicated Linux News 0 07-12-2007 01:46 AM
SUSE Linux Enterprise Desktop SP1 Screenshots lqsh Linux - News 0 07-11-2007 09:36 AM
LXer: Novell releases SUSE Linux Enterprise 10 SP1 LXer Syndicated Linux News 0 06-19-2007 08:01 AM
LXer: Novell preps SUSE Enterprise Linux 10 SP1 LXer Syndicated Linux News 0 03-20-2007 10:01 AM


All times are GMT -5. The time now is 07:12 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration