Announcement

Collapse
No announcement yet.

NFS fstab

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NFS fstab

    I can't seem to get my NFS shares to mount using the fstab.
    Here is what I have in /etc/fstab for the NFS:
    Code:
    192.168.1.10:/mnt/FTP /home/mxm/Network/NAS/FTP nfs nouser,hard,intr,atime,auto,rw,dev,exec,suid 0 0
    Anyone know why the share wouldn't be mounting?

    #2
    Re: NFS fstab

    Are you getting any kind of a mount error? Can you mount it manually? What options are you using if you can mount it manually?

    Making sure you have the permissions correct in /etc/exports on the NFS server is important as well.
    HP dv2600: Core2 @ 2.2 GHz, 2GB RAM, GeForce-M 8400SE , Kubuntu 8.04 Hardy 32-bit<br />Gateway E4000: P4 @ 2.4GHz, 1GB RAM, Radeon 9200SE, Kubuntu 7.10 Gutsy 32-bit<br />Averatec 2200: Turion64 @ 1.8GHz, 1GB RAM, Ubuntu Server 7.10 Gutsy 64-bit

    Comment


      #3
      Re: NFS fstab

      Mounting manually gives me no problems.

      Here is the command I use:
      Code:
      mount 192.168.1.10:/mnt/FTP /home/mxm/Network/NAS/FTP

      Comment


        #4
        Re: NFS fstab

        have you got nfs-common installed or client?

        heres what i have, works everytime has for years

        10.0.0.101:/mnt/IDE2/Music /home/nick/drives/music/ nfs user,defaults,atime,auto,rw,dev,exec,suid 0 0
        Using:<br />Mint Kubuntu 7.10 (kde4 dual core 2.2ghz 4gb)<br />Freenas (nx6325 hp laptop)<br />Mint Gnome 7.10 (EEE Pc 4g white 1 gb ram)

        Comment


          #5
          Re: NFS fstab

          Do you have a reason for using the hard and intr options? Try taking those options out. You aren't passing them with your manual mount command, so why put them in the fstab?

          You obviously have all of the nfs stuff installed, as you can properly mount it manually.

          My line is a little different than eggbanjos, but has been working fine for a while now.
          192.168.1.240:/media/raid0 /media/raid0 nfs users,atime,auto,rw,nodev,noexec,nosuid 0 0
          HP dv2600: Core2 @ 2.2 GHz, 2GB RAM, GeForce-M 8400SE , Kubuntu 8.04 Hardy 32-bit<br />Gateway E4000: P4 @ 2.4GHz, 1GB RAM, Radeon 9200SE, Kubuntu 7.10 Gutsy 32-bit<br />Averatec 2200: Turion64 @ 1.8GHz, 1GB RAM, Ubuntu Server 7.10 Gutsy 64-bit

          Comment


            #6
            Re: NFS fstab

            HI Magikx21,

            I know the last post has been few months back, but I faced the same problem with you. Was looking through the forum and yet no answer given.

            I could mount NFS manually but not through /etc/fstab. I did a bit of testing (a lot of reboot) and at last I can get the NFS run on /etc/fstab.

            The problem I had was my Network Interface was using DHCP to obtain its IP address. When the boot script run (/etc/rcS.d), my Network Interface has not been assigned an IP address yet, therefore /etc/fstab unable to connect to NFS server.

            So, after a few hours of research and debugging the messages that appear on the startup screen, I changed my /etc/network/interfaces to looks like below:

            auto lo eth0
            iface lo inet loopback
            iface eth0 inet dhcp

            Where eth0 is my Network Interface that connect to NFS and DHCP server. The default doesn't have eth0 information. You need to add them.
            I reboot my PC and it worked.

            Hope this can help.

            Cheers,

            Comment


              #7
              Re: NFS fstab

              You can also try using '_netdev' mount option in fstab, from man mount:
              _netdev

              The filesystem resides on a device that requires network access (used to prevent the system from attempting to mount these filesystems until the network has been enabled on the system).

              Comment

              Working...
              X