In today’s article, we’re going to learn how to backup optical media to .iso. If you have optical disks you want to backup, this is an easy way to go about it. It will not work with all disks, especially those encumbered with DRM.
This is useful for data disks, for example. It’s also useful for music CDs. It’s less likely to be good for things like game DVDs or movies. Those use various methods to stop you from copying your discs. While there are ways to backup some of them, this article won’t be getting into it.
Instead, we’ll just be using ‘dd’ for this exercise. If you’re unfamiliar with ‘dd’, it stands for:
convert and copy a file
If you’re unfamiliar with the command, you should pay extra attention to the way it is used in this article. It’s a powerful tool and using it with just the slightest error can (and will) make you run for your backups.
So, with all those things in mind, let’s learn how to …
Backup Optical Media To .iso:
This article requires an open terminal, like many other articles on this site. If you don’t know how to open the terminal, you can do so with your keyboard – just press
With your terminal now open, we should probably figure out where your optical disk is. One way to find your optical media drive is with this command:
1 | dmesg | egrep -i 'cdrom|dvd|cd/rw|writer' |
Inside the results of that command you’ll find something like “[sr0] scsi3-mmc
” from which you can glean that /dev/sr0
would be your optical drive. With that information at hand, you’ll fun this command:
1 | dd if=/dev/sr0 of=/path/to/save/<file_name>.iso status=progress |
Be really sure that the path to save is correct, though this command is less likely to harm you than other ‘dd’ commands.
Anyhow, you can verify the integrity of the file created. That’s an easy enough step to take and looks a bit like this:
1 | md5sum /dev/sr0 /path/to/save/<file_name>.iso |
That should spit out two numbers. Those numbers should match. If they don’t, then something has gone wrong and you might want to try it again.
Closure:
There you go… Another quick and easy article. This one teaches you how to backup optical media to .iso, a handy skill if you want to preserve the data on the disks before they get worn out, broken, or lost.
Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your own site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.