Find the answer to your Linux question:
Results 1 to 4 of 4
I have tried several different approaches posted on the internet with no luck. My network on both machines is DHCP. At this point the Server side has nfs-common, nfs-kernel-server, and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    Need help with NFS in Ubuntu 7.10


    I have tried several different approaches posted on the internet with no luck.
    My network on both machines is DHCP.
    At this point the Server side has nfs-common, nfs-kernel-server, and portmap installed. Below are the contents of /etc/exports and /etc/fstab

    # /etc/exports: the access control list for filesystems which may be exported
    # to NFS clients. See exports(5).
    #
    # Example for NFSv2 and NFSv3:
    # /srv/homes hostname1(rw,sync) hostname2(ro,sync)
    #
    # Example for NFSv4:
    # /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
    # /srv/nfs4/homes gss/krb5i(rw,sync)
    #
    /media/downloads/iso *(rw,sync,no_root_squash)


    # /etc/fstab: static file system information.
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    proc /proc proc defaults 0 0
    #/dev/hda1
    UUID=4bd7c18b-deb4-467c-9a3e-e3bce2c1e0a1 / ext3 defaults,errors=remount-ro 0 1
    #/dev/sda1
    UUID=6e88e2c2-8a17-4ff1-afcb-a05c9d2bec8c /home ext3 defaults 0 2
    #/dev/sda2
    UUID=524b7e71-fced-4d89-9ac5-1eb8713b0469 none swap sw 0 0

    /dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
    /dev/scd0 /media/cdrom1 udf,iso9660 user,noauto,exec 0 0
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
    /dev/fd1 /media/floppy1 auto rw,user,noauto,exec 0 0

    /media/download/iso 192.168.1.1/24(rw,no_root_squash,async)

    On on the client side I have nfs-common and portmap installed and the line below in /etc/fstab

    192.168.1.0/24:/media/download/iso /media/nfs/download/iso nfs rw,sync 0 0

    Also made sure directory was exported with exportfs -av What else do I need to do?

  2. #2
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    Have you try to mount it from client manually?

    ~:mount -t nfs 192.168.x.x:/media/download/iso /mount/point

    If can't, any messages in /var/log/messages?

  3. #3
    jgz
    jgz is offline
    Just Joined!
    Join Date
    Jan 2008
    Posts
    41

    Tried your suggestion and

    Set my network to static IP addresses and changed directory to /home/jgz/Music
    This along with manual mount works. Still not able to auto mount.
    The mount point /home/jgz/Music works but other mount points such as /home/jgz/Public and /home/jgz/download do not as shown below

    jgz@zuidema-desktop:~$ sudo mount 192.168.1.2:/home/jgz/Music /home/jgz/Music
    [sudo] password for jgz:
    jgz@zuidema-desktop:~$ sudo mount -t nfs 192.168.1.2:/home/jgz/download /home/jgz/download
    mount.nfs: 192.168.1.2:/home/jgz/download failed, reason given by server: Permission denied
    jgz@zuidema-desktop:~$ sudo mount 192.168.1.2:/home/jgz/Public /home/jgz/Publicmount.nfs: 192.168.1.2:/home/jgz/Public failed, reason given by server: Permission denied
    jgz@zuidema-desktop:~$

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    Rule of thumb! Only export your parent directory with the right permissions (/home/jgz/)

    http://www.faqs.org/docs/Linux-HOWTO....html#SYMPTOM3

Posting Permissions

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