Wednesday, November 30, 2011

Mount Samba Shares using CLI on Ubuntu 10.04 LTS

Before you are able to mount the samba shares, you should have smbfs package installed on your Ubuntu. Use this command to install it:

$ sudo apt-get install smbfs

And here is the command to mount samba shares on NAS like D-Link DNS-343 from Ubuntu:

$ mkdir backup_mount
$ sudo mount -t cifs // -o user=yourusername,password=yourpassword,iocharset=utf8,file_mode=0777,dir_mode=0777 backup_mount/

Now you can browse your file on backup_mount