Skip to contentSkip to conversation

How do I do a surface scan of a CDROM?

DISCUSSION Alan Womack 2 participants 2 messages Sep 13, 2002

lore
Share & tools
lore
#0 lore raw

badblocks won't run because it's a read only medium.

I believe my kids have scratched the disk on a particular file, but I would like to run a full surface scan of the cd to see if it gets read sometimes, but not others.

Thanks
Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 2 lines · Alan Womack

like to run a full surface scan of the cd to see if it gets read sometimes, but not others.

Well, how about using readcd, a dd-like tool for extracting disc images for copying purposes. It's a part of the cdrecord suite, and does extensive retries on errors. You *do* need to have your cd configured as a scsi device, but this works fine on my IDE burner (which appears as scsi due to hdc=ide-scsi in the boot string, and the correct options enabled in the kernel).

type man readcd for the details. There are examples of usage in the manpage.

Then you can just do a loopback mount of the image file (if readcd manages to read the disc effectively). To mount the file cd_image created above on the directory /cdrom, give the command:

mount -t iso9660 -o ro,loop=/dev/loop0 cd_image /cdrom

HTH,

.brian

Signature · 8 lines
Brian Bilbrey - [email protected] - http://www.OrbDesigns.com/
 Visit LinuxMuse - I^3 at http://www.LinuxMuse.com/ 

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs