Linux – ISO Images


ISO images are very easy to manipulate at the command line in Linux. To make an ISO image from a CD or DVD simply insert the disc into the drive and type:

dd if=/dev/cdrom of=filename.iso

This uses the dd command with the input set to /dev/cdrom and the output set to filename.iso. Change these values as necessary. Note that some Linux distros mount the cdrom drive to /media/cdrom.

To mount an ISO image and read it just as it was a CDROM loaded in the tray do the following:

mkdir /mnt/iso
mount -o loop -t iso9660 filename.iso /mnt/iso

The contents of the ISO can now be accessed in /mnt/iso.