+ Post New Thread
Results 1 to 4 of 4
*nix Thread, NFS drive not being mounted at boot in Technical; Hi all, I set up a debian squeeze box yesterday and edited the /etc/fstab file so that the system should ...
  1. #1

    Join Date
    Jul 2009
    Posts
    480
    Thank Post
    41
    Thanked 89 Times in 76 Posts
    Rep Power
    50

    NFS drive not being mounted at boot

    Hi all,

    I set up a debian squeeze box yesterday and edited the /etc/fstab file so that the system should mount an NFS share at boot. The line that I added contained the following:

    Code:
    #NAS
    192.168.0.253:/share /media/nas nfs _netdev,auto 0 0
    This used to work fine (most of the time) on Ubuntu 10.04LTS, but will only work on Debian once I issue 'mount -a' in a ternimal.

    Does anyone have any ideas as to why this is happening and how I can fix it?

    Thanks,
    c_e

  2. #2

    Join Date
    Apr 2006
    Posts
    138
    Thank Post
    0
    Thanked 19 Times in 10 Posts
    Rep Power
    37
    It sounds as though your /etc/network/if-up.d/mountnfs.sh is not running. Do ifdown/ifup and see if it is.

    It creates a directory /var/run/network/mountnfs - if dir exists before the script starts it will cause trouble, so you need to get rid of it.

  3. Thanks to unixman from:

    computer_expert (15th June 2011)

  4. #3

    Join Date
    Jun 2011
    Location
    East Sussex
    Posts
    1
    Thank Post
    0
    Thanked 1 Time in 1 Post
    Rep Power
    0
    I have had similar issues mounting smbfs shares at boot and the only reliable workaround I found was to stick mount -a in /etc/rc.local which is executed at the end of each multiuser runlevel.

    Hope this helps.
    Pybe

  5. Thanks to pybe from:

    computer_expert (15th June 2011)

  6. #4

    Join Date
    Jul 2009
    Posts
    480
    Thank Post
    41
    Thanked 89 Times in 76 Posts
    Rep Power
    50
    Quote Originally Posted by unixman View Post
    It sounds as though your /etc/network/if-up.d/mountnfs.sh is not running. Do ifdown/ifup and see if it is.

    It creates a directory /var/run/network/mountnfs - if dir exists before the script starts it will cause trouble, so you need to get rid of it.
    Yep, the directory did exist, so I removed it and ran the mountnfs.sh script which didn't work for some reason. I rebooted and it still hadn't mounted the share but once the script was run manually it worked fine on the two reboots I did to test it.

    Thanks

    Quote Originally Posted by pybe View Post
    I have had similar issues mounting smbfs shares at boot and the only reliable workaround I found was to stick mount -a in /etc/rc.local which is executed at the end of each multiuser runlevel.

    Hope this helps.
    Pybe
    Thanks
    This was going to be the next thing I would have tried if I couldn't have got it going using unixmen's method.

SHARE:
+ Post New Thread

Similar Threads

  1. How do I boot from a Pen Drive?
    By anishmbait in forum Hardware
    Replies: 3
    Last Post: 21st May 2011, 08:59 AM
  2. [FREE] Good quality wall-mounted (Library) mounted metal shelving
    By elsiegee40 in forum Classified Adverts
    Replies: 6
    Last Post: 3rd December 2010, 03:26 PM
  3. Multi Boot USB drive
    By Admiral208 in forum How do you do....it?
    Replies: 7
    Last Post: 2nd February 2010, 09:23 AM
  4. [Fedora] Sharing a mounted network share through NFS
    By Arcath in forum *nix
    Replies: 2
    Last Post: 1st February 2010, 12:29 PM
  5. External boot drive
    By PaulwBrown in forum Windows
    Replies: 3
    Last Post: 12th June 2008, 08:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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