As I mentioned on Sunday, I had problems with Time Machine getting stuck when doing backups. It would say something like ‘Backing up 28 MB of 1.25 GB’ and stay stuck like that for hours at a time.
I tried the obvious things first – using Disk Utility to repair disk permissions and the disks themselves. I did this for both my internal hard drive and the backup drive. But it didn’t make a difference. I even reformatted the backup disk, wiping all my previous Time Machine backups, but that didn’t work either.
Then I had a look at Console. Console shows you your system logs in realtime, and when I looked at ‘All logs’ I saw something like this:
mdworker: (Warning) Import: Bad Path:‘ for those who can’t see it. The mdworker process was generating several of these errors every second. Thankfully you’re usually never the only person with any particular problem and I found this thread on the MacRumors forums with a solution – open Terminal and type these two commands in turn:
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
Then, start a new Time Machine backup. After doing this I had no problems and the Time Machine backups have worked correctly ever since. The MacRumors thread suggested two additional commands but this seemed to work for me – there seems to be a related problem with drives formatted using the ExFAT file system, although mine used OS X’s standard HFS+ file system.
Whilst I love using OS X, it can be exasperating when things stop working correctly. It can take quite a bit of effort to work out what’s wrong and how to fix it, and usually I end up getting information from third-party web sites rather than Apple’s own support site (which is rather lacking). Whilst I don’t often use Windows at home, usually I find solutions to Windows problems on Microsoft’s own site.