LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-24-2015, 01:17 PM   #1
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Rep: Reputation: 13
AutoFS + NFS - Setting Up - Complete Newbie!


Hi,

I'm trying to learn how I can get my pi box to see the NFS share on my server computer (Running Debian). Using the command line and fstab, at boot it works perfectly.

I've read that autofs is better in the eventuality that the server has to reboot.

I've got the following:
auto.master
Code:
#
# 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
#
# 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

/nfs   /etc/auto.nfs
auto.nfs
Code:
hp   -fstype=nfs4   192.168.0.121:/export/4TB

I've also followed the other steps from here https://help.ubuntu.com/community/Autofs In trying to problem solve the config files may be slightly different to how they are said to be in the Ubuntu guide.

I've got no idea what any of it means or which bit is which. Can someone help?
 
Old 09-26-2015, 12:42 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,864

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
Can you confirm that you have the autofs service running?

Last edited by ferrari; 09-26-2015 at 12:44 AM.
 
Old 09-28-2015, 06:42 AM   #3
NotAComputerGuy
Member
 
Registered: Jun 2012
Distribution: Linux Mint - Debian Edition
Posts: 349

Original Poster
Rep: Reputation: 13
It is.
 
Old 10-03-2015, 12:01 AM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,864

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
Did you make any progress here?

After reading your opening post again, I wondered if you were perhaps confused about why the share isn't listed as mounted when using autofs?
Quote:
I'm trying to learn how I can get my pi box to see the NFS share on my server computer (Running Debian). Using the command line and fstab, at boot it works perfectly.
When using autofs, the share is only mounted when the client attempts to access it. A nice write up here

http://greenfly.org/tips/autofs.html
 
1 members found this post helpful.
  


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
What are NFS and autofs? resetreset Linux - Software 2 01-24-2011 08:00 PM
[SOLVED] autoFS / NFS Quandry merana Solaris / OpenSolaris 2 11-22-2010 06:27 AM
explain autofs in nfs surya_b4u Linux - Server 1 08-07-2007 01:53 PM
autofs for NFS jkmartha Linux - Software 1 06-17-2005 10:14 AM
autofs by nfs convenientstore Linux - Networking 1 10-16-2004 03:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:32 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