Mount NAS-QNAP to Ubuntu Server
I have my QNAP on network whit a static ip, i need to mount it on Linux Ubuntu Server.
I have tryed : sudo mount -t nfs -o username=admin,password=admin 192.168.2.12:vmware-bkp ~/mnt/QNAP-backup/ And i get error: mount.nfs: an incorrect mount option was specified I tryed some other options and i cant get it to work. If i look on QNAP control panel i have File System: EXT4 and it is RAID6. What am i doing wrong? |
Hi there,
Quote:
Is the NAS unit really using NFS for its shares? I'd rather think it uses Samba, in which case you would mount it with -t cifs instead of -t nfs. Whenever I saw network shares being accessed, they're always prepended with two slashes: //host/share This is independent from whether you use a host name or just an IP. And finally, in mount operations, there's even a colon in front of all that, so it's Code:
://host/share Quote:
[X] Doc CPU |
Thanks, it worked.It was really Samba.
Is it possible, to make this folder mounted permanent? The working command: sudo mount -t cifs -o username=admin,password=admin //192.168.2.12/vmware-bkp ~/mnt/QNAP-backup/ |
Hi there,
Quote:
Quote:
Roughly, it should look like this: Code:
//192.168.2.12/vmware-bkp /home/<username>/mnt/QNAP-backup cifs username=admin,password=admin 0 0 Note that you have to edit /etc/fstab as root (or at least using sudo), and for good reason. Messing up this file can cause your system not to boot any more! As a safety precaution, make a backup copy of that file before you edit it: Code:
sudo cp /etc/fstab /etc/fstab.bak There may be another issue with mounting network shares in fstab: A friend of mine tried that on his Raspberry Pi running Raspbian, a Debian variant. He found that this wouldn't work on Raspbian, obviously that system tries to mount the network shares even before the network is up. I suspect that this may be a problem on other systems as well, but I've never tried it myself. I worked around that potential issue by using autofs for mounting my network shares only when they're accessed. [X] Doc CPU |
Thanks Doc CPU, everthing is working.
|
All times are GMT -5. The time now is 05:29 PM. |