On Mon, Apr 11, 2016 at 01:43:45PM +0400, John Frankish wrote:
> Ref:
> Beyond LinuxR From Scratch - Version 2016-04-10
> Chapter 15. Networking Programs
> 
> NFS-Utils-1.3.3
> 
> Compiling with "--disable-nfsv4" has no effect:
> 
> $ sudo mount.nfs -v localhost:/mnt/nfs nfs_test
> mount.nfs: timeout set for Mon Apr 11 12:16:38 2016
> mount.nfs: trying text-based options
> 'vers=4.2,addr=127.0.0.1,clientaddr=127.0.0.1'
> mount.nfs: mount(2): Connection refused
> mount.nfs: trying text-based options 'addr=127.0.0.1'
> mount.nfs: prog 100003, trying vers=3, prot=6
> mount.nfs: portmap query retrying: RPC: Program not registered
> mount.nfs: prog 100003, trying vers=3, prot=17
> mount.nfs: portmap query failed: RPC: Program not registered
> mount.nfs: requested NFS version or transport protocol is not supported
> 
> $ sudo mount.nfs -o nfsvers=3 -v localhost:/mnt/nfs ~/nfs_test
> mount.nfs: timeout set for Mon Apr 11 12:32:35 2016
> mount.nfs: trying text-based options 'nfsvers=3,addr=127.0.0.1'
> mount.nfs: prog 100003, trying vers=3, prot=6
> mount.nfs: trying 127.0.0.1 prog 100003 vers 3 prot TCP port 2049
> mount.nfs: prog 100005, trying vers=3, prot=17
> mount.nfs: trying 127.0.0.1 prog 100005 vers 3 prot UDP port 33763
> localhost:/mnt/nfs on /home/tc/nfs_test type nfs (nfsvers=3)
> 
> Regards
> John
> 

I have seen the need to specify the version when mounting from a
distro, but on the BLFS 7.9 machine I am currently using I compiled
with --disable-gss --disable-nfsv4 --without-tcp-wrappers
--disable-ipv6 and my nfs v3 mounts work fine using just 'nfs' as
the fstype in /etc/fstab (and variously _netdev or noauto or
noauto,user in the options).

ĸen
-- 
This email was written using 100% recycled letters.
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to