LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2015, 10:36 AM   #1
reibisch
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
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.
 
Old 04-15-2015, 11:15 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 9,904

Rep: Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921Reputation: 2921
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)?
 
Old 04-16-2015, 06:25 AM   #3
reibisch
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2015-04-16 at 6.12.58 AM.png
Views:	22
Size:	55.8 KB
ID:	18132   Click image for larger version

Name:	Screen Shot 2015-04-16 at 6.16.33 AM.png
Views:	20
Size:	54.7 KB
ID:	18133   Click image for larger version

Name:	Screen Shot 2015-04-16 at 6.18.08 AM.png
Views:	17
Size:	65.0 KB
ID:	18134   Click image for larger version

Name:	Screen Shot 2015-04-16 at 6.19.25 AM.png
Views:	17
Size:	27.5 KB
ID:	18135  
 
Old 04-16-2015, 08:41 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
Old 04-16-2015, 09:07 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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/
 
Old 04-16-2015, 09:22 PM   #6
reibisch
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	Screen Shot 2015-04-16 at 8.30.31 PM.png
Views:	16
Size:	53.9 KB
ID:	18149   Click image for larger version

Name:	Screen Shot 2015-04-16 at 9.21.14 PM.png
Views:	13
Size:	97.2 KB
ID:	18150  
 
Old 04-17-2015, 10:59 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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)
 
Old 04-17-2015, 11:12 AM   #8
JeremyBoden
Senior Member
 
Registered: Nov 2011
Distribution: Debian
Posts: 1,187

Rep: Reputation: 243Reputation: 243Reputation: 243
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.
 
Old 04-17-2015, 11:21 AM   #9
reibisch
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 04-17-2015, 11:36 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,430

Rep: Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938Reputation: 1938
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Mounting of BlackArmor NAS on a Linux server santhanam2006 Linux - Server 1 04-15-2015 07:51 PM
Mounting NAS RAID via USB opisube Linux - Hardware 1 08-24-2012 01:06 PM
Mounting to a nas drive perfectpc Linux - Server 1 03-20-2012 06:26 AM
Mounting a remote NAS drive Seventh Linux - Newbie 1 09-26-2011 01:59 PM
mounting a NAS device in linux jedilost1 Linux - Newbie 10 01-30-2009 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration