PDA

View Full Version : [SOLVED] How do I recover lost data on CD?



bwallum
December 1st, 2011, 07:50 PM
Hi

I have a 4.7GB write only cd on which 2.7GB of images has been saved. I could see them now I can't, it reports 'no files found'.

Is there any linux utility that can look at a cd and recover lost files?

androssofer
December 1st, 2011, 09:07 PM
Hi

I have a 4.7GB write only cd on which 2.7GB of images has been saved. I could see them now I can't, it reports 'no files found'.

Is there any linux utility that can look at a cd and recover lost files?

i think GNU ddrescue shud do it...

there is info on it here:

https://help.ubuntu.com/community/DataRecovery

Mark Phelps
December 2nd, 2011, 02:09 PM
I have a 4.7GB write only cd ...

If it really was "write only", once you wrote to it, you couldn't then read from it.

So, which media format is it: CD-R or CD-RW. I'm guessing what you meant is CD-R.

If you write to a CD and then do not finalize it, sometimes it can't be read because it's not actually been "closed".

Garland Fox
December 2nd, 2011, 03:16 PM
At 4.7 gb it not a cd it a dvd

bwallum
December 9th, 2011, 12:02 AM
Garland Fox - Indeed it is a data dvd, apologies if the generic cd confused.

androssofa - thanks for the gddrescue cue, it is currently trundling away having recovered most data, it is now 'splitting' damaged blocks and recovering more bits albeit very slowly.

Mark Phelps - its a dvd -R

gddrescue is quite intimidating at first. If you try to put a path in front of the output file it thinks you want to write the recovered data directly to the partition of the path AND completely over write the drive. You need to write the recovered data as a diskimage, then burn it onto a new cd (or dvd -R in my case)

I used this simple command:-


ddrescue /dev/sr0 dvdimage logfile/dev/sr0 is my optical drive, dvdimage, the image file that you burn to new media, is written to the Home folder. (/home/Yourusername)The logfile is written there too.

The logfile keeps track of the recovery and enables you to stop and restart the data scan without going back to the beginning each time.

It is taking days but is fully automatic. Other interesting finds on the journey include:-

https://help.ubuntu.com/community/DataRecovery#Imaging_a_damaged_device.2C_filesyste m_or_drive

Having made the first big bite at recovery, I risked cleaning the dvd with contact lens solution and quite firm radial wipes using a lint free cloth. This helped. From an initial 110MB in 'errsize' I am now down to 13.7MB and still running. Total run time has been around 36 hours so far.

Hope the above helps and thanks again for your assistance.

EDIT
I tried the following command and it cut the recovery time down to 15 minutes!

ddrescue -b 2048 /dev/sr0 dvdimage2 logfile2