luis.barbas at gmail.com
Wed Nov 10 15:15:16 UTC 2010
On Wed, Nov 10, 2010 at 04:03, Ted Hilts <ehilts at mcsnet.ca> wrote:
> Tom H wrote:
>> 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
>> $ showmount -e
>> $ sudo mount
>> $ ls /ted-nfs
> After executing sudo exportfs -raw I got the response:
> exporting *:/media/...cfe3
> After editing /etc/fstab I did the sudo mount -a -t nfs and got an error
> "mount.nfs: access denied by server while mounting 127.0.0.1:/"
> showmount -e gives the export list for cic2ext.
> sudo mount gives all the mounts including the nfs mounted on proc.
> ls /ted-nfs gives nothing.
> You are welcome to access this machine remotely -- things would go a lot
> Thanks -- Ted Hilts
Hi, Ted. Just a long shot. Do you have a firewall enabled? If so,
could you disable it and test the mounts again?
The following is a very old doc but it can give you the idea why
firewall may be the problem:
More information about the ubuntu-users