Sunday, February 21, 2010

Rescuing a CD in Archlinux

I have a CD with our favorite movie on it: Bud Spencer - Soldier of Fortune. I promised to my son to watch it together with him. Unfortunately the CD was faulty, KDE didn't recognise it. My son was so sad, I just had to do something about it.

tail -f /var/log/kernel.log

revealed "Buffer I/O error on device sr0, logical block 326084". After some failed attempts and reading some 'man mount' I found out how to mount the CD:

mount -r -t iso9660 -o nofail,ro /dev/sr0 /media/cd/

After this, ls /media/cd/ did show the file on the CD. Time to use the almighty dd utility. I found this blog entry to be very helpful:

(On a side note, it seems the author of this blog uses GoboLinux, well done!)

So the command to rescue my CD was:

dd if=/media/cd/Zsoldoskatona.avi of=/tmp/Zsoldoskatona.avi bs=512 conv=noerror,sync

And we were able to watch the movie!

1 comment:

  1. hello dude
    I need your help with this problem which you wrote about it here:
    how could you move /boot to sda1. ??
    thanks in advance and sorry about wrong place but could not contact you