Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-25-2006, 09:31 AM   #1
Registered: Aug 2005
Posts: 235

Rep: Reputation: 30
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.
Old 12-25-2006, 10:06 AM   #2
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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


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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract body message from raw e-mail rigel_kent Programming 2 06-03-2006 07:07 AM
How to access raw sectors on HDD with no file system? prasanthpooyath Programming 4 01-08-2005 11:53 AM
Reading raw hard disk sectors villie Programming 4 05-13-2004 01:18 AM
DVD-ROM/CD-ROM unable to recognize debain boot CD gottfried Linux - Newbie 2 01-20-2004 01:39 PM
how to add cd-rom, dvd-rom, floppy, hard disk icons on gnome desktop? spyghost Linux - Software 6 09-21-2003 06:44 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration