Rescue Old, Damaged CDs with an Ubuntu Live CD

Your old CDs – especially ones you’ve burned yourself – degrade over time, to the point that they’re unreadable. We’ll show you how to squeeze as much data out of them as you can, before it’s too late!

The tool we’re going to use to do this is called ddrescue, which can be easily accessed from the Live CD environment. ddrescue can make .iso files out of your CDs, which can then either be burned to a more reliable CD, or can be mounted and accessed in all modern operating systems.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 1

Boot into the Ubuntu Live CD environment using a burnt CD or a prepared flash drive.

First, we’ll install ddrescue. Open up the Synaptic Package Manager (System > Administration > Synaptic Package Manager).

In the Synaptic Package Manager window, click on Settings > Repositories.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 2

Add a check in the box whose label ends with “universe” to enable Ubuntu’s universe repository. Click Close.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 3

Back in the main Synaptic window, click the Reload button to reload the list of available packages.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 4

Once the search index has been rebuilt, enter “ddrescue” in the Quick search text field. Two different packages will come up; make sure that you choose “gddrescue” and not “ddrescue,” which operates slightly differently.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 5

Right click on “gddrescue” and select Mark for Installation. Click the Apply button, and follow the prompts to install ddrescue.

Next, we need to select a location to save the .iso file that will be produced by ddrescue. In our case, we’ll use an internal NTFS hard drive. To mount it, we’ll click on Places and then select the hard drive we want to use.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 6

The rest of this guide will be done in a terminal window, so open one through Applications > Accessories > Terminal.

Navigate to the location in which you will save the .iso file. In our case, it’s a newly mounted hard drive, so we’ll first change to the /media directory, and then use tab completion to change to the directory that represents our hard drive.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 7

Once you’re in the right directory, you’re ready to run ddrescue! ddrescue is neat because you can try to pull data off of a CD multiple times, and each time it will add to the same image file whatever new data is manages to recover.

Because of that, for the first pass, it’s best to start with recovering the easy parts first, and then drilling down into problem areas later.

For the first pass, the terminal command is:

ddrescue –n –b 2048 /dev/cdrom

In our case, the CD we’re trying to recover is a 13 year old CD with Red Hat Linux 4.2 on it, so we’re going to call the image RedHat.iso, and the log file RedHat.log.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 8

The “-n” flag ensures that this first pass won’t take too long, but will still recover the easy-to-read parts of the CD. The “-b” flag is important because CDs have block sizes of 2048 bytes.

Eventually ddrescue will finish, possibly with some errors.

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 9

In our case, there were around 80 MB of data that were not recovered due to errors. Let’s try a second, more in-depth run to try to recover as much data as possible.

The terminal command for this second run is very similar to the first, except that instead of using the “-n” flag we will use the “-d” flag to tell ddrescue to go into direct mode and read as much data from the CD as possible. For more information about command line parameters ddrescue recognizes, see its manual.

ddrescue –d –b 2048 /dev/cdrom

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 10

Make sure that the .iso and .log files are the same as you used in the first step.

We let ddrescue run overnight, and in the morning…

rescue-old-damaged-cds-with-an-ubuntu-live-cd photo 11

we had recovered over 55 MB of the data we hadn’t recovered before! If we left it longer, we may have been able to recover even more.

It’s a good idea to try to save your CDs now, before they degrade any further. Hard drive space is cheap; buying an external drive is small investment if it means you can save your old CDs (and then you can throw them away to save some space on your shelves).

And while ddrescue is a great tool for doing this, it can also be used to pull data from other devices like hard drives and floppy disks. If you tried to make a drive image with dd and it gave you errors, then give ddrescue a try instead!

More stories

Speeding Up OS X Navigation with Quicksilver

We are always looking to improve efficiency, fewer steps to edit photos, fewer steps to format word processing, etc. Today we look at using the mouse less and be able to find files and open applications faster in OS X.

How to Batch Edit Photos with Phatch

If you have ever needed to edit a whole folder of photos with the same effect or need to repeatedly crop, add watermarks, or drop shadows to images for the web, Phatch is the tool for the job. Phatch is a photo batch editor written in python so it works on any operating system.

Send Text and Links via Windows Live Hotmail in IE 8

Do you like to send notes and links to yourself or others while browsing with Internet Explorer 8? Now you can use your Windows Live e-mail account to send that information out using the Send with Windows Live Hotmail accelerator.

Desktop Fun: General Desktop Icon Packs

Sometimes you need something a little more general in nature for your desktop and dock icons. If this sounds like you then have a look through our General Desktop Icon Packs collection.