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

    July 2009, #183

    News Flash: Linux Kernel 3.0 to include an on-the-go Expresso machine interface! Ok, maybe not, but Linux is definitely going mobile, from phones to e-readers. Find out more inside about Android, the Kindle 2, the Western Digital MyBook II, The Bug, and Indamixx (a portable recording studio). And if you've gone mobile and you been wanting more Emacs in your life then check out Conkeror.


    To compliment the mobile we've got the stationary: parsing command line options with getopt, checking your Ruby code with metric_fu, and building a secure Squid proxy. How is this stationary you ask? What can we say? It's not. We just wanted to see if anybody actually read this part of the page :) .


    All this and more, and all you have to do is get your hot sweaty hands on the latest copy of Linux Journal.





    Read this issue