Accessing your iTunes library

04.27.08 24 Comments

I’ve read about a few ways of doing this, but this evening it occurred to me that using iTunesFS might be really easy and work quite well. Sure enough, load it up, add the new share and you’re browsing and playing your iTunes library.

The only thing I haven’t figured out is how to share this new FUSE filesystem via SMB. It appears that you have to set the allow_other option, but I had no luck getting this to work via sysctl. If you can figure it out, post a comment!


Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedIn
Share this


  • Sounds good. Haven’t got a chance to try this, but does this mean you’d get access to music file browsing via “album art” a-la CoverFlow and the other views in OSXBMC?

  • XBMC already has “Coverflow” if you switch the view in the default skin.

  • that’s dope. anybody write an iPhotoFS yet?

  • Ah cool. So using that “coverflow” view, plus ITunesFS with the correct share in XBMC will mean my music should show up by album art the same way they do in ITunes? (I have ITunes set to display music by album title currently, so I just browse through the album covers) That’s what I was getting at.

  • Just tried it. Works fine but it only allows access to the ITunes library (as it says on the tin) :)

    Album art in coverflow not getting picked up unless there’s some other config that I’ve missed – so I’m guessing that full OSXBMC -> ITunes integration is still on the radar in order to have something like that working :)

  • It works for me, but i can’t see album covers.

  • @Soner Album art is stored in a different database, I’m not sure if iTunesFS reads this database.

  • Now that there is using the old noodle! good idea …. will try this tonight for sure.

  • Give this script a run in iTunes to save album artwork to the album folder. That should help.

  • Actually what iTunes does is stores any artwork you’ve downloaded from the iTunes store in a separate database, not in the ID3 tags. To get them to show up in any music player you will need to embed them. Doug’s scripts has just the right script to embed the album artwork:

  • You’re dead right freakshow. I should have mentioned that as well. But it’s wise to run both scripts so you have a backup of album art in case of library migration/ ID3 tag corruption (yes, it happens).

  • So is anyone able to connect to an iTunesFS volume over SMB without XBMC. I have been having trouble getting the volume to load over SMB (although it will mount over AFP). Maybe its just in my setup, but I can’t seem to mount an iTunesFS volume over SMB from a Mac or a PC. Maybe it has to do with the fact that MacFuse mounts volumes as Network Volumes and not Local Volumes? Apparently you can change this behavior by using the -o local option in macfuse ( ), but this would need to be implemented in iTunesFS and it comes with some warning.

  • I can’t get iTunesFS to load. I installed the macfuse core and ran the ‘default write’ to let it find my iTunes xml, but still no go.

  • And to those not able to connect over SMB, did you try turning symolic links on in iTunesFS?

    defaults write com.mulle-kybernetik.znek.iTunesFS SymbolicLinks YES

  • Local iTunes library mounting is definitely a good idea, but why should it try to mount it via SMB if it can already connect through DAAP? On a different note, OSXBMC seems to have a bit of a problem handling my large (70,000 song) library over UPnP: discovering the library is no problem but it seems to time out before the (huge) library can be loaded.

  • @certuna: I found DAAP support inside XBMC to be buggy and slow, hence why I was looking for alternative means, besides the obvious reason of not being able to connect to iTunes 7. Yeah, UPnP has many of the same problems.

  • @Danny Symolic linking does nothing to alleviate the SMB problem in my case. It may be related to the -o local problem I mentioned before but I honestly can’t say.

    @elan You can use Firefly media server to get back Daap support in iTunes 7. In its default state it seems to work ok (you can see your library and all your playlists), but the titles look really wonky in XBMC last time I tried it (whereas connecting to the server with iTunes they look fine). Maybe baseline XBMC will fix this eventually, but like you said its slow over DAAP and it would be pretty cool to see iTunesFS work out.

  • has anyone tried sharing over xmpp? I was gonna give it a shot later with ccxstream… i’ve been liking the simplicity of smb, but itunesfs could have me switching back

  • I meant xbmsp… brain’s not right today

  • Confirmed: running it with xbmsp shares successfully. I ran the following:

    ccxstream -r /volumes -f

    and it showed up on my xbmsp share with the rest of my volumes. The only trick was to turn off tag reading in the music settings section, otherwise the id3 track # tags will override the filename tags iTunesFS uses for track ordering on playlists. Small price to pay (and besides, itunes is already naming things correctly based on your tags, right? :))

  • If you really want to share iTunesFS over afp/smb, you can secondary mount the iTunesFS volume in an smb-shared directory. I used the sshfs from the macfuse project at

    Here is the script I have to load iTunesFS, then mount it in my ~/Movies directory:

    open /Applications/
    sleep 15
    /usr/local/bin/sshfs USER@localhost:/Volumes/iTunesFS ~/Movies/iTunesFS_Share -oallow_other,rdonly,nolocalcaches,volname=iTunesFS_Share

  • Regarding my tip above – it seems that the the volume is only visible over smb://, and NOT afp:// – which is fine for XBMC but annoying for file sharing.

  • UPDATE: iTunesFS now supports sharing over AFP and SMB (in my testing, anyway). Just do “defaults write com.mulle-kybernetik.znek.iTunesFS FUSEOptionAllowOther -bool YES”

  • Is this still needed to do, even with Plex 0.8.3 ?
    I mean, after I installed Plex 0.8.3 I see that it has a iTunes Menu, and it sees my iTunes library. Does this iTunesFS does anything different?

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>