[AppleTV2] NFS on Apple TV 2?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
yabbiman Offline
Member
Posts: 70
Joined: Feb 2011
Reputation: 0
Location: lala land
Post: #16
Just out of curiosity: why would one want to use NFS instead of SMB? are there advantages for the ATV2 to make use of NFS?
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #17
yabbiman Wrote:Just out of curiosity: why would one want to use NFS instead of SMB? are there advantages for the ATV2 to make use of NFS?

There are people with smb buffering issues...
find quote
john.doe Offline
Banned
Posts: 515
Joined: Aug 2010
Post: #18
i5Js Wrote:I think nfs support is deactivated: this is from make -C tools/osx/ios-depends/xbmc step:
Code:
libnfs support:    No

take these build: http://hadm.net/xbmc/latest_atv2.deb

i use it with my synology NAS and NFS! Works perfectly!
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #19
john.doe Wrote:take these build: http://hadm.net/xbmc/latest_atv2.deb

i use it with my synology NAS and NFS! Works perfectly!

I'll try it! But also I want to compile my own builds
find quote
john.doe Offline
Banned
Posts: 515
Joined: Aug 2010
Post: #20
i5Js Wrote:
Code:
/volume1/Ocio    *(ro,all_squash,insecure,async,no_subtree_check,no_acl)

I've created the mobile user, if this help.

you use "all_squash". So you don't need to add a 'mobile' User. It works out of the box with your Synology NAS.
find quote
i5Js Offline
Senior Member
Posts: 227
Joined: Dec 2009
Reputation: 0
Post: #21
john.doe Wrote:you use "all_squash". So you don't need to add a 'mobile' User. It works out of the box with your Synology NAS.

You're right, but I have tested it without mobile user...
(This post was last modified: 2011-06-19 18:48 by i5Js.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 114
Location: germany
Post: #22
if you want to compile it yourself you have to use the new darwin depends ... ios-depends doesn't build the required libnfs ... darwin-depends is the new build system and it is officially activated since some hours ... so get a new git clone and follow the new readme for getting nfs in your own builds...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 114
Location: germany
Post: #23
rogerthis Wrote:What the likelyhood that some similar will made for smb?

its already there since years ... don't know what problem you have?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Tenny Offline
Member
Posts: 54
Joined: Feb 2011
Reputation: 0
Location: Bay Area, Ca
Post: #24
I think my issue isn't XBMC, but perhaps someone can toss me an idea... So I have two external drives and the internal hard drive. The internal works perfect, but both externals have issues (XBMC see's four shares, each of them in exportsshared (3 sources according to XBMC).

/etc/fstab:
Code:
#USB-Drives
UUID=628CA7C78CA793D7   /media/Media            ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000    0   2
UUID=1610999710997E85   /media/HDMovies         ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000    0   2

/etc/exports
Code:
/media/Media/                                  *(rw,all_squash,insecure,async,no_subtree_check,no_acl)
/media/HDMovies/HDMovies/               *(rw,all_squash,insecure,async,no_subtree_check,no_acl)
/home/tenny/Downloads/tvfailed/         *(rw,all_squash,insecure,async,no_subtree_check,no_acl)

Code:
tenny@tentop:/media$ ls -l
total 64
drwx------ 2 root  root     4096 2011-06-19 15:02 D6004DA7004D9003
drwxrwxr-- 1 tenny plugdev 57344 2011-06-19 08:25 HDMovies
drwxrwxr-- 1 tenny plugdev  4096 2011-06-19 08:48 Media

Now when I start XBMC it starts to scrape (and the output looks like this for all movies):
Code:
15:43:27 T:147566592 M:125394944   DEBUG: NFS: Connected to server 192.168.1.15 and export media (chunks: r/w 131072/131072)
15:43:27 T:147566592 M:125394944   DEBUG: VideoInfoScanner: Skipping dir 'nfs://192.168.1.15/media/HDMovies/HDMovies/Movie/' due to no change (fasthash)

Then once it switches to the other drive...
Code:
15:43:33 T:147566592 M:125235200   DEBUG: NFS: Connected to server 192.168.1.15 and export media (chunks: r/w 131072/131072)
15:43:33 T:147566592 M:125235200   ERROR: NFS; Failed to stat(//Workaholics) NFS: Lookup of //TVShowName failed with NFS3ERR_ACCES(-13)

Both are configured identical...

If I browse "Files", both of the externals show nothing, where as the tvfailed works. Thus leading me to believe it's something to do with it being external & it's permissions.

Also if I try to play one of the movies that had success above (fasthash), it says it's no longer there...

Any help would be greatly appreciated!
find quote
haffi Offline
Member
Posts: 91
Joined: Mar 2005
Reputation: 0
Post: #25
Might be because of your ntfs file system on the external drives



Tenny Wrote:I think my issue isn't XBMC, but perhaps someone toss me an idea... So I have two external drives and the internal hard drive. The internal works perfect, but both externals have issues (XBMC see's four shares, each of them in exportsshared (3 sources according to XBMC).

/etc/fstab:
Code:
#USB-Drives
UUID=628CA7C78CA793D7   /media/Media            ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000    0   2
UUID=1610999710997E85   /media/HDMovies         ntfs rw,auto,users,exec,nls=utf8,umask=003,gid=46,uid=1000    0   2

/etc/exports
Code:
/media/Media/                                  *(rw,all_squash,insecure,async,no_subtree_check,no_acl)
/media/HDMovies/HDMovies/               *(rw,all_squash,insecure,async,no_subtree_check,no_acl)
/home/tenny/Downloads/tvfailed/         *(rw,all_squash,insecure,async,no_subtree_check,no_acl)

Code:
tenny@tentop:/media$ ls -l
total 64
drwx------ 2 root  root     4096 2011-06-19 15:02 D6004DA7004D9003
drwxrwxr-- 1 tenny plugdev 57344 2011-06-19 08:25 HDMovies
drwxrwxr-- 1 tenny plugdev  4096 2011-06-19 08:48 Media

Now when I start XBMC it starts to scrape (and the output looks like this for all movies):
Code:
15:43:27 T:147566592 M:125394944   DEBUG: NFS: Connected to server 192.168.1.15 and export media (chunks: r/w 131072/131072)
15:43:27 T:147566592 M:125394944   DEBUG: VideoInfoScanner: Skipping dir 'nfs://192.168.1.15/media/HDMovies/HDMovies/Movie/' due to no change (fasthash)

Then once it switches to the other drive...
Code:
15:43:33 T:147566592 M:125235200   DEBUG: NFS: Connected to server 192.168.1.15 and export media (chunks: r/w 131072/131072)
15:43:33 T:147566592 M:125235200   ERROR: NFS; Failed to stat(//Workaholics) NFS: Lookup of //TVShowName failed with NFS3ERR_ACCES(-13)

Both are configured identical...

If I browse "Files", both of the externals show nothing, where as the tvfailed works. Thus leading me to believe it's something to do with it being external & it's permissions.

Also if I try to play one of the movies that had success above (fasthash), it says it's no longer there...

Any help would be greatly appreciated!
find quote
Tenny Offline
Member
Posts: 54
Joined: Feb 2011
Reputation: 0
Location: Bay Area, Ca
Post: #26
haffi Wrote:Might be because of your ntfs file system on the external drives

I am kinda thinking this too... should I switch to EXT4? Loosing the ability to plug into my Win7 boxes and read/write can make things a bit harder... not much though.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 114
Location: germany
Post: #27
ntfs using ntfs-3g is special in conjunction with nfs as i remember ... maybe google can help you there ... but it would be good if you could upload the full debug logs ... your posted lines are not fully visible here (ipad)... so please add them to pastebin.com and put the link in here

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Tenny Offline
Member
Posts: 54
Joined: Feb 2011
Reputation: 0
Location: Bay Area, Ca
Post: #28
Memphiz Wrote:ntfs using ntfs-3g is special in conjunction with nfs as i remember ... maybe google can help you there ... but it would be good if you could upload the full debug logs ... your posted lines are not fully visible here (ipad)... so please add them to pastebin.com and put the link in here

I don't think I have the full log anymore (I delete them all the time). I am already doing the switch to Ext4 so I can't just try again. If I didn't delete the log yet, I'll post it though.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,219
Joined: Feb 2011
Reputation: 114
Location: germany
Post: #29
I think i see your problem now ... access rights ... as it states in the log file ...:

Code:
drwxrwxr-- 1 tenny plugdev 57344 2011-06-19 08:25 HDMovies
drwxrwxr-- 1 tenny plugdev  4096 2011-06-19 08:48 Media

As i mentioned earlier in this thread - when u use all_sqash - all accesses are done as user nobody ... so you should give user nobody the needed rights. You have tenny - as owner, plugdev as group - and world has no rights. Nobody would be treated as world in that case ... so nobody has no rights *cool hrhr* ...

thats the prob

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
wallace47931 Offline
Member
Posts: 55
Joined: Oct 2006
Reputation: 0
Post: #30
Has anyone tested the transfer rates? I also own an xtreamer like a previous poster and found NFS was quicker than SMB... Ive tried the ATV2 and XBMC using smb, upnp and ftp and all buffer when im using it in wireless mode. Its better when i connec it wired but i was wondering if there is a comparison yet?

btw the xtreamer does not buffer in nfs when wireless,nor did my wdtv but atv2 does on same files.

John
find quote
Post Reply