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
    Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

    Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

    Learn More

    Sponsored by Red Hat

    White Paper
    Private PaaS for the Agile Enterprise

    If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

    Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

    Learn More

    Sponsored by ActiveState