Here it is. Most of the layout is gone (some bold parts and code parts)
Noob guide for using NFS on XBMC LIVE (installed on harddisk)
http://xbmc.org/forum/showthread.php?p=4...post449150
Credits
All credits for this information goes to uomiarz, who helped me patiently through all my problems in setting this up. Since it now finally works I decided to do a chronological tutorial, both for my own future reference if I reinstall, but also for others as this thread has grown and I ran it to very specific problems that others might not run into.
Mounting an NFS drive in XBMC Live 9.11 beta 1 (installed to harddisk on Asrock 330)
Using a Western Digital Mybook World II 1 TB nas specifically, for other NAS the NAS setup part might be different
To enter all the commands either use CTRL-ALT-F2 on your XBMC machine or go to another pc and use putty to logon to XBMC machine. I preferred the last option as it allowed me to copy paste stuff from this thread
Getting ready - NAS
The NAS needs to be set up correctly
-On your NAS: create a user that matches your XBMC user/password, and allow it access to the share you want to see in XBMC
-Under settings allow the XBMC machine's ip-address access
-Find out the full path to your NFS share. I stumbled here. My ip is 192.168.1.30, and my share name is "Private" but when I combine the two they are not my NFS path, there was a diskname in between. I found my correct path using "showmount -e 192.168.1.30" from a windows machine, which just showed me the paths available on the NAS. My path was "192.168.1.30:/DataVolume/Private" and will be used in the rest of the guide. I think it is case sensitive!
Getting ready - XBMC
XBMC machine needs to have NFS support installed. If your machine is set up correctly this command will do that for you:
Code:
sudo apt-get install nfs-common
For me it didn't. My sources file was empty (bug in 9.11 beta 1). I expect that to be solved so read this full thread if you need to edit it. Secondly I then also needed to do the command "sudo apt-get update" before nfs-common which I think tells the machine what software and updates are available for download.
Secondly also need to specify a location where the drive is mounted. Basically after mounting this is where you browse to. I used location /media/misc which I created with
Code:
sudo mkdir /media/misc
Other locations should also work, this is not a mandatory name.
First try - Mounting manually
Try this:
Code:
sudo mount -t nfs 192.168.1.30:/private /media/misc
If there are any errors look carefully what they are. I got access right errors because initially I hadn't created an XBMC user on my NAS. If you get nothing, just a new prompt, then it worked
First try - Testing if it worked
Code:
ls /media/misc
should show what is in your NFS share. You might need to add sudo before it
Code:
sudo ls /media/misc
First try - how do I open this location in XBMC?
In XBMC when you select add source and browse you see mostly network paths, but you need to browse to /media/misc. Do "add source" and then instead of "browse" just type /media/misc in the window that says <none>. Give it a name you want on a bottom window and you are all set
Getting your machine to do this everytime at boot
Use this command to open a file which is run every time at boot:
Code:
sudo pico /etc/rc.local
The last line should read "exit 0" - before that insert these two lines so that it looks like this:
Code:
mount -t nfs 192.168.1.30:/private /media/misc
sleep 10
exit 0
Sleep 10 might not be necessary, but it works for me. If you mess up while editting just quit without saving. Reboot and try if you can browse the share using:
Code:
ls /media/misc
or in XBMC. My NAS has a standby mode so in XBMC sometimes I don't see anything right away, try again after 10 seconds
That's it. Once more a great big thanks to uomiarz and others for helping me get this done.