So I had a need to mount so NAS shares on my linux box, lets face it who wouldn’t these days with the advent of Plex, these are the basic steps snagged from the Ubuntu wiki and a StackExchange post:
sudo apt-get install cifs-utilssudo mkdir /media/windowsshare
Then edit your /etc/fstab file (with root privileges) to add this line://servername/sharename /media/windowsshare cifs guest,uid=1000,iocharset=utf8,sec=ntlm 0 0
guest indicates you don’t need a password to access the share,
uid=1000 makes the Linux user specified by the id the owner of the mounted share, allowing them to rename files,
iocharset=utf8 allows access to files with names in non-English languages. This doesn’t work with shares of devices like the Buffalo Tera Station, or Windows machines that export their shares using ISO8895-15.
If there is any space in the server path, you need to replace it by 40, for example //servername/My40Documents
I added the sec=ntlm at the end otherwise I kept getting a (95) error when running the mount -a in the next step.
After you add the entry to /etc/fstab type:sudo mount -a
This will (re)mount all entries listed in /etc/fstab.
Et Voila, you should now have some shiny new mounted shares under the /media directory.
If you want more detail check out the following posts: