Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Attempting to copy to the disk Macintosh HD failed. An unknown error occurred (-54).

I am trying to sync my new iPhone 6S to iTunes via USB. I keep getting this message: "Attempting to copy to the disk Macintosh HD failed. An unknown error occurred (-54)." Can someone please help? I've already repaired Disk Permissions via Disk Utility on my Mac and also Reset all Settings on my iPhone to no avail.

Posted on Sep 29, 2015 7:04 PM

Reply
Question marked as Best reply

Posted on Sep 29, 2015 8:06 PM

== Error -54 ==

From an OS9 reference, error -54 is a software lock on a file or a permissions error. (Although there is no formal list of OSX error code some of the old codes still apply to OSX .)


First, try simply restarting your computer.


Try quitting iTunes, then deleting the .xml (not .itl !) version of the library file in the iTunes folder (iTunes will generate a new one).


iTunes Library cannot be saved (Error -54) - https://discussions.apple.com/thread/1912814 - various things to try.


Unknown error (-54) while syncing ipod - https://discussions.apple.com/thread/1082953 - problem was locked files


Why does iTunes keep showing a -54 error when I sync my iPad? - https://discussions.apple.com/thread/3727114


Error -54 possibly related to Touch Copy - https://discussions.apple.com/thread/3727114 - cleared by deleting preferences on iPad.


iTunes: Missing folder or incorrect permissions may prevent authorization - http://support.apple.com/kb/ts1277


Troubleshooting permissions issues in Mac OS X - http://support.apple.com/kb/HT2963

47 replies

Jan 6, 2016 3:13 PM in response to Dizzy D

For me the problem was related to syncing Books. None of the above ideas fixed the (-54) for me, but when I turned off "Sync Books" in iTunes, the error went away. So I went into the iBooks application, deleted the most recent book I had added, and then turned "Sync Books" back on again in iTunes. Syncing now works, including syncing of books, with no (-54).


Some more details: I noticed that after deleting the problematic book from iBooks, it reappeared again there for some reason. I must have somehow gotten two copies of that particular book added to my iBooks library, but the second copy wasn't visible in either iBooks or iTunes, and manually deleting the book from within iBooks must have deleted the bad entry, leaving just the good one and thus fixing everything, maybe?


(I also tried the "ls -lOR | grep uchg" trick mentioned in another thread, but it found no locked files anywhere in my user folder, including the iTunes subfolders, so for me locked files seems not to have been the problem. Note that the other thread says to use a lower case "o" flag in the "ls" command, but according to the ls doc and my testing, it should actually be upper case "O".)


I really wish Apple would make this error message more specific, at least specifying which file triggered the "unknown" error.


Hopefully this info might help someone.

Jan 19, 2016 3:22 PM in response to Meromorphic

Similar issue; also books, though in my case it was PDF files I had saved to iBooks from an email on my iPad. I suspect a permissions issue of some kind on the files. Once I noted that the PDFs in question (payslips I had emailed to myself from work) weren't in the iBooks app on my Mac I deleted them from the iPad and the error went away.


Interestingly everything else would sync fine, it's just that the sync operation wouldn't finish, so clearly there's some kind of bug in iTunes causing this. In the past I've noted space issues on my iOS devices from deleting things manually on the devices after they've been put there using iTunes. It seems to not like that, so I've tried to keep in the habit of only deleting media using iTunes if I installed it from iTunes via sync.

Jan 20, 2016 7:14 PM in response to Padiscamp

I just had the same error problem twice in a row - the second time iTunes crashed. I unlocked the phone and started again and watched the screen for any sleeping and touched the screen when it greyed - the backup and sync worked okay.. So thanks for the simple suggestion - I hope it isn't going to have to be a regular procedure.. BTW I had just updated today to latest iOS 9.2.1 and computer OS 10.11.3 so looks like more tinkering required by Apple. The systems are getting more and more complex. Everytime I try to Sync it asks if I want to transfer updated apps - I agree but then when I look at the apps held in iTunes on the computer - they all need updating again - so unsure why that happens.

Jan 20, 2016 11:26 PM in response to cmaryg

Yeah that doesn't make a lot of sense. I think it only transfers new content off the device and unlike iOS devices, itunes doesn't appear to have an auto-update option so I've just accepted the fact that I need to manually update stored iOS apps. I don't auto-update apps on my iPad so it suits me to read the update descriptions in iTunes before selecting the update option.

Jan 21, 2016 3:57 AM in response to Sean Aaron

I have started keeping the apps up to date in both the devices and iTunes because last year I had several issues with my mini iPad not completing a backup and sync and I think it even had the message in the topic Attempting to copy to the disk Macintosh HD failed. An unknown error occurred (-54) on some occasions. Once I made sure the apps were up to date in iTunes separately from the device apps, the problem seemed to disappear and the sync would complete so I figured syncing meant that each storage would have the most up to date version of everything and had to match for iTunes and the iDevice to be happy.

I think there is the assumption at Apple that iCloud will be used for syncing and iTunes is not so relevant any more. On a call to AppleCare it was suggested I open up iCloud syncing but when I said the time to sync was something like 36 hours, the Apple Helper realised it wasn't a good option... When you live in Australia with the abysmal internet speeds - often ADSL2 runs at 1MBps instead of the originally marketed 20MBps.. and upload speeds are often 250kbps so iCloud syncing is not easy task for anything that involves sizeable uploads.

Jan 21, 2016 7:10 AM in response to cmaryg

Even with fibre broadband I prefer the reliability of a wired connection for syncing; plus my content is a mix of stuff I've ripped and iTunes purchases. Best I could reasonably do is a wireless sync to my Mac and I did experiment with that, but that wasn't consistent and at least with the wired connection if the sync hangs you can just pull the plug to abort it.

Feb 3, 2016 3:46 PM in response to TheMrSidey

I was having a similar issue. The error: "Attempting to copy to the disk “[external FW800 RAID]” failed.

An unknown error occurred (-54)."

This was coming up every time I plugged my iPhone 6s running 9.2.x in to my iMac running 10.11.x with iTunes 12.3.2.35. My iPhone was set to back up to my computer and this is what I believe was causing the error. Then it would copy some new album art or a podcast or something and then iTunes and iPhone would never stop syncing. It just said something like 'waiting for items to copy from iPhone' and I would have to quit iTunes to get them to stop.

I tried many of the suggestions above, though as noted you can no longer repair permissions in El Capitan, to no avail.
After seeing this post it dawned on me that I hadn't started with the simplest thing first and I assumed it was an issue on the iMac and specifically the disk. I rebooted the iPhone and it worked like a charm.

Sometimes it really can be that easy........sometimes.

Feb 17, 2016 2:00 PM in response to Dizzy D

I was having the same problem with my iPhone 6s+ and iTunes after the iOS 9.2.1 Update. Deleting the XML iTunes library didn't work and I wasn't comfortable resetting permissions due to the way my work applications are setup. What did however fix the problem is simply disabling my Avast Anti-Virus file / web / mail shields. Considering such, I'm guessing iOS 9.2.1 introduces incompatibilities with anti-virus software, so try temporarily disabling any during sync.

Feb 21, 2016 11:02 AM in response to Dizzy D

I had the same error when trying to back up my 6S in iTunes on OS X El Capitan. I tried many of the things mentioned (reboot, reboot in safe mode, restart phone, etc.) and nothing worked. The solution for me was to unlock my phone before backing up. (I should have read the full thread before trying any solutions...) I'm not sure why were getting an error message about the Macintosh HD when the problem is that the phone is locked...

Mar 5, 2016 2:11 PM in response to mikebdba

mikebdba wrote:


I had the same error when trying to back up my 6S in iTunes on OS X El Capitan. I tried many of the things mentioned (reboot, reboot in safe mode, restart phone, etc.) and nothing worked. The solution for me was to unlock my phone before backing up. (I should have read the full thread before trying any solutions...) I'm not sure why were getting an error message about the Macintosh HD when the problem is that the phone is locked...

THANK YOU! Unlocking my 6 Plus before syncing is the one thing that finally worked for me!

Attempting to copy to the disk Macintosh HD failed. An unknown error occurred (-54).

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.