Raspberry Pi - Samba

October 6, 2013

To map a Windows network share on Linux, first, ensure that the Samba client is installed on your Linux box.

$ sudo apt-get install smbclient

Next, you need to create a local directory to use as a mount point and then mount the network shared directory to that location using a command similar to the following examples:

$ sudo mkdir /mnt/nas-share/
$ sudo mount -t cifs -o rw,file_mode=0777,dir_mode=0777 //nas/Share /mnt/nas-share/

$ sudo mkdir /mnt/nas-protected-share/
$ sudo mount -t cifs -o user=USERNAME,password=PASSWORD,rw,file_mode=0777,dir_mode=0777 //nas/ProtectedShare /mnt/nas-protected-share/

The command arguments used: