Results 1 to 6 of 6

Thread: mount.nfs before network

  1. #1

    Default mount.nfs before network

    Hi,

    I added two nfs mounts to my fstab. Upon reboot I noticed mount.nfs attempting to mount these and timing out because it was running before the network was brought up. The network is ifup not network manager. Once logged in to the desktop (OpenSUSE 11.4 and Gnome by the way) the nfs mounts were not present of course.

    So I removed the fstab entries and added them via NFS Client in yast. Now upon reboot the same timeout happens while mount.nfs is running before the network comes up but once logged into the desktop the nfs mounts are there.

    End result is I'm "up and running" but the mount.nfs timeout is going to bug me and keep me awake at nights. Any suggestions?

    Thanks,
    Doug

  2. #2
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: mount.nfs before network

    Try this: add the mounts back into fstab. Then put this line in the file /etc/init.d/after.local:
    Code:
    mount -a
    That works for cifs mounts, might just also work for nfs mounts, worth a try.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: mount.nfs before network

    On 2011-05-18 16:31, mccomber wrote:
    > I added two nfs mounts to my fstab. Upon reboot I noticed mount.nfs
    > attempting to mount these and timing out because it was running before
    > the network was brought up. The network is ifup not network manager.


    Why is the network not up at that moment? Investigate that.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: mount.nfs before network

    NFS mounts should have _netdev in the options field so that they will be mounted when the network comes up.

  5. #5

    Default Re: mount.nfs before network

    Quote Originally Posted by ken_yap View Post
    NFS mounts should have _netdev in the options field so that they will be mounted when the network comes up.
    That did the trick! Thanks.

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: mount.nfs before network

    On 2011-05-19 12:06, ken yap wrote:
    >
    > NFS mounts should have _netdev in the options field so that they will be
    > mounted when the network comes up.


    That's a good one...

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" at Telcontar)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •