LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-28-2010, 11:31 AM   #1
milomak
Member
 
Registered: May 2009
Posts: 147

Rep: Reputation: 18
NFS partition not mounting automatically


I have an NFS mount that is in my NFS client's fstab file
Code:
192.168.1.102:/mnt/mythtv                               /mnt/mythtv     nfs             defaults        0 0
sudo mount -a will mount it after i have booted the system.

However, at boot it is not mounted. An extract of /var/log/boot shows
Code:
Sun Aug 22 15:45:34 2010: Setting kernel variables ...error: "net.ipv6.bindv6only" is an unknown key
Sun Aug 22 15:45:34 2010: ^[[31mfailed.^[[39;49m
Sun Aug 22 15:45:34 2010: Setting up resolvconf...done.
Sun Aug 22 15:45:34 2010: Setting up networking....
Sun Aug 22 15:45:34 2010: Configuring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Sun Aug 22 15:45:34 2010: Copyright 2004-2010 Internet Systems Consortium.
Sun Aug 22 15:45:34 2010: All rights reserved.
Sun Aug 22 15:45:34 2010: For info, please visit https://www.isc.org/software/dhcp/
Sun Aug 22 15:45:34 2010: 
Sun Aug 22 15:45:34 2010: Listening on LPF/eth0/00:24:8c:52:dc:60
Sun Aug 22 15:45:34 2010: Sending on   LPF/eth0/00:24:8c:52:dc:60
Sun Aug 22 15:45:34 2010: Sending on   Socket/fallback
Sun Aug 22 15:45:37 2010: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Sun Aug 22 15:45:37 2010: DHCPOFFER from 192.168.1.1
Sun Aug 22 15:45:37 2010: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Sun Aug 22 15:45:37 2010: DHCPACK from 192.168.1.1
Sun Aug 22 15:45:38 2010: bound to 192.168.1.100 -- renewal in 38648 seconds.
Sun Aug 22 15:45:38 2010: if-up.d/mountnfs[eth0]: lock /var/run/network/mountnfs exist, not mounting ... failed!
Sun Aug 22 15:45:38 2010: done.
Sun Aug 22 15:45:38 2010: Starting portmap daemon....
Sun Aug 22 15:45:38 2010: Starting NFS common utilities: statd.
Sun Aug 22 15:45:38 2010: Cleaning up temporary files....

My /etc/network/interfaces looks like
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

#auto eth1
#iface eth1 inet dhcp

iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.2
broadcast 10.0.0.255
What am I missing?

Although I have posted Debian details above; the same thing happens with my Arch and Fedora installs - that is I have to run mount -a to mount the nfs partition although it is in my /etc/fstab
 
Old 08-28-2010, 03:20 PM   #2
rayfordj
Member
 
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
Use _netdev option.

Try this:
Code:
192.168.1.102:/mnt/mythtv                               /mnt/mythtv     nfs             _netdev,defaults        0 0
 
Old 08-28-2010, 03:31 PM   #3
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetingz!

I would suggest against using /etc/fstab for NFS mounts. Rather, there's a way to have an NFS mount auto mounted/unmounted as needed. Depending on your particular platform, you'll want to read up on the man pages for either auto.master and auto.nfs (or auto_master and auto_nfs).

For my CentOS/RHEL servers, the /etc/auto.net script will find all NFS shares that are shared out to the server, then auto-mount them as needed under /net. So if I setup an NFS share from ServerBravo:/mnt/backups to ServerAlpha, then on ServerAlpha I can "cd" to "/net/ServerBravo/mnt/backups".

Make sense?

Last edited by xeleema; 08-28-2010 at 03:34 PM.
 
  


Reply



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
mounting ntfs partition automatically on boot with fstab dasy2k1 Ubuntu 4 11-18-2008 12:57 AM
automatically nfs mounting after network monitor connceted? williamdavehall Linux - Laptop and Netbook 2 01-09-2007 11:43 AM
Is mounting an NTFS partition over NFS possible? PlanetPHP Linux - Networking 6 11-20-2006 03:32 AM
mounting a ntfs partition, automatically jrwizzard Linux - Newbie 10 08-18-2004 11:45 AM
nfs share is not mounting automatically pawlub Linux - General 1 01-03-2004 06:21 PM

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

All times are GMT -5. The time now is 12:18 PM.

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