squeeze not mounting nfs shares

Kernels & Hardware, configuring network, installing services

squeeze not mounting nfs shares

Postby 2handband » 2010-01-15 22:10

I've got a mostly Lenny network with one Squeeze box. One the Squeeze machine I can manually mount the NFS shares on the server but it will not mount them at boot time. Here's my fstab:

Code: Select all
# /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
robert:/home    /mnt/nfs/home   nfs     rw,async,hard,intr,ndev 0       0
robert:/data    /mnt/nfs/data   nfs     rw,async,hard,intr,ndev 0       0


Any ideas?
2handband
 
Posts: 126
Joined: 2009-11-18 17:53

Re: squeeze not mounting nfs shares

Postby smallchange » 2010-01-15 23:31

NFS shares get mounted when the last network interface comes up. If you use wicd it does not run the /etc/network/if-up.d/mountnfs.sh script and NFS mounts do not get mounted. If you are using ifupdown, down the network and bring it back up with "ifup eth0" or whatever and see if it runs the mountnfs.sh script. It should give you a message. This script creates a directory,/var/run/network/mountnfs, that should not survive beyond the runtime of the script. If it exists before the script starts it will cause trouble, so you need to get rid of it.
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: squeeze not mounting nfs shares

Postby 2handband » 2010-01-15 23:42

Okay, got this:

Code: Select all
Starting NFS common utilities: statd.
mount.nfs: an incorrect mount option was specified
mount.nfs: an incorrect mount option was specified


Obviously one of my mount options is screwy but I don't know which one; they all work in Lenny.
2handband
 
Posts: 126
Joined: 2009-11-18 17:53

Re: squeeze not mounting nfs shares

Postby 2handband » 2010-01-15 23:47

Okay, I'm an idiot. I misspelled nodev... TWICE! Problem solved.
2handband
 
Posts: 126
Joined: 2009-11-18 17:53


Return to System configuration

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable