Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Find missing files in iTunes 10' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find missing files in iTunes 10
Authored by: david-bo on Sep 08, '10 08:23:02AM

I wrote a hint that as a part of it solves the situation this hint author had at

iTunes first looks at inode ('hard link') number when looking for a file. This is good because it means that you can rename the file, move it within the drive it is located on etc without iTunes loosing track of it. However, if this fail, for example if you have changed drive (or even just duplicated a file, gave the duplicate the same name as the original and then replaced the original with the duplicate = you have an identical file but with a different inode number) iTunes resort to the path to the file.

So, for example, if you have a track a path /Volumes/external drive/music/my track.mp3 and then move it to /Volumes/another drive/music/my track.mp3 both the inode and the path will be obsolete. However, there is an easy fix for this. Just create a symbolic link in the /Volumes directory point to /Volumes/another drive and name it external drive. Now the original path will work and iTunes will find the files again and update there inode and drive details.


% ls /Volumes

another drive
external drive -> /Volumes/another drive

Now you can, for example, cd to

/Volumes/external drive/music/my track.mp3

but you will actually be at

/Volumes/another drive/music/my track.mp3

Simple, huh?

[ Reply to This | # ]