LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I extract raw sectors from a CD-ROM? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-extract-raw-sectors-from-a-cd-rom-513559/)

pxumsgdxpcvjm 12-25-2006 08:31 AM

How do I extract raw sectors from a CD-ROM?
 
Hello, I want to extract RAW sectors (2352 bytes) from a CD-ROM to a file in my hard disk. How can I do this? Thanks.

pixellany 12-25-2006 09:06 AM

Quote:

Originally Posted by pxumsgdxpcvjm
Hello, I want to extract RAW sectors (2352 bytes) from a CD-ROM to a file in my hard disk. How can I do this? Thanks.

dd---the univerally dangerous power tool

Note: I know nothing about CD formats, but fdisk says that a sector is 2048bytes

Assume that your CD is /dev/hdc:

To read the first 2352 bytes into a file:
dd if=/dev/hdc of=filename bs=2352 count=1

To jump ahead to the 6th block:
dd if=/dev/hdc of=filename bs=2352 skip=5 count=1

to read N blocks: count=1

etc

man dd for more (or find the megathread on dd by Awesomemachine)


All times are GMT -5. The time now is 05:41 PM.