How to change the SMB server address the Music files are on

itunessmb

I store my iTunes library (now Music.app) on a Samba server. The server's DNS name has changed, but the volume/share name has not. The share is called Media and is mounted at /Volumes/Media

However, I am unable to sync my iPhone or play music in Music.app because it somehow still tried to connect to the old DNS name, even though from what I can tell the path names coded in the library don't contain the Samba server name. However when i try to sync my iPhone I get a message

*There was a problem connecting to the server "old.server.dns.name"

This happens even if I first use Go > Connect to server… in the finder and connect to the server, so my music is available at the desired path /Volumes/Media/music

I don't want to delete my library and re-import because I'll lose all my star ratings and play counts.

How can I resolve this? How can I update the Samba server path for the music in my Music.app library?

Best Answer

Oddly enough it is both more complicated and easier than it seems. Why? Because Apple wants you to do it their way, work-arounds sometimes fail and this is one of those times.

So, don't remove the iTunes library just reset it to default (inside Preferences > Music) mount your drive and then select the new location.

That should do it.