Follow the instructions below to attach your NAS storage to your Ubuntu machine.
First of all install the cifs-utils package:
sudo apt-get install cifs-utils
Then edit your /etc/fstab file and add an entry like the one below (adjust directory names for your situation):
//diskstation.local/ShareName /mnt/ShareName cifs auto,iocharset=utf8,uid=1000,gid=1000,credentials=/home/username/.cifspwd 0 0
Then create a new folder (as root) in the /mnt folder with the same name as specified in the line above (for the example it would be ShareName ).
Next create a file .cifspwd in your home directory with the following lines:
username=uname password=pwd
That’s all; your folder on your NAS will be mounted next time you boot. To mount the new folder immediately issue the command:
sudo mount -all
Have fun!