After a hard day at work, just about to listen to your music iTunes surprises you with an error “The iTunes Library file is locked, on a locked disk, or you do not have write permission for this file”. What are you going to do in this case? With four simple steps, you can get back to your music.
Open up “Finder” and browse to /Music/iTunes
Find the “iTunes Library” File and move it to your desktop.
Restore the “iTunes Library” file from your desktop by dragging it back to the iTunes folder in Music/iTunes/ and Press Replace on the notification window.