Mounting a Buffalo Linkstation NAS on a Raspberry Pi (Raspbmc) or other Linux distro
In order to mount a NAS share, you need to have root priviliges. If you're running raspbmc on a raspberry pi and a root account has not been configured (default), you can use:
  • sudo mkdir /media/nas
  • sudo vi /etc/fstab

Add the following line:
  • //www.xxx.yyy.zzz/Share /media/nas cifs vers=3.0,username=guest,password=,uid=1000 0 0
Where www.xxx.yyy.zzz is the ipaddress of your NAS. Save the file and execute the following command:
  • sudo mount -a
On 2023-04-30, Aecio wrote:

I tried this and it does not work. I know the local directory is created and I know the network share's name and path are correct, for I tested with smb-client. However, the mount results in mount error(2): No such file or directory.

I had to include the vers=2.0 in the parameters

Any help appreciated!

On 2023-05-08, Eeuwe Vandyke wrote:

Hello Aeciolemos,

Thank you for your comment. You are absolutely right. I will update my blog accordingly. 
At the time that I wrote the blog (2014) the option vers=2.0   (or vers=3.0) was not necessary.

It has changed somewhere around 2017. See also:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/fs/cifs?id=eef914a9eb5eb83e60eb498315a491cd1edc13a1

On the command line:
sudo mount -t cifs //aaa.bbb.ccc.ddd/Temp /media/nas_tmp  -o vers=3.0,username=USERNAME,password=PASSWORD

Or via editing /etc/fstab
//aaa.bbb.ccc.ddd/Temp   /media/nas_tmp cifs vers=3.0,username=USERNAME,password=PASSWORD,uid=1000 0 0

Then you can simply use:
sudo mount /media/nas_tmp

I hope this helps.

Back to List

All form fields are required.
A confirmation mail for the comments will be send to you.