Results 1 to 7 of 7

Thread: Mounting NFS share on startup

  1. #1
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Mounting NFS share on startup

    I am mounting the same share for each user

    the NFS share is Home (on the server) and the actual mount point is /mnt/server

    I then use openLDAP to move all users home directory to /mnt/server and on first logon it creates a directroy on the server for their home files allowing their documents, desktop etc to follow them.

    I have put the following into /etc/fstab on the client

    serverip:/home /mnt/server nfs,rsize=32768,wsize=32768,hard,intr,timeo=14,bg

    the issue is. it doesn't work! What am I doing wrong here?
    □ΞVΞ□

  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: Mounting NFS share on startup

    does that mount line act as expected, i.e. does "mount /mnt/server" mount it?

  3. #3
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Mounting NFS share on startup

    yes

    mount /mnt/server works fine
    □ΞVΞ□

  4. #4
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: Mounting NFS share on startup

    Quote Originally Posted by Jay View Post
    yes

    mount /mnt/server works fine
    Is that the line you're using exactly?

    "serverip:/home /mnt/server nfs,rsize=32768,wsize=32768,hard,intr,timeo=14,bg" is wrong, it needs to be:

    "serverip:/home /mnt/server nfs rsize=32768,wsize=32768,hard,intr,timeo=14,bg"

    using a space is important - without it, the mechanisms which handle mounting network filesystems separately from local filesystems won't know it's a network filesystem

  5. Received thanks from:

    Jay (18-01-2009)

  6. #5
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Mounting NFS share on startup

    DOH! how did I miss that?

    would serverip:/home /mnt/server nfs rw,rsize=32768,wsize=32768,hard,intr,timeo=14,bg

    or

    serverip:/home /mnt/server nfs rw, rsize=32768,wsize=32768,hard,intr,timeo=14,bg
    □ΞVΞ□

  7. #6
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: Mounting NFS share on startup

    filesystem mountpoint filesystem options dumpable fsck-order

    the last two should be 0 (or not entered) for nfs

  8. #7
    Jay
    Jay is offline
    Gentlemen.. we're history Jay's Avatar
    Join Date
    Aug 2006
    Location
    Jita
    Posts
    8,365
    Thanks
    304
    Thanked
    568 times in 409 posts

    Re: Mounting NFS share on startup

    ok, thanks for your help.
    □ΞVΞ□

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. PS3 Xubuntu - Mounting a SMB Share
    By LWA in forum Software
    Replies: 4
    Last Post: 29-03-2008, 12:21 AM
  2. Replies: 2
    Last Post: 15-06-2004, 10:26 AM

Posting Permissions

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