Ddrescue

I read about Ddrescue that is supposed to fix a CD with a scratch on it. Has anyone here used it and where would I find it? Software manager?

You can install it with:

sudo apt-get install gddrescue

then run it with (assuming your device is /dev/sr0):

sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescued.log

If that succesfully created the iso then load it up in VLC to see if all is well.
Then write the iso out to a new disk.

Thanks for the reply Emegra.
Er what’s an iso?

Er what's an iso?
Info from Wikipedia
Any single-track CD-ROM, DVD or Blu-ray disc can be archived in ISO format as a true digital copy of the original. Unlike a physical optical disc, an image can be transferred over any data link or removable storage medium. An ISO image can be opened with almost every file archiver. Native support for handling ISO images varies from operating system to operating system.

Oh I have seen ISO on pics I have downloaded- never made the connection. Ok, so I will try what you said in the terminal…

Worth a read.

Linux ISO Image Downloads | Linuxlookup

Jocklad

Ok so I did the first part:

melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo apt-get install gddrescue
[sudo] password for melissa:
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed
gddrescue
0 to upgrade, 1 to newly install, 0 to remove and 37 not to upgrade.
Need to get 55.4 kB of archives.
After this operation, 164 kB of additional disk space will be used.
Get:1 Index of /ubuntu precise/universe gddrescue i386 1.14-1 [55.4 kB]
Fetched 55.4 kB in 0s (191 kB/s)
Selecting previously unselected package gddrescue.
(Reading database … 231079 files and directories currently installed.)
Unpacking gddrescue (from …/gddrescue_1.14-1_i386.deb) …
Processing triggers for install-info …
Processing triggers for man-db …
Setting up gddrescue (1.14-1) …
melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescued.log

Do I put the damaged CD in whilst I do the second command in the terminal?

Thanks Jocklad. One certainly learns more about computing as a Linux user! My friends now ask me to solve their Windows problems lol.

Do I put the damaged CD in whilst I do the second command in the terminal?

You put the damaged disk if first, allowing to load up, then issue that command.

Ah ok; I am playing a CD now that is fine. Will take it out and put the damaged one in…

I have put the damaged disk in ( it plays up a certain point and then a scratch makes it stop) and it is playing on Rhythmbox, and run the commands in the terminal:

melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo apt-get install gddrescue
[sudo] password for melissa:
Reading package lists… Done
Building dependency tree
Reading state information… Done
gddrescue is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 37 not to upgrade.
melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescued.log
ddrescue: Bad logfile; last block begins past end of input file.
melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $

melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescued.log ddrescue: Bad logfile; last block begins past end of input file.
Did you run this command previously? That could be the reason, try:
sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescue.log

And do not try to play the disk.

Yes, I did.

I was just playing a normal disc so took it out to run the command in the terminal:

melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescue.log
[sudo] password for melissa:
ddrescue: Can’t open input file: No medium found
melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $

Huh :-\

You need to have the damaged CD in the CD/DVD drive … but it NOT playing in any media player.

THEN run:

sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescue.log

ddrescue cannot read the disk if it isn’t in the drive, or is being read by another process.

Ah ok…thanks Mark will do that!

Disc is in and the ddrescue is doing something called “splitting failed blocks.”

melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescue.log
[sudo] password for melissa:

Press Ctrl-C to interrupt
Initial status (read from logfile)
rescued: 0 B, errsize: 560 MB, errors: 1
Current status
rescued: 0 B, errsize: 620 MB, current rate: 0 B/s
ipos: 620150 kB, errors: 1, average rate: 0 B/s
opos: 620150 kB, time from last successful read: 2.3 h
Finished
melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $ sudo ddrescue -r 1 /dev/sr0 cdcopy.iso rescued.log
[sudo] password for melissa:
ddrescue: Bad logfile; last block begins past end of input file.
melissa@melissa-HP-Compaq-nx6325-RH628ES-ABU ~ $

That would suggest that it has finished and created the cdcopy.iso in the base of your home folder.
Try to open it with VLC and see if it plays.

I think it is here, but there is no option to open it with VLC.

Hi Melissa

Unless I’m misunderstanding this you will have to first burn the .iso to a blank CD, You can use Brasero to do that

Good luck

Graeme