mount -t nfs4 fails, but mount -t nfs succeeds [SOLVED]

Jonathan Ryshpan jonrysh at pacbell.net
Thu Apr 26 20:17:15 UTC 2012


On Thu, 2012-04-26 at 12:45 -0700, Jonathan Ryshpan wrote:
> Can anyone explain this?  How can it be fixed?  Do some services need to
> be started on the server?
> 
> The server is "weather".  This log is from the client:
>         # mount -t nfs weather:/home/jonrysh /mnt/weather
>         # ls /mnt/weather
>         Desktop  Documents  Downloads  Music  Pictures  Public  Templates  Videos  grub2
>         # umount /mnt/weather
>         # mount -t nfs4 weather:/home/jonrysh /mnt/weather
>         mount.nfs4: mounting weather:/home/jonrysh failed, reason given by server:
>           No such file or directory
>         # 
Following a suggestion in the Arch Linux Wiki:
        https://wiki.archlinux.org/index.php/NFSv4#Exports
I made this minor edit to /etc/exports on weather (the server)

Old /etc/exports:
        /               amito(rw,no_root_squash)
        /home/jonrysh   amito(rw,no_root_squash) 
New /etc/exports:
        /               amito(rw,fsid=0,no_root_squash)
        /home/jonrysh   amito(rw,no_root_squash)
Note that the addition of "fsid=0" to the entry for the root directory
allows *both* the root and a directory under it to be exported.  To
understand this better, read the following section in the Arch Linux
Wiki: Exporting directories outside your NFS root

All very subtle, and undocumented.

jon




More information about the users mailing list