Articles
Setup Samba Client
First of all, you have to install the SAMBA file system client program.
sudo apt-get install smbfs
Next, create the mount folder. You will need a separate folder for each mount.
sudo mkdir /LOCAL-DIR/FOLDER
Using the text editor of your choice, create a file with your remote servers logon credential. Replace the with the local username. The following will open up the GEdit application:
sudo gedit /home/username/.smbcredentials
Place your username and password into the file. Replace the and with the appropriate information:
username=REMOTEUSERNAME
password=REMOTEPASSWORD
Save and exit.
Change the permissions on the file to prevent unwanted eyes from viewing your remote share's logon information:
sudo chmod 600 /home/username/.smbcredentials
Open the file system table file for editing. The following will use GEdit to edit it:
sudo gedit /etc/fstab
Add the remote share to the table on a line by itself. The following line when replaced with appropriate data will mount the share for reading and writing:
//REMOTE-IP/FOLDER /LOCAL-DIR/FOLDER cifs credentials=/home/username/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Save and exit.
It should look like this:
//83.212.32.163/PUBLIC /media/WDSTORAGE cifs credentials=/home/efkerani/.smbcredentials,rw,nounix,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
Finally, test the fstab entry by issuing:
sudo mount -a
If no errors are output, it is likely safe to test with a reboot.
Your remote share should now mount automatically on every boot.