Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

My iTunes library is located on an network drive, or rather, the music is, and my library file is located on my MacBook.

  • Library file: /Users/glenn/Music/iTunes/iTunes Library
  • Music: /Volumes/MyVolume/Music

But every now and then when I use the laptop somewhere outside my WiFi network, and then come back, fire up iTunes and play a song I get a library full of those pesky little exclamation point icons next to my songs. This is because iTunes have guessed that "Oh, he's not at home, let's reset the music files location to /Users/glenn/Music/iTunes." And there are no music there.

How can I prevent iTunes from doing this "smart" guess, and just leave the setting alone?

PS. And MyVolume is auto-mounted on my laptop. But of course, if iTunes is running when opening up the lid of the MacBook, it takes some time for it to mount, and iTunes won't find the path to the music at first.

share|improve this question

3 Answers 3

You can make "iTunes Music" an alias to your music folder on your network drive. That should keep iTunes' smartness at bay.

share|improve this answer
1  
That seems to be the only solution. –  Studer Aug 22 '10 at 16:52
2  
I seem to recall that iTunes "works around" this hack and will remove the soft link and replace it with a local directory. Not sure if this is still (or ever) true, but I'd be sure to take a look to make sure things are really happening as you expect they are if you use a link. –  Tim Nov 15 '10 at 16:37

Just a thought for your laptop, why don't you share your iTunes library and stream it to your laptop instead of mounting the network drive?

I'm in the process of setting this up now, I just moved my iTunes library and media files to my Network Attached Storage, which can share with all machines on my home network.

I was having the same library reset issue as you, so I'll try using an alias in Windows 7 to get around this (thanks @zneak). Nothing scarier than telling iTunes where my 10,000+ song library is and have it show nothing :(

share|improve this answer

I would guess that when the iTunes media directory /Volumes/MyVolume/Music is found to not exist, it resets to the default value of /Users/glenn/Music/iTunes. That is to say, I don't think it matters if the files are there or not (so network mounting is not so much the issue), but that the directory is there and can be browsed.

So a solution would be to have an empty directory as your iTunes media library directory (which can just be the default), and mount the network share into that directory. This would involve using smbmount rather than the standard Finder-based /Volumes/... mounting. Of course... smbmount doesn't come with OS X, so this solution will require some effort on your part to get smbmount.

You might be able to achieve the same with symbolic links, though I'm not sure whether iTunes can handle its media library directory being a broken symlink; it might just delete the symlink by forcibly creating the /Users/glenn/Music/iTunes directory on top of it...?

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.