Prerequisite
You must install the followwing package:
apt-get install smbclient
apt-get install cifs-utils
From console
mount -t cifs //server_ip_address/shared_name /mount_path --verbose -o user=user_samba,password=password_samba
To mount automaticaly this directory at the startup, you must modify the file /etc/fstab
sudo -s
nano /etc/fstab
Add th following line at the end
//server_ip_address/shared_name /mount_path smbfs _netdev,credentials=/home/user/.smbcredentials,iocharset=utf8 0 0
where:
//server_ip_adress : Ip address of the Samba server /mount_path : mount destination smbfs : mount tyoe (Samba) _netdev : to wait the connection before mount credentials=/home/user/.smbcredentials: pathfile of the authentification file iocharset=utf8: to support prominent character
Authenfication file
nano /home/user/.smbcredentials
Add the following lines
username=USERNAME
password=PASSWORD