LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting NAS (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-nas-4175539792/)

reibisch 04-15-2015 09:36 AM

Mounting NAS
 
Hello - This is my first interaction with Linux. I recently purchased a Raspberry Pi 2 and am running the full version of Raspbian. I intend to use the Pi as my PLEX media server however I have been unsuccessful in mounting my NAS. I've read a number of guides on how to accomplish this but have been striking out on all accounts. I was hoping someone could help me with what information I should be adding.

NAS - Synology Diskstation DS212j - 192.168.5.195
Linux device - Raspberry Pi 2 - Raspbian - 192.168.5.186
Router - D-Link DIR-655 - 192.168.5.1

I've been accessing the Pi via ssh on my MacBook PRO - 192.168.5.188

Thanks for any assistance you can provide.

pan64 04-15-2015 10:15 AM

What have you exactly tried, what's happened, is there any error message somewhere? How did you configure those devices (shares, firewall, dns, whatever related)?

reibisch 04-16-2015 05:25 AM

4 Attachment(s)
attached are a couple of screen shots showing an attempt using the guide: https://alextheedom.wordpress.com/ra...o-a-nas-drive/ which was unsuccessful.

btmiller 04-16-2015 07:41 AM

It looks like your NAS requires a user name and password to mount shares, which you have not specified. You should google around for how to mount a CIFS share with a user name and password, which may help. Alternatively, you can enable the NFS services on your NAS and mount via NFS, which tends to be a bit more straightforward. NFS is a *nix native protocol whereas CIFS comes from the Windows world.

michaelk 04-16-2015 08:07 AM

You have enabled windows file sharing on the NAS but did you create a share folder yet? I would suggest using NFS instead of cifs but anyway the guide you posted is a bit vague. Make sure the directorys i.e. /home/pi/myNAS/myShare used for the mount point actually exist.
The user and password should be one that was created on the NAS. Also make sure the NAS is configured with a static IP address or you can setup a IP reservation on the router.

//ip_address/share_name /mount_point cifs rw,username=user,password=user_password,user_xattr 0 0

http://www.servethehome.com/setup-ne...nology-ds1812/

reibisch 04-16-2015 08:22 PM

2 Attachment(s)
Frankly I'm at a loss. I followed your steps and even tried this tutorial: http://www.robertsetiadi.net/raspber...re-on-startup/ and had no luck. Below is a screenshot of my fstab. I did place the username and password I created for my Raspberry Pi (on my Diskstation) in the appropriate fields and now I'm getting an error "username specified with no parameter" error. I've included a screenshot of the error and i did confirm that my share folders were created

michaelk 04-17-2015 09:59 AM

Have you tried manually mounting the share? Did you create a share?

Use //Diskstation/share_name and not //Diskstation/Volume1

You can see the shares from the Pi:
smbclient -L Diskstation (Just press enter when asked for password)

JeremyBoden 04-17-2015 10:12 AM

By way of example (not necessarily a good one) in using nfs, my /etc/fstab contains a line:-
Code:

NAS:/mnt/C/        /media/NAS        nfs    rw,hard,intr,users,noauto,noatime,rsize=8192,wsize=8192                0        2
When I want to mount this NAS,
Code:

sudo mount /media/NAS
works fine.

reibisch 04-17-2015 10:21 AM

Is nfs preferred over cifs? I'm indifferent and just want it to run as efficiently as possible. I have only made my decision based on the instructions I've been able to find online.

michaelk 04-17-2015 10:36 AM

Yes. You should create a directory for sharing.

Diskstation:/volume1/share_name /mount/point nfs rw,hard,intr,noatime,rsize=8192,wsize=8192 0 0


All times are GMT -5. The time now is 10:46 PM.