[ubuntu-users] NFS

Tom H tomh0665 at gmail.com
Tue Nov 9 07:41:49 UTC 2010


On Mon, Nov 8, 2010 at 11:24 PM, Ted Hilts <thilts at mcsnet.ca> wrote:
>
> I can't seem to get a NFS up and running.
>
> There is a file "/etc/exports" and in that file "/media/dfc1...6cfe3".
> The part after the "/media/" is the disk ID.  Also, as sudo I created
> "/ted-nfs" as the mount point.  Then  I did the command "sudo mount
> 192.168.1.15:/media/dfc1...6cfe3/ /ted-nfs" and the command  "sudo
> exportfs ra". I did not use the machine IP addres in the "/etc/exports"
> file but did use it in the command. All this occured on just one machine
> (192.168.1.15) and I have not got past this problem and have also the
> "clients" to worry about.
>
> In the man NFS examples I tried all 4 examples but nothing worked. For
> example (not using "/etc/exports") I did the example:
> "server:/export /mnt nfs defaults 0 0" by putting in the same server,
> the export mount, etc to get "192.168.1.15:/media/dfc1...6cfe3/ /ted-nfs
> nfs defaults 0 0" which failed.  The error was just a list of options.

Trying to understand and suggesting a simple setup/test.

Assuming nfs is installed and running.

Assuming nfsv4.

Server: 192.168.1.15

Client: 192.168.1.15

Directory to export: /media/dfc1...6cfe3

Mount point: /ted-nfs

Set up
$ sudo vi /etc/exports
/media/dfc1...6cfe3   *(rw,fsid=0,no_subtree_check,no_root_squash)
$ sudo exportfs -rav
$ sudo vi /etc/fstab
127.0.0.1:/  /ted-nfs  nfs  noexec,nosuid  0 0
$ sudo mount -a -t nfs

Test
$ showmount -e
and
$ sudo mount
and
$ ls /ted-nfs




More information about the ubuntu-users mailing list