12.04 - Mate 16.04.1 and western digital mybookworld NAS not talking - Ask Ubuntu


i'm upgrading main machine 12.04 lts mate 16.04.1. use western digital (white light) nas on network. works fine on 12.04 won't mount 16.04. here's know far.

on 12.04, here mount does

/etc/fstab entry 10.1.0.3:/nfs/public   /media/public  nfs     nolock,rw,hard,intr                     0 0 

(note: above entry works on existing 12.04 machine)

$> sudo mount /media/public    jgd@john-laptop:~$ sudo mount -v /media/public mount.nfs: timeout set sat nov 12 13:05:43 2016 mount.nfs: trying text-based options 'nolock,hard,intr,vers=4,addr=10.1.0.23,clientaddr=10.1.0.23' mount.nfs: mount(2): permission denied mount.nfs: access denied server while mounting 10.1.0.23:/nfs/public jgd@john-laptop:~$  

now here's interesting part. if mount command line

jgd@john-laptop:~$ sudo mount -v 10.1.0.3:/nfs/public /media/public 

i following

jgd@john-laptop:~$ sudo mount -v 10.1.0.3:/nfs/public /media/public mount.nfs: timeout set sat nov 12 13:15:36 2016 mount.nfs: trying text-based options 'vers=4,addr=10.1.0.3,clientaddr=10.1.0.23' mount.nfs: mount(2): protocol not supported mount.nfs: trying text-based options 'addr=10.1.0.3' mount.nfs: prog 100003, trying vers=3, prot=6 mount.nfs: trying 10.1.0.3 prog 100003 vers 3 prot tcp port 2049 mount.nfs: prog 100005, trying vers=3, prot=17 mount.nfs: trying 10.1.0.3 prog 100005 vers 3 prot udp port 773 jgd@john-laptop:~$  

success

so question is, put in /etc/fstab cause mount.nfs duplicate command line behavior?

thanks john

your mount debugs have answer: first command tries mount nfs v4 share. last command fails mounting using v4, falls v3.

in fstab, try adding nfsvers=3. fstab entry should like:

10.1.0.3:/nfs/public /media/public nfs nolock,rw,hard,intr,nfsvers=3 0 0 

also, may want consider using autofs handling network shares. root:

apt-get install autofs4 cat <<eof >/etc/auto.master +dir:/etc/auto.master.d/ +auto.master eof mkdir /etc/auto.master.d cat <<eof >/etc/auto.master.d/nfs localname -rw nfs.server.ip:/path/to/share eof cat <<eof >/etc/auto.master.d/nfs.autofs /media/localname/ /etc/auto.master.d/nfs --ghost --timeout 43200 eof service autofs restart ls -l /media/localname/*/ #would force mounting nfs share ls -l /media/localname/ #should show remote share 

such preferred dealing nfs shares, these may go away, come back, ... autofs nice way cope these.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User