Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
There are two ways for XBMC to access an NFS share:
1. Use XBMC native NFS support - when you add a video source browse to the nfs share and set it as the video share; or
2. Get the OS to mount it to a place on your filesystem (eg /mnt/nfs_vids) and point your video source at that.
If you want the second sort to be mounted every time the computer starts up, you need to use the right entry in /etc/fstab on the XBMC machine.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 694
Joined: Jun 2010
Reputation:
23
I'd recommend on the XBMC client to give autofs a look...works very well if you have issues getting fstab to work with NFS.
Posts: 54
Joined: Oct 2012
Reputation:
0
I don't know what autofs or fstab are. Google here i come...
HTPC
i3 2100
Asrock H67m itx
2x4 Gskill 1333
GT 430 gpu
2 x 500 GB 7200rpm Seagate Hybrid SSD-HDD
Slim DVD drive
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
/etc fstab is the place where linux stores it's list of drives to mount, and where in the filesystem to mount them. Well documented on the net and via man.
autofs is some sort of automatic device mounting finagle which I don't know much about sorry.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
2013-02-06, 20:41
(This post was last modified: 2013-02-06, 20:42 by nickr.)
fstab line (well documented on the net by the way)
//hostname/sharename /mount/point cifs credentials=/root/credentials 0 0
put your credentials in a file called /root/credentials and make that readable by root only. Tha file will contain two lines:
username=user
password=secretpassword
If your cifs share does not need a username and password you may ignore all the credentials stuff.
By the way if your internal IP numbers start 192.68 you are doing it wrong. Should be 192.168
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 54
Joined: Oct 2012
Reputation:
0
2013-02-11, 07:23
(This post was last modified: 2013-02-11, 08:18 by Travalon.)
nichr,
Thank you. I had searched google before but came up m-t. You pointed me in the right direction and google did the rest. (explaining to me what you had already said). I didn't need to do anything with credentials but my shares now mount where I want them on start up. +1
other computer not so easy. where does the credentials file go? etc?
HTPC
i3 2100
Asrock H67m itx
2x4 Gskill 1333
GT 430 gpu
2 x 500 GB 7200rpm Seagate Hybrid SSD-HDD
Slim DVD drive
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
My google spits easier things to understand, I asked google "autofs" and this was there
https://help.ubuntu.com/community/Autofs
Not that any of this fstab or autofs is required anyway, xbmc can rbowse and mount properly configured NFS shares via libnfs
uNi
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Retired Team-Kodi Member
Posts: 19,982
2013-02-11, 11:18
(This post was last modified: 2013-02-11, 11:18 by nickr.)
Travalon, I lost track of the fact you are using nfs and I gave a samba example. Never mind you got it sorted.
Can't see the point of autofs for a setup where you have a series of permanent mount points. Removable drives I can see the point (although xbmc seems to handle that).
Uni - one point about a permanent mount is that kernel nfs seems to be a whole lot more efficient than libnfs which xbmc uses. There is a recent thread with speed comparisons. Not too relevant at usual lan speeds/media rates, but certainly worthwhile in edge cases like wireless.
Then again we are all going to have to revise everything when 4K video becomes ubiquitous, just like we did when HD became popular.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)