NFS exports and Mac OS X 10.5 Leopard
My shiny new MacBook with 10.5 Leopard arrived the other day so I’ve been trying to get it all set up and working. Only problem is that, as commenter Matt point out in his comments to this post, NFS Manager hasn’t been updated yet. This post on Mac OS X Hints suggests that setting up NFS shares is very easy, but it does assume a certain amount of knowledge.
I was having the same issues as the chap in this thread on MPC Forums. I had followed all the necessary instructions, but still no dice. Here’s what I had to do to get it working.
To create and /etc/exports file:
sudo vi /etc/exports
once in vi, you need to hit I to enter insert mode. Then you can create your file.
/Users/tismey/Movies -maproot=tismey -network 10.0.0.0 -mask 255.255.0.0
What this means is:
I am sharing the directory /Users/tismey/Movies
The -maproot switch maps the root NFS User to my admin user on my machine - tismey.
Using the -network and -mask switches I am sharing the directory to any machine on my internal network (I use the standard Airport 10.0.x.x addressing)
Once done, hit ESC to exit insert mode, then
:wq!
to exit vi and write the file.
You can then check that the file is correct by running
sudo nfsd checkexports
If this produces no output, then all is right with the world. When I ran this, it spotted that I’d actually got a typo in the file (timsey not tismey), and it gave the error ‘Unknown User’.
However, running
showmount -e
was showing no output, so something still wasn’t right. I had a closer look at the options available to nsfd, and thought I would try
sudo nfsd update
Once I’d done this, the output from showmount was
Exports list on localhost:
/Users/tismey/Movies 10.0.0.0
Success!! A few minutes later and I was successfully streaming from my MacBook to my TViX!
COMMENTS / 17 COMMENTS
revolution34 » Blog Archive » NFS Manager v3.0 available for Leopard, Mar 05 08 at 4:48 pm[...] NFS Manager v3.0 is now available to put a shiny GUI on your NFS Exports under Leopard. I haven’t tried it because my NFS Exports are all set up as detailed in this post and I’m not messing with them now!! [...]
matt, Dec 08 07 at 6:51 pmGood work there Tismey. It’s still not working for me and I followed your advice to the letter, the mounts are showing with showmount -e but the tvix just won’t see them (I’ve got the IP address of the desktop mac and the full path name /Users/matthew/matthewtv but no go) tried turning off the mac Firewall but that doesn’t help either, I don’t use wireless just ethernet to a Livebox. I think I might have to go and post on the MPC thread
tismey, Dec 08 07 at 7:41 pmHmm… that’s really strange, because it worked for me first time. Can you post the content of your /etc/exports?
matt, Dec 10 07 at 6:12 pm# This file originally generated by SystemMigration on Sat Oct 27 19:08:04 PDT 2007
### [ Begin Server Admin managed exports. Do Not Edit.
/Users/matthew/matthewtv -maproot=matthew -network 192.168.1.0 -mask 255.255.255.0
### ] End Server Admin managed exports.
~Here’s a c&p of the pertinent part Tismey. When I do checkmount I get nothing (which is good), when I do showmount -e I get:
Exports list on localhost:
/Users/matthew/matthewtv 192.168.1.0(I have static IPs on the tvix: 192.168.1.4 and the Mac: 192.168.1.2 and the firewall is turned off, 192.168.1.2 is the NFS server ip I’ve used on the TVix and /User/matthew/matthewtv is the path). It’s all rather strange. I tried pinging the TVIx and I got a response so it’s on the network. But I’ve hit the limit of my Unix skills
tismey, Dec 11 07 at 6:01 pmHmm… Everything here looks like it matches my setup, with one exception, which could be worth trying - I have the path in my TViX settings as Users/tismey/Movies, NOT /Users/tismey/Movies. Maybe that makes a difference?
Do you have another machine that you could try mounting the NFS export on?
tim, Dec 16 07 at 7:19 amHi,
How might I adapt this so that I can create a shared movies folder (in the shared folder above the Users folder) so that every user on the one machine can access it? In fact, I want the Pictures, Music and Movies folders that are in each user’s home directory to be shared. I have Sorted the Pictures and Music folder so that two users have the same itunes and iphoto etc. But movies is trickier for some reason. Ideally, I’d like to tell the system to point to a shared Pictures, Music and Movies folder when you click on one of those folders in a user folder. I’ve tried making an alias, but i am presented with an error that says OSX needs the (say) Movies folder and it can’t be modified.
Any suggestions?
matt, Dec 17 07 at 12:45 pmHey Tismey, I thought for a second that might be the solver. But no deal
![]()
I’ll keep investigating. I’ll post the solution if I find it.
matt
tismey, Dec 17 07 at 4:13 pm@tim - you’re talking about sharing the folder between users on the same machine, yes? I don’t think you’d use NFS for this, that’s more for sharing folders across a network with other machines. I feel sure that I read a thread about this on a while back - you could try searching there?
@matt - boo! In that case I’m a bit stumped. I guess you could try changing your -maproot to root, in case it’s a privileges issue. Can you share any other folders? Try sharing /Users/Movies or something, see if that works…
matt, Feb 06 08 at 10:18 amHey Tismey. Fixed it at last! (with help from the MCP Forum). For some reason it didn’t like my mask and subnet (even though they were correct). So my simplified exports file looked like this:
/matthewtv -ro -maproot=nobody
ie. no subnet or mask mentioned, and then it worked perfectly
on showmount I get:Exports list on localhost:
/matthewtv Everybody
tismey, Feb 06 08 at 12:04 pmThat’s great news! Interesting to know that you can get away without needing those options specified. Hopefully if anyone else encounters the same problem then this will be of help to them.
Juan, May 14 08 at 3:12 pmHello! This is the first time I’ve visited your blog and I’ve found it amazing. Thanks a lot! I’ve followed all your steps and everything is running well, except for one thing: I don’t know what IP adress enter in my TVIX. Could you help me to find out wich IP adress has the export list of localhost?
Right now, when I type “showmount -e” it says:
/tvixhd1 EveryoneThanks a lot for your help!
tismey, May 14 08 at 3:32 pmHi Juan,
Glad the blog has been of some help to you.
The IP address you need to put ito the TViX is the IP address of your Mac. You can get this from the Network pane in System Preferences. You’re probably best assigning a static IP to your Mac so you don’t need to keep changing this setting.
Juan, May 14 08 at 4:20 pmThanks! Now It’s working!
Henrik, May 22 08 at 7:08 pmThank you so so SO much Tismey! You have helped me use my tvix along with my mac with all the power it packs! I feel like writing this all in capital letters, but we all know what everybody thinks of that. Anyway, it’s a BIG thank you sent out from sweden to ya!
I really hope you can hook us up with some more great tips regarding the tvix and mac-user experience! How about editing themes and getting them on the tvix from the mac? Any help on that?
Throw me a mail!
Cheers and thanks again!
tismey, May 24 08 at 11:13 amHi Henrik
Glad you found the site useful!
I’ve not played about much with themes for teh TViX, I must admit. There is something I saw though. Try this: http://www.avsforum.com/avs-vb/showthread.php?t=951350
Cheers
tismey
Clint, Sep 13 08 at 12:48 amThanks for putting this up. The nfs sharing on the tvix is so painful and picky. Your blog has helped a lot. Have you been able to mount a ftp share on your mac yet? I have to use Filezilla but would prefer to just have a mounted drive. I just can’t get the settings right. Any ideas you may have would be appreciated.
Thanks
Clint
tismey, Sep 16 08 at 12:21 amThe way FTP is implemented on the TViX is a bit knackered and it doesn’t properly respond to directory listing, which is apparently why only certain FTP clients work. Even if you could mount it as an FTP Volume, you wouldn’t be able to write to it without using something like MacFuse. It doesn’t look like they ever got round to addressing it in V1 of MacFusion, but I haven’t given v2 a go.
SPEAK / ADD YOUR COMMENT
Comments are moderated.