LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-23-2015, 02:20 AM   #1
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Rep: Reputation: Disabled
Trouble mounting network drive on Wandboard/Arch


Hi. I've installed Arch Linux on a Wandboard running Logitech Media Server (LMS). LMS needs to read my music files off of a NAS network share. I can't figure out how to mount that network share.

I was told by someone who has a similar NAS to make the following entry in etc/fstab:

//192.168.10.15/media/Music /mnt/netdrive cifs noauto,x-systemd.automount,user=nobody,password="",iocharse t=utf8,noperm,nounix,nobrl 0 0

But when I start LMS and point it to /mnt/netdrive, my media/Music folder isn't shown. Is there a problem with the way I'm trying to mount the network share?

I've tried using "root" and "admin" as username and the admin password of the NAS as password, but still no luck. I've tried mounting the share manually, but I get a "permission denied" error.

Any help would be greatly appreciated.
 
Old 03-25-2015, 09:56 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Have you checked the permissions of the share on the NAS?
You can check /var/log/messages or grep a dmesg for the NAS ip to get some information on what's happening during the connection attempt.
If it's properly configured, the connection should not require the administrative or root account passwords to be hard coded into the /etc/fstab, the original idea, having it mount as "nobody" or accomplish the authentication through a more restrictive pk/pki exchange (if security is a consideration) is correct.
 
Old 03-26-2015, 03:19 AM   #3
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Have you checked the permissions of the share on the NAS?
You can check /var/log/messages or grep a dmesg for the NAS ip to get some information on what's happening during the connection attempt.
If it's properly configured, the connection should not require the administrative or root account passwords to be hard coded into the /etc/fstab, the original idea, having it mount as "nobody" or accomplish the authentication through a more restrictive pk/pki exchange (if security is a consideration) is correct.
Thanks for your answer. I was able to solve the problem. I'll just quote you my post to the LSM forum:

<<I had given up and was about to go to bed when somebody on a French Arch forum answered my request for help, sending me to this page:

https://wiki.archlinux.org/index.php..._configuration

Under "Manual mounting", we find:

"Mount the share using the mount.cifs type. Not all the options listed below are needed or desirable (ie. password).

# mount -t cifs //SERVER/sharename /mnt/mountpoint -o user=username,password=password,workgroup=workgrou p,ip=serverip

Note: If you get the output "mount error(13): Permission denied", this might be due to a bug in mount.cifs. See the following bug report. https://bugs.archlinux.org/task/43015#comment130771 Try specifying the option "sec=ntlmv2" to work around it."

So I added "sec=ntlmv2" to my fstab, as follows:

//192.168.0.14/media/ /media/netdrive cifs sec=ntlmv2,noauto,x-systemd.automount,user=nobody,password="",iocharset=utf8,noperm,nounix,nobrl 0 0

rebooted the Wandboard... and fwang! My media share appeared in LMS. >>

I don't even know what "sec" is. Maybe you can explain and/or confirm the bug?
 
Old 03-26-2015, 03:33 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Outstanding, if you could mark the thread as "RESOLVED" in thread tools, that will help the next person searching the forums for a solution to the same problem.
 
Old 03-26-2015, 03:36 AM   #5
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Outstanding, if you could mark the thread as "RESOLVED" in thread tools, that will help the next person searching the forums for a solution to the same problem.
Sure, but just out of curiosity, what's ntlmv2?
 
Old 03-26-2015, 03:55 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
It's a windows based protocol that allows servers to authenticate their client machines, it makes it more difficult for one user to impersonate another in a situation where encryption based on passwords or public/private keys is not being used. In your case, it's how the NAS is confirming the identify of your wandboard

Last edited by dijetlo; 03-26-2015 at 03:59 AM. Reason: Accuracy and of course spelling.
 
Old 03-26-2015, 04:03 AM   #7
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
It's a windows based protocol that allows servers to authenticate their client machines, it makes it more difficult for one user to impersonate another in a situation where passwords or public/private keys are not being exchanged. In your case, it's how the NAS is confirming the identify of your wandboard
Thanks. In fact the NAS runs under Linux, and it's possible for me to enable the NFS protocol on it, even though CIFS is what's enabled by default. Since both the Wandboard and the NAS are under Linux, might I get better performance if I enable NFS and mount the share on the NAS with NFS? Of course, the share needs to be accessible (rw) to Windows computers too. At least that would get around this problem. My finding a solution was sheer luck...
 
Old 03-26-2015, 04:29 AM   #8
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
You would get better performance with NFS (or at least you should) however, are you having performance issues?
Your solution wasn't sheer luck, it was the decision you made that you were going to work at the problem until you solved it. Once you made that commitment, it was only a question of time.
 
Old 03-26-2015, 07:29 AM   #9
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dijetlo View Post
Your solution wasn't sheer luck, it was the decision you made that you were going to work at the problem until you solved it. Once you made that commitment, it was only a question of time.
Well, maybe, but when I say it was luck it's because I don't have the feeling I understand what I'm doing, of being able to eliminate possible causes and zero in on a few, and then on one. I'm groping around in the dark. Well, at least I know more than I did a few days ago...

Quote:
Originally Posted by dijetlo View Post
You would get better performance with NFS (or at least you should) however, are you having performance issues?
Logitech Media Server is slow reading files over a network, and needs all the help it can get. I'm willing to try setting the share up as NFS if it's not likely to cause a lot of problems with Windows and if I don't have to destroy the share to set it up as NFS. The NAS front end has an option to enable NFS. If I enable it, can I set the share as both CIFS and NFS? Or do I have to disable CIFS? I see references to a Windows 7 service that can handle NFS. Any opinion on that?

Thanks again for your help.
 
Old 03-26-2015, 09:11 AM   #10
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The biggest issues I have with NFS surround it's unfortunate tendency to wander around on your ports, and the resulting mayhem that creates with firewall rules. There's a hack to fix that though.
Other than that, you have to turn on some RPC services, lockd, statd, quotd, a few others and configure the service on both the client and server. There's a lot of good documentation on it, just google Arch (you're using arch, right?) NFS and if you get stuck give me a shout.
Better yet, since we closed this thread, if you want to open another on that topic and put the link in this one, I'll follow it over and subscribe to that one as well.
To keep a site like this organized so it's usable as a resource for others, it's best to follow the posting rules. They're not trying to stifle discussion, far from it, but if you don't categorize what we're talking about it doesn't do anyone else any good. It also might dissuade someone more knowledgable than I from joining the discussion, since they think it's already over.
No worries about the help, I enjoy this stuff and I sense a like minded approach from you.
 
Old 04-01-2015, 08:51 AM   #11
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Trouble... with NFS

Quote:
Originally Posted by dijetlo View Post
The biggest issues I have with NFS surround it's unfortunate tendency to wander around on your ports, and the resulting mayhem that creates with firewall rules. There's a hack to fix that though.
Other than that, you have to turn on some RPC services, lockd, statd, quotd, a few others and configure the service on both the client and server. There's a lot of good documentation on it, just google Arch (you're using arch, right?) NFS and if you get stuck give me a shout.
Better yet, since we closed this thread, if you want to open another on that topic and put the link in this one, I'll follow it over and subscribe to that one as well.
To keep a site like this organized so it's usable as a resource for others, it's best to follow the posting rules. They're not trying to stifle discussion, far from it, but if you don't categorize what we're talking about it doesn't do anyone else any good. It also might dissuade someone more knowledgable than I from joining the discussion, since they think it's already over.
No worries about the help, I enjoy this stuff and I sense a like minded approach from you.
Hi. I'm now trying to mount the same share using NFS after enabling NFS on my ReadyNAS, and can't manage to get it to work. I'm getting help from the folks at the Logitech Media Server forum, but it's tough going and anything you can do to help would be appreciated. If you want me to start a new thread here, just say the word - also if there's any info you need.

Thanks for your help in the past and, I hope, in the present!
 
Old 04-01-2015, 03:40 PM   #12
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Happy to oblige, Lestrad. Since we're talking about NFS and I think you've got the wandboard issues nailed down, why don't you start another thread. Put whatever data you have on the issue in the new post and just treat it like a separate issue. I'll keep an eye out for it but part of the service this website provides to the Linux community is the opportunity for people to develop their troubleshooting skills working with other user and I don't want to shortcut that process for others. It will also make the thread more valuable since people looking for solutions involving wandboards will find what they need in this thread already. People with NFS issues will find a separate thread more specific to their needs

Talk soon

Dijetlo
 
Old 04-02-2015, 02:38 AM   #13
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
Gotcha. Okay, look for the new thread, and I look forward to seeing you there. Thanks again for everything.
 
Old 04-02-2015, 09:24 AM   #14
Lestrad
Member
 
Registered: Mar 2015
Posts: 43

Original Poster
Rep: Reputation: Disabled
New thread

Since I decided to start a new thread, I found a solution! But I need some help to get it working. Hope you get time to take a look:

http://www.linuxquestions.org/questi...22#post5341422
 
Old 04-02-2015, 08:45 PM   #15
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Shhh... let the community puzzle over it a bit (24 hours), it's good for them, good for you.
I've got you subscribed and I think I can probably help,
No worries, amigo.
 
  


Reply



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
Trouble mounting Sata drive kyleabaker Linux - Hardware 4 04-27-2007 09:56 PM
Trouble mounting drive rw paradoxdruid Linux - Hardware 3 09-21-2004 02:07 AM
Trouble mounting cd drive Mahony Linux - General 2 04-14-2004 06:16 PM
Trouble mounting a CD+RW drive Tiot Linux - Newbie 19 10-25-2003 10:47 AM
mounting a usb hard drive--PPC arch. tomservo Linux - Hardware 3 07-16-2002 09:12 AM

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

All times are GMT -5. The time now is 10:48 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
Open Source Consulting | Domain Registration