kvz.io
Published on

Make ISO Images on Linux

Authors
  • avatar
    Name
    Kevin van Zonneveld
    Twitter
    @kvz

CDs and DVDs don't have the eternal life, so you might want to back them up as ISO images. All the files and properties of the original disc, stored in a single file. You can also create ISO images and store them on your network for easy distribution of software installations. Here's how to create and mount ISO images on Linux.

Graphical Utilities

Of course you can always install and use graphical disc authoring software like GnomeBaker or K3b, but that's outside the scope of this article. I just want to show you how you can quickly create an ISO image without installing additional software.

Command Line

We're going to use the command line tool dd tool for this. Insert the disc that you want to copy and open a terminal.

Create a Cdrom Image

Now in the terminal type:

$ sudo dd if=/dev/cdrom of=cd.iso

A little explanation

  • sudo makes sure the command is executed as root. That's needed only if the user you're working under doesn't have enough permissions to access the device. But it's ignored if it's not needed so you can just ignore it as well.
  • dd stands for Disk Dump
  • if stands for Input File
  • of stands for Output File

Wait for the command to finish, and your new iso will be saved to cd.iso.

Create a dvd Image

For a DVD image, your device is probably called /dev/dvd instead of /dev/cdrom so the command would look like this:

$ sudo dd if=/dev/dvd of=dvd.iso

Create a scsi cdrom image

For a SCSI CDROM image, your device is probably called /dev/scd0 instead of /dev/cdrom so the command would look like this:

$ sudo dd if=/dev/scd0 of=cd.iso

Mounting an Image

Once you've created an ISO image you can mount it as if it was a normal disc device (loopback) device. This will give you access to the files in the ISO without you having to burn it to a disc first. For example if you wanted to mount cd.iso to /mnt/isoimage you would run the following commands:

$ mkdir -p /mnt/isoimage
$ mount -o loop -t iso9660 cd.iso /mnt/isoimage

Unmounting

To unmount a currently mounted volume, type:

$ umount -lf /mnt/isoimage

/mnt/isoimage is the location of your mounted volume.

Legacy Comments (17)

These comments were imported from the previous blog system (Disqus).

Tervel
Tervel·

Nice. It doesn\'t get simpler as that.Thanks,dude!

matt
matt·

thanks! wish I could remember this, guess I\'ll have to bookmark you... lol

http://tacomrealtor.wordpre...

vishl
vishl·

grate job dear

dusvi
dusvi·

great job...

Lalit
Lalit·

Thanks, very helpfull

vishwas
vishwas·

worked like a charm

Brad
Brad·

Kudos to you. Doesn\'t get much easier

David
David·

Perfect, Thank you very much

Kashif
Kashif·

This was very helpful. Please carry on.
Thanks.

~Xpain~
~Xpain~·

Tnks Bro. For me is to usefull!!

merso
merso·

If you want to create ISO Image on Mac,I share you below resource:
http://www.gleez.com/board/...

dinesh
dinesh·

Thanks. It worked perfectly.

yogesh
yogesh·

i want to burn an dvd iso image of rhel 5.1 using dd command pls tell me the exact command to do the same.

kumar chavan
kumar chavan·

what is advantages of making cd-image and mounting it?

plese tell me source where i can find well information about iso image technique.

AMartin
AMartin·

Simple and great for people liking cmd. For people who like \"interactive\" way You can use k3b for example with option \"only make an image\".
Cheers

John
John·

My root filesystem (if I\'ve got the terminology right) is /dev/sda1 on my Asus eeepc701.
Once I\'ve created the iso image can I restore my system to that point in time by using dd to copy the iso image back to /dev/sda1?

rami
rami·

thanks, but for the ripping a cd image into a .iso, where does the file save?