Don't Fear Terminal; Meet Ditto

It’s very common for technicians to run into hard drives or files that are on the brink of failure or contain corrupted files that hang up traditional backup and transfer methods. Disk Utility can be used to create an image of a folder or drive, but tends to throw an input/output error at the slightest hesitation, like those caused by failing drives or corrupted files.

SuperDuper is much better at making disk images from failing drives or corrupted source material; while not the best tool for the job, it does seem to be the most versatile. I urge you to buy your own copy and support the developer of this fantastic tool: http://www.shirt-pocket.com.

Ditto is a command-line tool that will copy block by block the information from one directory (the source) to another (the destination). It’s very simple and does not care about hesitation from mechanical or logical failures. This said, it will not extract data from a hard drive that’s too far gone. I like to use Ditto in verbose mode, just so I can see that it’s working and how far along it is.

Many people avoid Terminal for fear of typing all those long commands and file paths. Not an unjustified fear because you can simply drag the source and destination right into the terminal window, and the paths will be automatically entered for you. Here’s how to use ditto my favorite way.

Assuming you have a terminal window open, simply type the following (but leave off the brackets):

ditto -v [source] [destination]

If you’re copying a folder on your Desktop to your Documents folder, it’d look like this:

ditto -v /Users/matt/Desktop/stuff/ Users/matt/Documents

The guide to using Ditto, and every other command line application, can be found by typing man x in terminal, where ‘x’ is the name of the application. So, for Ditto’s user guide, simply type man ditto and then press return.

Similar Posts

  • Dozens of Ways to Charge an iPod

    This morning, while scanning Digg.com, I noticed an interesting post about the many, many ways it’s possible to charge an iPod without a…

  • Yet Another OS X Security Article…

    Readers of our free newsletters, Tech Tails and Kibbles and Bytes know we’ve been writing a lot about security on OS X. Over…

  • De-authorize your iTunes Account Before Hardware Repair or Sale

    Pretty much everyone has downloaded media from the iTunes store, but not too many of us know just how iTunes keeps track of computer authorization. Every device on the internet has at least two unique identifiers: a MAC address and an IP address.

    MAC is an acronym for Media Access Control. Many believe that Mac, the abbreviation for Macintosh, should be written with capital letters – this is incorrect. Likewise, iPod – not iPOD or IPOD; iMac – not iMAC or IMAC; etc. Network interfaces have MAC addresses; Macintoshes can be called Macs.

    Since your MAC address is completely unique, it’s the ideal way for iTunes to know that you’re authorized to play purchased content on any given machines. Trouble is, your ethernet port is part of the main logic board, which requires replacement in some repairs. With a new main logic board comes a new MAC address, which confuses iTunes and some other, generally high-end, software.

    You’re allowed to authorize up to five computers at any one time to play your purchased content, but replacing your logic board changes the MAC address. If you didn’t de-authorize before repair, you’ve lost 20% of your available authorizations. I made this mistake a few years ago when I had to replace the logic board in a Mac Mini hooked up to my television, and when I sold my iBook. I also lost an authorization when my two-week-old PowerBook G4 flew off the roof of my car at highway speed. Thankfully, iTunes allows you to de-authorize all computers on your account once annually.

    I only have one Machine these days, a 17-inch MacBook Pro, so this hasn’t been a problem of late for me. It’s a common question asked our technical support team, and a good fix to file in your troubleshooting arsenal.

    The full details from Apple can be found here: http://support.apple.com/kb/HT1420

  • How to Forward Delete on a Mac

    We recently relaunched our Mac Basics classes. One of the most common questions from recent switchers (besides “can I use a right click…

  • Nifty Aperture Plug-in

    I’ve just started using Aperture, it’s definitely a step up from iPhoto but all the new features make it worth it. Today I…

  • iPod + Windows Tips

    By Scott@Smalldog.com [Disclaimer: Keeping in mind that I work primarily with the Macintosh Operating System, and I am about to navigate you through…