Hi there,
Quote:
Originally Posted by AmirSI
Thanks, it worked. It was really Samba.
|
fine, at least some success up to a point.
Quote:
Originally Posted by AmirSI
Is it possible, to make this folder mounted permanent?
The working command:
Code:
sudo mount -t cifs -o username=admin,password=admin //192.168.2.12/vmware-bkp ~/mnt/QNAP-backup/
|
Yes, it is. You'd have to add a line corresponding to the above command in /etc/fstab.
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
Of course, you have to replace <username> with your actual user name, or choose a different mountpoint altogether (outside your home directory, e.g. in /mnt or /media). That's because fstab is processed under the root account, so it doesn't know what you actually mean by '~'.
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
That way, you can boot your computer from a CD or USB Live system, mount your HDD partition manually and then restore the fstab file from the saved copy if anything fails badly.
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