Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

How to mount NFS share?
Thank you for your donation

Pages (2): 1 2 Next »
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
How to mount NFS share?
8th Jul, 2013, 04:48 AM
Post: #1
theodore Offline
Registered
Posts: 1
Joined: Jul 2013
Reputation: 0
How to mount NFS share?
Hey all,

the wiki is offline and the search did not bring the correct answer, therefore i have to ask:
I just installed Xbian and tried to mount an external drive via NFS.
The drive is shared via nfs @ OS X. It's shared correctly, because my XBMC @ iPad finds the share.

I read that i have to edit the /etc/fstab file but i still don't know how. I created a new folder (/media/shows). How do i point the NFS share (IP is 192.168.1.234 and the folder /Volumes/Shows/) in the correct way in /etc/fstab?
Do i have to do something else later? Except from adding the directory in XBMC of course?

Thanks for your help.
Find all posts by this user
Quote this message in a reply
8th Jul, 2013, 06:53 AM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to mount NFS share?
(8th Jul, 2013 04:48 AM)theodore Wrote:  The drive is shared via nfs @ OS X. It's shared correctly, because my XBMC @ iPad finds the share.

I read that i have to edit the /etc/fstab file but i still don't know how. I created a new folder (/media/shows). How do i point the NFS share (IP is 192.168.1.234 and the folder /Volumes/Shows/) in the correct way in /etc/fstab?
Do i have to do something else later? Except from adding the directory in XBMC of course?

Thanks for your help.

most of the time problem with osx as server is "secure" setting (macosx requiring connection on ports < 1024, what xbmc can't, because is not running under root user).

to confirm this, log into xbian via ssh and on command prompt do "sudo -i", you will get root account. now do "mount 192.168.1.234:/Volumes/Shows /media/shows". if this works, is it the setup of osx. go into terminal on macox, and add -N parameter to the hfs server. lower part of the plist file should look like this, the "-N" is important:
Code:
cd /System/Library/LaunchDaemons
vi com.apple.nfsd.plist
Code:
<key>ProgramArguments</key>
        <array>
                <string>/sbin/nfsd</string>
                <string>-N</string>
        </array>

save the file and do
Code:
launchload -w unload /System/Library/LaunchDaemons/com.apple.nfsd.plist
launchload -w load /System/Library/LaunchDaemons/com.apple.nfsd.plist

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
18th Aug, 2013, 02:45 AM
Post: #3
zilexa Offline
Registered
Posts: 231
Joined: Feb 2013
Reputation: 9
RE: How to mount NFS share?
I have the same issue. I have added the -N, even rebooted my Mac (10.7.5). I've added an NFS network location to XBMC (within Music, via Files) by simply typing the IP address of my macbook.
Now I can see the 4 shares in XBMC (the ones I've added to the exports file on my mac) but if I select any of them, nothing happens Sad

Any tips?
Find all posts by this user
Quote this message in a reply
19th Aug, 2013, 08:53 PM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to mount NFS share?
how your /etc/exports looks on the mac ? and what you get (again on the mac) after "ps aux | grep nfs" ?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
9th Sep, 2013, 09:07 PM
Post: #5
zilexa Offline
Registered
Posts: 231
Joined: Feb 2013
Reputation: 9
RE: How to mount NFS share?
(19th Aug, 2013 08:53 PM)mk01 Wrote:  how your /etc/exports looks on the mac ? and what you get (again on the mac) after "ps aux | grep nfs" ?

cat /etc/exports
Terminal
'/Users/USERNAME/Prive/TV Shows' -network 192.168.1.1 -mask 255.255.255.0 -alldirs
/Users/USERNAME/Prive/Movies -network 192.168.1.1 -mask 255.255.255.0 -alldirs
/Users/USERNAME/Prive/Pictures -network 192.168.1.1 -mask 255.255.255.0 -alldirs
/Users/USERNAME/Prive/Music -network 192.168.1.1 -mask 255.255.255.0 -alldirs
/Users/USERNAME/Music/ -network 192.168.1.1 -mask 255.255.255.0 -alldirs

ps aux | grep nfs
Terminal
root 61 0.0 0.1 2478140 3164 ?? Ss 9:48PM 0:09.91 /sbin/nfsd -N
username 947 0.0 0.0 2425480 180 s000 R+ 1:05PM 0:00.00 grep nfs
Find all posts by this user
Quote this message in a reply
9th Sep, 2013, 09:23 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: How to mount NFS share?
zilexa,

what uid (user) owns /Users/USERNAME folder ? you probably want's to map uids. so if the UID of the mac user is for instance 1034, change the export lines to:

Code:
/Users/USERNAME/Music/ -network 192.168.1.1 -mask 255.255.255.0 -alldirs -mapall=1034:

then your nfs uri should be

1) for mounting in linux directly
my_macs_ip:/Users/USERNAME/Music

2) in sources.xml of XBMC
nfs://my_macs_ip/Users/USERNAME/Music

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
5th Aug, 2014, 08:04 AM
Post: #7
dmgmit Offline
Registered
Posts: 12
Joined: Jul 2013
Reputation: 1
RE: How to mount NFS share?
I just installed xbian 1.0 beta 2 in a USB HD. It works fine, but only I can't mount manually my nfs drive with 'sudo mount 192.168.2.137:/var/lib/mldonkey/down /home/xbian/nfs' when before with SD it was possible.
Any solution? Thanks in advance.

_Diego
Find all posts by this user
Quote this message in a reply
5th Aug, 2014, 09:35 AM
Post: #8
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to mount NFS share?
What's the error?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
5th Aug, 2014, 06:03 PM
Post: #9
dmgmit Offline
Registered
Posts: 12
Joined: Jul 2013
Reputation: 1
RE: How to mount NFS share?
mount.nfs: Connection timed out

After 5 minuts.
Find all posts by this user
Quote this message in a reply
5th Aug, 2014, 06:26 PM
Post: #10
CurlyMo Offline
Registered
Posts: 3,501
Joined: Dec 2012
Reputation: 202
RE: How to mount NFS share?
So the command hangs and gives that message after about 5 minutes?

pilight - modular domotica solution
Visit this user's website Find all posts by this user
Quote this message in a reply
5th Aug, 2014, 11:12 PM
Post: #11
dmgmit Offline
Registered
Posts: 12
Joined: Jul 2013
Reputation: 1
RE: How to mount NFS share?
Yes, It hangs and not respond for 5'
Find all posts by this user
Quote this message in a reply
6th Aug, 2014, 01:44 AM
Post: #12
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How to mount NFS share?
@dmgmit
1) How did you create the filesystem on the USB drive?
2) Does /home/xbian/nfs exist?
3) Are you sure everything is on the same subnet? Can you ping the NAS from the RPi?
4) Can you connect via XBMC using NFS?
5) Post output of dmesg on http://www.pastebin.com

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
6th Aug, 2014, 02:30 AM
Post: #13
dmgmit Offline
Registered
Posts: 12
Joined: Jul 2013
Reputation: 1
RE: How to mount NFS share?
1) I installed xbian from SD with xbian-config (6-xbian copier)
2) I created /home/xbian/nfs manually with sudo mkdir /home/xbian/nfs and sudo chmod -R 0777 /home/xbian/nfs
3) ping 192.168.2.137
PING 192.168.2.137 (192.168.2.137) 56(84) bytes of data.
64 bytes from 192.168.2.137: icmp_req=1 ttl=64 time=0.231 ms
64 bytes from 192.168.2.137: icmp_req=2 ttl=64 time=0.166 ms
64 bytes from 192.168.2.137: icmp_req=3 ttl=64 time=0.158 ms
4) No, only appears 192.168.2.137 but doesn’t connect
5) http://pastebin.com/Zapvs0Fi

Thanks for your attention
Find all posts by this user
Quote this message in a reply
6th Aug, 2014, 02:43 AM
Post: #14
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: How to mount NFS share?
Ok- I'm stumped. I've no idea. This is not my area of expertise BTW.

I can't see why it works with the SD card and not the USB drive - they are an exact copy. There is nothing in dmesg to say there is a problem.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
6th Aug, 2014, 03:50 AM
Post: #15
menakite Offline
Management
******
Posts: 175
Joined: Apr 2014
Reputation: 27
RE: How to mount NFS share?
I suggest you upgrade via xbian-config, as you're getting a kernel oops 37 seconds after boot. That may also fix your NFS issue.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Pages (2): 1 2 Next »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
Question [PROBLEM] Mount SMB share at boot Jingles 3 29,274 5th Jul, 2014 10:18 PM
Last Post: Kevin LeRoy
  Cannot Mount SMB share via Fstab ttsk8r 1 9,807 17th Jul, 2013 09:55 PM
Last Post: Gwystyl
  [PROBLEM] Can not mount smb share Armand 1 8,939 4th Jul, 2013 08:44 AM
Last Post: mk01

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 18th May, 2025, 11:39 AM Powered By MyBB, © 2002-2025 MyBB Group.