LinuxQuestions.org
Help answer threads with 0 replies.
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 01-15-2010, 12:58 PM   #1
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
NFS shares not mounting at boot time


I've got a mostly Debian Lenny network but I've set one machine up with Squeeze. One the Squeeze machine I can mount my NFS shares manually but can't get them to mount at boot time. Here's my /etc/fstab file:

Code:
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/elizabeth-root /               ext3    errors=remount-ro 0       1
# /boot was on /dev/sda1 during installation
UUID=a076b57d-ce60-4d6f-bf3e-5bb7d1bba4c8 /boot           ext2    defaults        0       2
/dev/mapper/elizabeth-home /home           ext3    defaults        0       2
/dev/mapper/elizabeth-tmp /tmp            ext3    defaults        0       2
/dev/mapper/elizabeth-usr /usr            ext3    defaults        0       2
/dev/mapper/elizabeth-var /var            ext3    defaults        0       2
/dev/mapper/elizabeth-swap_1 none            swap    sw              0       0
/dev/scd0       /media/cdrom0   udf,iso9660 user,noauto     0       0
192.168.1.101:/home     /mnt/nfs/home   nfs     rw,async,hard,intr,ndev 0      0
192.168.1.101:/data     /mnt/nfs/data   nfs     rw,async,hard,intr,ndev 0      0
Can anyone see anything wrong? The Lenny boxes all auto mount witout any problems.
 
Old 01-15-2010, 01:02 PM   #2
slacker_et
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 138

Rep: Reputation: 27
Any errors being displayed in the logs ?

--ET
 
Old 01-15-2010, 01:40 PM   #3
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
None that I can find but I admit I'm not very experienced at reading the logs.
 
Old 01-15-2010, 02:18 PM   #4
slacker_et
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 138

Rep: Reputation: 27
There should be SOMETHING in the log files.
Maybe the network connection isn't ready by the time the system attempts to do the mounts ??

--ET
 
Old 01-15-2010, 02:22 PM   #5
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
I just looked through the logs again and I think that IS the problem. Anything I can do about it?
 
Old 01-15-2010, 02:41 PM   #6
slacker_et
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 138

Rep: Reputation: 27
You might be able to:
1) Rename (ie renumber) the symbolic links in the proper runlevel directories.

Or

2) Enable "parallel execution" out the boot scripts. And modify the startup scripts so that the mounting script depends upon the networking script.

But I'm not all that familiar with Debian.
I don't know if it supports "parallel execution".
(Which may be a Suse only feature.)

Can any Debian users lend a hand ?

--ET
 
Old 01-15-2010, 02:46 PM   #7
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
Quick update... as near as I can determine from the log, it's mounting the ext3 partitions on the box itself and not even attempting to mount the nfs shares; there's simply no output regarding nfs mounts at all.

It is doing the mount process for the other stuff before it sets up the network.
 
Old 01-15-2010, 04:30 PM   #8
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
Here's something from syslog:

Code:
Jan 15 16:18:40 elizabeth automount[1878]: syntax error in nsswitch config near [ syntax error ]
Here's nsswitch.conf:

Code:
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd:         compat
group:          compat
shadow:         compat

hosts:          files dns
networks:       files

protocols:      db files
services:       db files
ethers:         db files
rpc:            db files

netgroup:       nis

Last edited by 2handband; 01-15-2010 at 04:32 PM.
 
Old 01-15-2010, 05:48 PM   #9
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
Okay, I'm an idiot. Take a close look at those fstab lines. I misspelled nodev... TWICE! Problem solved, thanks for the responses.
 
  


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
NFS not mounting at boot time thllgo Linux - Server 2 07-28-2009 03:01 PM
NFS shares not mounted at boot time hpladd Linux - Networking 6 12-06-2007 10:48 PM
Mounting Windows network shares at boot time? lowpro2k3 Slackware 6 05-16-2006 09:14 PM
Mounting a nfs partition on boot time wjleon Linux - Newbie 1 05-02-2005 11:12 AM
mounting NFS shares help pls mlu Linux - Networking 1 11-23-2004 09:32 PM

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

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