I have my iTunes music held on a NAS box and apart from severe lag times, it works fine, however, occasionally iTunes just switches the 'media folder location' back to the local machine without even asking me.

The wifi connections between iMac/NAS/Router are fine and are always available.

How can I prevent it from automatically switching it back?

  • Can you figure out what action/change on your Mac/network triggers the switch? I.e. using a certain program or shutting down the machine.
    – X_841
    Dec 29, 2020 at 19:49
  • rebooting certainly seems to cause this, I have yet to see other causes Feb 4, 2021 at 13:48

1 Answer 1


Put the iTunes itl file on the NAS along with the media. Then lock the copy of the file that's in your $HOME.

Launch iTunes.

iTunes will whine that it can't open the library (it thinks it needs to write to it), and will ask you for another.

Point it at the one on the NAS.

Now, iTunes will regularly, as you know, try to revert back to the one under $HOME. But now it can't, so if it does, you get the prompt, and can redirect it.

Instead of discovering some time later after it's been storing media on the local drive again.

  • Thanks for the suggestion, just a couple of points. 1) I assume I put the .itl file in the same relative location on the NAS? 2) how do I lock the file, do you mean change it to 'read only', couldn't this get reset by MacOS/iTunes somehow? Feb 4, 2021 at 13:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .