Copy a CD or DVD with dd

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

Comments

Comment viewing options

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

i can copy my home-made DVDs

hanse's picture

i can copy my home-made DVDs with the commands but i cant copy DVD movies ,any suggestions?

Does it work?

hansekarl's picture

i have to say this command does not work on my Ubuntu machine, it seems like my DVD is protected, i just wonder.

A good article related to the issue

anjanaya's picture

I thought it was a nice one to read

  • http://www.troubleshooters.com/linux/coasterless.htm
  • I think the title should

    Anonymous's picture

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

    ddrescue? and why not music CDs

    pbhj's picture

    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?

    Audio cd image, but how

    RudyD's picture

    I would be interested in a nice try on that. Just dumped some audio cd -s with plain dd as a nerd. B-)
    Just could not load to any software to tell that is an audio cd.
    Is there a way to write a proper disc from that image? (just the plain device data dump saved to a file, like dd if=/dev/cdrom of=/path/to/backup/file.iso)
    Would be quite important in this case, because the original disc got lost and it would be nice to recover it from an image like this.
    TIA.

    only copies the first 512MB of the DVD

    MiguelKJ's picture

    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 ?

    Check system log

    Mitch Frazier's picture

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

    Mitch Frazier is an Associate Editor for Linux Journal.

    try bs=1024 in option

    Anonymous's picture

    try bs=1024 in option

    White Paper
    Fabric-Based Computing Enables Optimized Hyperscale Data Centers

    Today’s modular x86 servers are compute-centric, designed as a least common denominator to support a wide range of IT workloads. Those generic, virtualized IT workloads have much different resource optimization requirements than hyperscale and cloud applications. They have resulted in a “one size fits all” enterprise IT architecture that is not optimized for a specific set of IT workloads, and especially not emerging hyperscale workloads, such as web applications, big data, and object storage. In this report, you will learn how shifting the focus from traditional compute-centric IT architectures to an innovative disaggregated fabric-based architecture can optimize and scale your data center.

    Learn More

    Sponsored by AMD

    White Paper
    Red Hat White Paper: Using an Open Source Framework to Catch the Bad Guy

    Built-in forensics, incident response, and security with Red Hat Enterprise Linux 6

    Every security policy provides guidance and requirements for ensuring adequate protection of information and data, as well as high-level technical and administrative security requirements for a system in a given environment. Traditionally, providing security for a system focuses on the confidentiality of the information on it. However, protecting the data integrity and system and data availability is just as important. For example, when processing United States intelligence information, there are three attributes that require protection: confidentiality, integrity, and availability.

    Learn more about catching the bad guy in this free white paper.

    Learn More

    Sponsored by DLT Solutions