Talk:Mounting an NFS share on Ubuntu: Difference between revisions

From QNAPedia
Jump to navigation Jump to search
mNo edit summary
Yevgen (talk | contribs)
Answered the question
Line 1: Line 1:
In Ubuntu 14.04, <code>portmap</code> has been replaced with <code>rcpbind</code>.
In Ubuntu 14.04, <code>portmap</code> has been replaced with <code>rcpbind</code>.


At any rate, the <code>mount</code> command give here just produces a <code>mount.nfs: an incorrect mount option was specified</code> error on the system I just tried it on. &nbsp;The share is set up to allow the user in question read/write access, and NFS host access turned on for this share in Edit Shared Folder Permission, so I'm not sure what the issue is yet. It is possible to mount the share with cifs. Have also tried adding the <code>vers=3</code> option, after <code>-o</code> and this did not fix the issue.&nbsp;[[User:SMcCandlish|SMcCandlish]] ([[User talk:SMcCandlish|talk]]) 10:53, 26 February 2016 (CST)
At any rate, the <code>mount</code> command give here just produces a <code>mount.nfs: an incorrect mount option was specified</code> error on the system I just tried it on. &nbsp;The share is set up to allow the user in question read/write access, and NFS host access turned on for this share in Edit Shared Folder Permission, so I'm not sure what the issue is yet. It is possible to mount the share with cifs. Have also tried adding the <code>vers=3</code> option, after <code>-o</code> and this did not fix the issue.&nbsp;[[User:SMcCandlish|SMcCandlish]] ([[User_talk:SMcCandlish|talk]]) 10:53, 26 February 2016 (CST)


== Mounting an NFS share on Ubuntu ==
== Mounting an NFS share on Ubuntu ==
Line 18: Line 18:


Has anyone figured out how to resolve this?
Has anyone figured out how to resolve this?
'''Yes. The following command worked for me:'''
sudo mount -vvv -t cifs -o username=yevgen,password=removed //10.0.0.3:/data /mnt/qnap/

Revision as of 16:01, 31 January 2017

In Ubuntu 14.04, portmap has been replaced with rcpbind.

At any rate, the mount command give here just produces a mount.nfs: an incorrect mount option was specified error on the system I just tried it on.  The share is set up to allow the user in question read/write access, and NFS host access turned on for this share in Edit Shared Folder Permission, so I'm not sure what the issue is yet. It is possible to mount the share with cifs. Have also tried adding the vers=3 option, after -o and this did not fix the issue. SMcCandlish (talk) 10:53, 26 February 2016 (CST)

Mounting an NFS share on Ubuntu

I had the same problem as the previous user...

mount.nfs: an incorrect mount option was specified

...it looks like the username and password options are not valid for nfs mounts.  I tried using vers=5, and this time I did not get the error above, but the drive did not mount...

ryan@jonesdesktop:~$ sudo mount -vvv -t nfs -o username=ryan,password=removed,vers=5 192.168.0.101:ryan /home/ryan/ryannas
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "192.168.0.101:ryan"
mount: node:  "/home/ryan/ryannas"
mount: types: "nfs"
mount: opts:  "username=ryan,password=removed,vers=5"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "192.168.0.101:ryan"
mount: external mount: argv[2] = "/home/ryan/ryannas"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw,username=ryan,password=removed,vers=5"

.....this output looks like everything went fine, but the drive is not mapped.  If I remove the vers=5 option, it looks like my Ubuntu system defaults to vers=4, but then it gives me the "incorrect mount option" error...

ryan@jonesdesktop:~$ sudo mount -vvv -t nfs -o username=ryan,password=removed 192.168.0.101:ryan /home/ryan/ryannas
mount: fstab path: "/etc/fstab"
mount: mtab path:  "/etc/mtab"
mount: lock path:  "/etc/mtab~"
mount: temp path:  "/etc/mtab.tmp"
mount: UID:        0
mount: eUID:       0
mount: spec:  "192.168.0.101:ryan"
mount: node:  "/home/ryan/ryannas"
mount: types: "nfs"
mount: opts:  "username=ryan,password=removed"
mount: external mount: argv[0] = "/sbin/mount.nfs"
mount: external mount: argv[1] = "192.168.0.101:ryan"
mount: external mount: argv[2] = "/home/ryan/ryannas"
mount: external mount: argv[3] = "-v"
mount: external mount: argv[4] = "-o"
mount: external mount: argv[5] = "rw,username=ryan,password=removed"
mount.nfs: timeout set for Tue Dec  6 13:48:28 2016
mount.nfs: trying text-based options 'username=ryan,password=removed,vers=4,addr=192.168.0.101,clientaddr=192.168.0.20'
mount.nfs: mount(2): Invalid argument
mount.nfs: an incorrect mount option was specified

Has anyone figured out how to resolve this?


Yes. The following command worked for me:

sudo mount -vvv -t cifs -o username=yevgen,password=removed //10.0.0.3:/data /mnt/qnap/