You are not logged in.

#1 2011-05-04 16:38:20

shawn.abdushakur
Member
Registered: 2011-01-25
Posts: 14

[SOLVED] NFS share not mounting at boot

Hi All,

I have an NFS share listed in fstab and it doesn't mount at boot; however, when i mount -a, it mounts fine. Any thoughts?

Thanks.
Shawn

Last edited by shawn.abdushakur (2011-05-06 12:21:27)

Offline

#2 2011-05-05 10:45:03

Damnshock
Member
From: Barcelona
Registered: 2006-09-13
Posts: 414

Re: [SOLVED] NFS share not mounting at boot

Little help we can offer you if you don't post your fstab line wink

Regards


My blog: blog.marcdeop.com
Jabber ID: damnshock@jabber.org

Offline

#3 2011-05-05 10:47:57

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [SOLVED] NFS share not mounting at boot

NFS Wiki

Last edited by hokasch (2011-05-05 10:49:53)

Offline

#4 2011-05-05 12:40:04

shawn.abdushakur
Member
Registered: 2011-01-25
Posts: 14

Re: [SOLVED] NFS share not mounting at boot

@damnshock: Good point smile. Here it is:


#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda1 swap swap defaults 0 0
LABEL=arch / ext4 defaults 0 1
UUID=c1a8b2e0-bf9e-4382-ac4e-15c2aec65090       /srv/nfs        ext3    defaults        0       0
/srv/nfs/shawn/Documents        /home/shawn/Documents   none    bind
/srv/nfs/shawn/Downloads        /home/shawn/Downloads   none    bind
/srv/nfs/shawn/Music    /home/shawn/Music       none    bind
/srv/nfs/shawn/Pictures /home/shawn/Pictures    none    bind
/srv/nfs/shawn/Videos   /home/shawn/Videos      none    bind
xbmc:/srv/nfs/watch     /home/shawn/Downloads/torrents/watch    nfs     rsize=8192,wsize=8192,timeo=14,intr

Offline

#5 2011-05-05 14:39:00

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: [SOLVED] NFS share not mounting at boot

And you don't see any mount-errors in your logs? Did you respect the order in which daemons have to be started for NFS to work? Are they backgrounded or not? If I had to guess, I'd say your network isn't fully established the moment fstab is trying to mount those shares.

Offline

#6 2011-05-05 15:03:58

shawn.abdushakur
Member
Registered: 2011-01-25
Posts: 14

Re: [SOLVED] NFS share not mounting at boot

I'm not sure where to look for errors. I come from an Ubuntu environment and they have a boot.log, but nothing like that here. I checked dmesg, but didn't see anything.

Here is the DAEMONS line from rc.conf:
DAEMONS=(syslog-ng network netfs crond dhcpd dbus @cups alsa sshd rpcbind nfs-common nfs-server)

That was my suspicion as well, but I can't figure out how to determine if that is the problem.

Thanks.

Offline

#7 2011-05-05 22:15:08

rowdog
Member
From: East Texas
Registered: 2009-08-19
Posts: 118

Re: [SOLVED] NFS share not mounting at boot

The NFS wiki says

Make sure you place portmap before netfs in the daemons array in /etc/rc.conf.

Offline

#8 2011-05-06 03:51:29

shawn.abdushakur
Member
Registered: 2011-01-25
Posts: 14

Re: [SOLVED] NFS share not mounting at boot

And that was it. I didn't think it would matter because I'm using rpcbind, but it does. I placed netfs last, after nfs-common. Thanks to all for the help.

Offline

#9 2011-05-06 04:13:40

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,793

Re: [SOLVED] NFS share not mounting at boot

Please edit your first post and add [SOLVED] to the thread title.

Thanks


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB