Copy a CD or DVD with dd

April 18th, 2008 by Mitch Frazier

If you need to copy a CD to your hard drive:

  prompt@shell$  dd if=/dev/cdrom of=/path/to/cdcopy.iso

For a DVD:

  prompt@shell$  dd if=/dev/dvd of=/path/to/dvdcopy.iso

____________________________
Related Articles

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

I thought it was a nice one to read

  • http://www.troubleshooters.com/linux/coasterless.htm
  • Anonymous's picture

    I think the title should

    On April 18th, 2008 Anonymous (not verified) says:

    I think the title should read how to copy a data CD/DVD. (No applicable to music CDs)

    pbhj's picture

    ddrescue? and why not music CDs

    On April 19th, 2008 pbhj (not verified) says:

    I'd have thought that you'd be better using something like ddrescue that verifies the data it copies (not sure if cdparanoia can do this to copy to hdd too).

    Also, why not for music discs? You can pipe them through your music player then can't you?

    MiguelKJ's picture

    only copies the first 512MB of the DVD

    On October 31st, 2008 MiguelKJ (not verified) says:

    I am using FC6 but
    dd if=/dev/dvd of=/path/to/dvdcopy.iso
    only copies the first 512MB of the DVD.

    Is there a way to copy the whole disk ?

    Mitch Frazier's picture

    Check system log

    On November 4th, 2008 Mitch Frazier says:

    That should copy the whole disk. I'd check your system log to see if you're getting some kind of error.

    Anonymous's picture

    try bs=1024 in option

    On May 25th, 2009 Anonymous (not verified) says:

    try bs=1024 in option

    Post new comment

    Please note that comments may not appear immediately, so there is no need to repost your comment.
    The content of this field is kept private and will not be shown publicly.
    • Allowed HTML tags: <a> <em> <strong> <cite> <code> <pre> <ul> <ol> <li> <dl> <dt> <dd> <i> <b>
    • Lines and paragraphs break automatically.

    More information about formatting options

    Newsletter

    Each week Linux Journal editors will tell you what's hot in the world of Linux. You will receive late breaking news, technical tips and tricks, and links to in-depth stories featured on www.linuxjournal.com.
    Sign up for our Email Newsletter

    Tech Tip Videos

    From the Magazine

    December 2009, #188

    If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.


    Read this issue