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

    Webinar
    One Click, Universal Protection: Implementing Centralized Security Policies on Linux Systems

    As Linux continues to play an ever increasing role in corporate data centers and institutions, ensuring the integrity and protection of these systems must be a priority. With 60% of the world's websites and an increasing share of organization's mission-critical workloads running on Linux, failing to stop malware and other advanced threats on Linux can increasingly impact an organization's reputation and bottom line.

    Learn More

    Sponsored by Bit9

    Webinar
    Linux Backup and Recovery Webinar

    Most companies incorporate backup procedures for critical data, which can be restored quickly if a loss occurs. However, fewer companies are prepared for catastrophic system failures, in which they lose all data, the entire operating system, applications, settings, patches and more, reducing their system(s) to “bare metal.” After all, before data can be restored to a system, there must be a system to restore it to.

    In this one hour webinar, learn how to enhance your existing backup strategies for better disaster recovery preparedness using Storix System Backup Administrator (SBAdmin), a highly flexible bare-metal recovery solution for UNIX and Linux systems.

    Learn More

    Sponsored by Storix