Moving iTunes Library to external HD--song could not be used

I wanted to move my iTunes library to an external HD, because my internal drive was running out of space. I looked around on here and found directions how to move my iTunes Library to an external hard drive. I followed those directions, and everything seemed copacetic the first time I started iTunes after the move and pointed it at the moved library. Songs played and everything was great.
But tall subsequent times I've started iTunes, I get the dreaded "song could not be used because the original file could not be found" message for every song I've tried.
I looked around on the discussion boards here some more, and seem to be seeing that there is no general solution. There's no good way to tell iTunes, "Go match up all the lines in the iTunes database with all the song titles in such-and-such a location."
I also read the article about "What are the iTunes Library files." I see that there are 2 basic files. One is a database file called "iTunes Library," and the second is a text file called "iTunes Library.xml." I opened up the XML file and looked around a bit. Here is what I find:
Every song in the XML file seems to be referred to with a relative path, such as: <string>file://localhost/Users/rodney/Music/iTunes/iTunes%20Music/Krys%20Mach,%20Jo%20Az usa,%20Jerome%20Mokar/Native%20Spirit/01%20Cave%20Dweller.m4a</string>
The thing is, that's not the right path, unless localhost happens to be pointed at my external HD, which I don't know why it would be.
I suspect that this is the exact same problem inside the database file, too.
I'm looking around for a definition of localhost... the only thing I'm finding is in /etc/hosts, which looks like:
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
I think it's odd that localhost is in there twice, but maybe that's normal.
Anyway, enough rambling, the basic question is, how can I tell iTunes that my files are on my external HD instead of wherever it thinks they are on "localhost," which I'm sure somehow resolves back to being my internal HD. Can I do some tricky grep-ing through the database file and strategically replace all occurrences? Or is that just asking for trouble?
Thanks!
Rodney

I don't know if this is at all useful to other people having similar problems, but I did get all my songs back more or less, and this is how:
1) With iTunes shut down, I went into my iTunes directory (ExternalHD/Users/rodney/Music/iTune), and moved my "iTunes Library" and "iTunes Library.xml" files to someplace else.
2) I started iTunes while holding down the Option key.
3) When iTunes popped the "Quit / Create New Library / Choose Library" dialog, I selected "Create New". I chose the path back to where my original iTunes Library used to live and where my music is; ExternalHD/Users/rodney/Music/iTunes.
4) iTunes started up with a completely blank library. I went and looked in the above directory, and yes, there was now a very small "iTunes Library" file there.
5) Under the File menu in iTunes, I chose "Add to Library". I then navigated to the location of all my music, which was ExternalHD/Users/rodney/Music/iTunes/iTunes Music.
6) When I selected this folder, iTunes started going through a bunch of gyrations of scanning, organizing, adding... I don't know what all it thought it was doing, but it finished 24 GB of music in about 3 minutes.
And now my music is all playable again! Of course, all my playlists are toast... completely gone, since they were in the old library.
The thing I notice is that iTunes moved all the artist folders... For instance, my album by the group Baka used to be in "ExternalHD/Users/rodney/Music/iTunes/iTunes Music/Baka" with previous versions of iTunes, but now iTunes 8 seems to want to flatten that out and it moved that directory to reside at "ExternalHD/Users/rodney/Music/iTunes/Baka". So, while it works, it looks messy. I liked it better when all the artist folders were down a level in the directory /iTunes Music/. Then the only things in the iTunes folder were the database files, a few other files iTunes has created over the years, and the iTunes Music folder.
But whatever... at least I don't have to add thousands of songs back into iTunes manually.
Just as a side note, I took a clue from the directory flattening out, and I tried one other thing: I put all the artist folders back down in the /iTunes Music/ folder, and I moved my original "iTunes Library" files down into that folder too. Then on startup, I tried pointing iTunes at the original library which was now down one level. But that didn't help... the individual song paths in that database are apparently still pointing onto my internal HD.
Rodney

Similar Messages

  • I cannot play music from my itunes library.  I keep getting an itunes message that says, "The song could not be used because the original file could not be found."  Is there a fix for this?  Thank you.

    I cannot play music from my itunes library.  I keep getting an itunes message that says, “The song could not be used because the original file could not be found.”  Is there a fix for this?  Has this happened to anyone else?  Is there a fix for this?  Thank you.

    Hello Turintest2,
    I am having a similar problem.  I have over 4000 songs giving me this error.  I certainily don't want to go in one by one and find them.  I know you wrote a script for Windows but I am a Mac user.  Is there a fix for me?  Here is the info on where the song is currently (used by doing the get info)
    Here's a shot of my preferences:
    Just FYI, I know that apparently iTunes is looking for this music in the trash.  However, if I go here:
    Then I find the music there as well.  (Which is where it is in my preferences.)
    Please help!  I don't want to have to go through over 4000 songs and update them one by one.

  • I get this message when I try to listen to my itunes on my computer. Song could not be used because the orginal file could not be found

    i get this message when I try to listen to my itunes on my computer. Song could not be used because the orginal file could not be found. WHy do I get this and how do i correct it?

    Hi ihrtthecowboys,
    When tracks in iTunes display a it means the file cannot be located; it may have been moved or deleted. For this issue, see the following article:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Alternatively, if your media was downloaded from the iTunes Store, you may be able to download it again free of charge:
    Download past purchases
    http://support.apple.com/kb/HT2519
    Thanks,
    Matt M.

  • Upgraded to 8.02, many songs in library won't play: "Song could not be used

    A few days ago, I took the 8.02.20 update to iTUNES on my PC with Windows XP, I have latest service pack, yada yada.
    After the iTunes upgrade, I noticed that many of my songs in my itunes library won't play when I click on them.
    I get the icon of the exclamation point in a circle to the left of the song name, and the message says:
    "song XXX could not be used because the original file could not be found." Would you like to locate it?"
    I never moved any of my songs, and the songs that it says could not be found ARE indeed on my computer, and I can use the Windows file explorer to find the song and play it.
    Back to iTunes, I decide to answer yes to the error, and "find the song" by manually meandering over to the song through the file browser window which iTunes pops up, I get to the file, and it then plays in iTunes.
    My question is, how did iTunes "forget" where the songs are, and why did it forget most of them, but yet leave many others ok. I never moved nay files or anything.
    Is there a way to make it recompile the library?

    Probably not every one, but you will have to do it several times. Right click on the name of the song, show in window's explorer and when it can't it should give you a dialogue to find the song.
    Once it finds one it'll offer to find more and you can locate stuff that way.

  • I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  need help

    I recently reset my computer and copy my music from an external hard drive to my itunes library.  When I click on a song to play i get an error message that says " the song could not be used because the original file could not be found".  But when I have my external hard drive plug in the song will play with no problem.  What do I need to do to play my music without having the external harddrive plug in ????????  Please help

    Because the location for each song in your library is on your hard drive.  If the hard drive isn't there, how can iTunes play it?
    You'll have to move/copy the music from your hard drive to your computer's hard drive.
    Basically, EASIEST way to do all this, if you don't care about your play counts, etc...
    -Delete EVERYTHING from iTunes, so that your library is now empty.
    -Go to "Advanced" inside of the "Preferences" window, found in the "Edit" drop-down.  You can also access Preferences by pressing Ctrl+, (Press Ctrl and the comma key)
    -Change your iTunes Media Folder Location to something simple, but on your computer. I use C:/iTunes.  Make sure "Keep iTunes Media Folder Organized" and "Copy files to...." are both checked.  You can close Preferences now.
    -Now, drag and drop your music from your hard drive into your iTunes library.  iTunes will automatically add the music to your library, as you would expect, and also creates a copy of each file to place into that iTunes Media Folder you just created.
    Shouldn't have any more problems...

  • I have a new hard drive as my old one crashed. Everything seemed to transfer fine except for my entire iTunes library. It shows all of my old songs, but when I click on one it states "the song could not be used as the original file could not be found

    I have a new hard drive as my old one crashed. Everything seemed to transfer fine except for my entire iTunes library. It shows all of my old songs, but when I click on one it states "the song could not be used as the original file could not be found.would you like to locate it".
    Either how do I locate it, and I've tried every trick I know, or how do I restore all of my songs from one of two sources. I have my old hard drive backedup on an external drive which should have all of my songs, and I have most of my songs on my old iPhone 3S which I'm using as a backup iPod.

    The "missing file" error happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, one of its parent folders, or the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place. In the case of a library moved from one system to another there are also potential permissions issues. See Repair security permissions for iTunes for Windows.
    Select a track with an exclamation mark, use Ctrl-I to Get Info, then click No when asked to try to locate the track. (Due to a bug in iTunes 12 you currently have to say No twice!) Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, a folder renamed, or a drive letter has changed, it should be possible to reverse the actions. If the difference between the two paths is an additional Music folder in one path then this is a layout issue. I can explain further if that is the case.
    In some cases iTunes may be able to repair itself if you go through the same steps with Get Info but this time click Locate and browse to the lost track. It may then offer to attempt to automatically fix other broken links.
    If another application like Windows Media Player has moved/renamed the files then the chances are that subtle differences in naming strategies will make it hard to restore the media to the precise path that iTunes is expecting. In such cases, as long as the missing files can be found somewhere, you should be able to use my FindTracks script to reconnect them to iTunes. See this post for an explanation of how it works.
    See also Recover your iTunes library from your iPod or iOS device.
    tt2

  • Syncing issue: Some of the items in the iTunes library, including "[name of song]", were not copied to the iPhone "[name of iPhone]" because they could not be found.

    When trying to sync with any of my apple devices the following message is displayed:
    Some of the items in the iTunes library, including "[name of song]", were not copied to the iPhone "[name of iPhone]" because they could not be found.
    For a list of items that could not be copied, click the + below.
    86 total problems.
    I am able to play the songs in my iTunes library without any issues and there is no "!" next to the listed songs in my library.
    It is only when I try to sync my devices that this problem arises.
    The songs are also on my laptop and not on an external hard drive.
    Can someone please help me out.
    Thanks

    Hey thanks for the reply.
    When the box pops up there is no option to search for the location. I just have to click ok.
    Then when I go to the songs with problems in my iTunes library and try to play them they play fine.
    It is only while syncing that iTunes for some reason is unable to locate the song.
    Any suggestions?

  • After installing iTunes 10.5 update i get the following message when trying to play any song in my Library "The song could not be used because the original file could not be found. Would you like to locate it?"  how do i fix this??

    I have an iPod Classic and work on Windows 7.
    i recently installed iTunes 10.5 update and since then i cannot play any of the songs in the Library - i get the following message
    "The song could not be used because the original file could not be found.  Would you like to locate it?"
    what happened to all my songs (almost 2000) How can i get them back into my music library?
    Please help - i do not want to spend another week downloading all my cd's onto my computer !!!!!

    Try my script FindTracks. Select a few of the missing files to start with then run the script. Choose No at the first prompt so that you can check how it works track by track, then confirm or edit the location of the media folder where your files are. Once you are happy with how it behaves let it process larger numbers of tracks automatically.
    tt2

  • Library Lost - Please HeIp I tried updating my old ipod & now all 10,000 songs in my library have an ! next to them and I get the error message "song " " could not be used because the original file could not be found" on every song I try to play

    Please help - this morning I tried updating one of my old ipods for my wife (this ipod hasn't been updated in 2-3 years).  I plugged it into my pc, it was recognized and the software updated.  I created a new playlist and tied to sync the ipod.  This ipod had never been used on this pc/itunes since the pc is only 2 years old.  When I tried to sync the ipod it stated that it would have to erase all the old songs on the ipod prior to syncing.  I clicked ok and it proceeded to wipe out the old ipod and sync the new playlist (~1000 songs).  When the sync was complete there were only 6 songs from the new playlist (all purchased this morning from itunes) on the ipod and to my horror all ~10,000 song on my pc in itunes now have a ! next to them.  Only my recent purchases from itunes do not.  When I click on a song with the ! I get the error message "the song " " could not be used because the original file could not be found."  How do I correct this issue - I am scared to hook my ipads or other ipods to my pc for fear of losing everything?!?!?  I spent 100s of hours burning the 10,000 songs from my cd collection and do not want to have to do it again. 
    Any help is greatly appreciated.

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • Recently bought  a new computer and all my music appears in iTunes as well as on my computer in a saved folder. When I try to play the music in iTunes I get an error that reads"the song could not be used because the original file could not be found."

    Recently bought  a new computer and all my music appears in iTunes as well as on my computer in a saved folder. When I try to play the music in iTunes I get an error that reads"the song could not be used because the original file could not be found. Would you like to locate it?" Hope you can help me solve this issue.
    Thanks,
    Shellyboo

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout, or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • I get the following message on certain songs in my library: the song could not be used because the original file could not be found

    I get the following message on several songs in my library:  the song could not be used because the original file could not be found.  How can I download these songs to my new iPod?

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • Since i download the new version of i tunes i canot play the songs of my library...it say that "the song could not be used because the original file could not be found" what i do to just play the songs directly? please someone help

    since i download the new version of i tunes i canot play the songs of my library....it say "the song could not be used because the original file could not be found".
    would you like to locate it.i just want to play directly..what i do?  please help  thanks

    This happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • When I try to play a song in my itunes libery I get an error saying "this song could not be used because the original file could not be found".  I do I restore the file?

    When I rry to paly a song in my itunes libery, I get an error saying "this song could not be used because the original file could not be found". I do I find the orginal file?

    Hello crispinofromfl,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Have a nice day,
    Mario

  • After downloading itunes on my new computer all of my songs have an exclamation point in front of them and it says the song could not be used because the original file could not be found. How do I fix this?

    After downloading itunes on my new computer all of my songs have an exclamation point in front of them and it says the song could not be used because the orginal file could not be found. How do I fix this?

    Hey waltee911,
    It sounds like you're seeing something similar to this picture:
    If that's the case, the following article has troubleshooting steps to solve the issue:
    iTunes: Finding lost media and downloads
    http://support.apple.com/kb/TS1408
    Welcome to Apple Support Communities!
    Sincerely,
    Delgadoh

  • Help with iTunes "the song could not be used because original could not be found"

    Please help!! I just recently got my pc laptop back from being worked on and the hard drive had to be replaced. Tonight I had to download iTunes and now all my purchased music (which in in the 1,000's) gives me a message when I try to play it,
    "the song could not be used because the original file could not be found." I'm really frustrated since this music was purchased why can't I play it this is ridiculous! I've had numerous problems with iTunes before but I have to say this really is the worst. I realize these songs are still on my iPhone but I have really nice built in speakers and I like to listen to music while in my office right from my pc. Any advice would be helpful, I'm at my wits end. Please advise!!

    Please help!! I just recently got my pc laptop back from being worked on and the hard drive had to be replaced. Tonight I had to download iTunes and now all my purchased music (which in in the 1,000's) gives me a message when I try to play it,
    "the song could not be used because the original file could not be found." I'm really frustrated since this music was purchased why can't I play it this is ridiculous! I've had numerous problems with iTunes before but I have to say this really is the worst. I realize these songs are still on my iPhone but I have really nice built in speakers and I like to listen to music while in my office right from my pc. Any advice would be helpful, I'm at my wits end. Please advise!!

Maybe you are looking for

  • WebElements: WEAutoRefresh not working in report

    I'm using this webElement to provide automatic refresh for a Crystal Report (using version 2013).  The server is set up for html pass-through, and webelements has been deployed on the server.  I'm testing on a simple report, without sub-reports, but

  • ICloud 4.01 still won't install on Windows 7 64bit

    I had hoped that with the recent update for iCloud to the 4.01 version it would install successfully on Windows 7 64bit.  But alas, the same problem as before. This time it really looked like it was going to make it all the way through - as it got qu

  • How do i create a default user in os 10.8.2

    how do i create a default user in os 10.8.2

  • IPhoto quits unexpectedly within 60 seconds of app launch

    When I launch iPhoto, it quits unexpectedly within 60 seconds of launch. This problem first started after I downloaded the dotphoto plugin. I have read the posts on this forum and removed the dotphoto plugin without success. Other steps I have tried

  • Avi compression

    Hello. I have a problem converting a file to AVI. It is a 4min. video (DV PAL) that needs to be compressed to an under 10mb AVI for e-mail difussion. These people all have PCs, and MPEG4 videos are not compatible. They can only play AVIs, but, of cou