HOWTO make DVD and CD .iso images using dd or cat in Linux

Please note that making security backups of your DVD/CD:s may be illegal in your country.

for the purpose of making these backups, the programs you need are standard, *NIX programs, and it is a safe bet that you wont need to install anything.
You may also need to have root permissions in able for you to access the DVD or CD devices.

Heres how to back up the device:

with cat:

cat /dev/dvd0 > ~/image.iso

with dd:

dd if=/dev/dvd0 of=~/image.iso bs=2048

replace /dev/dvd0 with what ever device it is corresponding with your CD/DVD rom player. If you’re unsure, you might find that $ cat /etc/fstab might provide you some useful information.

The two commands above copies the CD rom or DVD to the home folder. Making a image file with the iso 9660 or the Universal Disk Format file system. Please note that neither cat nor dd cares about file system. Dd copies blocks, and cat prints a file to stdout.

I have heard that cat does not copy the mbr record of the devices copied with it, but I know that dd does.

Note that if you’ve made the image file as the root user, you might have to chmod the file, and it might also be nice to change the files ownership

chown youruser:yourgroup ~/image.iso ; chmod 775 ~/image.iso

how to loopback mount the .iso file:

mount -t iso9660 -o loop ~/image.iso /mnt/tmp

replace iso9660 with udp if your mounting a dvd image.

and how to umount it:

umount /mnt/tmp

or

umount ~/image.iso

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close