» Make ISO images on Linux

On twitter

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 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. Like this:

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.

Stay up to date

You can track my blog rss articles and rss comments. You may also find my rss bookmarks interesting. Or twitter Follow me on Twitter


Like this article?

   Then Digg it!
Or use another bookmark button below to show your support &
help me spread the word.


tags: linux, ISO image, dd
category: Howto - System
read: 59,260 times

Add Comment

Comments have been automatically closed because of the age of the article. If you need to, you can still contact me on the subject.

Comments

#17. rami on 16 February 2010

Gravatar.com: ramithanks, but for the ripping a cd image into a .iso, where does the file save?

#16. John on 13 January 2010

Gravatar.com: JohnMy 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?

#15. AMartin on 16 October 2009

Gravatar.com: AMartinSimple 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

#14. kumar chavan on 07 September 2009

Gravatar.com: kumar chavanwhat is advantages of making cd-image and mounting it?

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

#13. yogesh on 19 July 2009

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

#12. dinesh on 10 July 2009

Gravatar.com: dineshThanks. It worked perfectly.

#11. merso on 17 June 2009

Gravatar.com: mersoIf you want to create ISO Image on Mac,I share you below resource:
http://www.gleez.com/board/tech-corner/tips-tricks/how-create-iso-image-file-dvd-mac-os

#10. ~Xpain~ on 19 May 2009

Gravatar.com: ~Xpain~Tnks Bro. For me is to usefull!!

#9. Kashif on 13 May 2009

Gravatar.com: KashifThis was very helpful. Please carry on.
Thanks.

#8. David on 22 April 2009

Gravatar.com: DavidPerfect, Thank you very much

#7. Brad on 19 April 2009

Gravatar.com: BradKudos to you. Doesn't get much easier

#6. vishwas on 02 April 2009

Gravatar.com: vishwasworked like a charm

#5. Lalit on 24 March 2009

Gravatar.com: LalitThanks, very helpfull

#4. dusvi on 23 November 2008

Gravatar.com: dusvigreat job...

#3. vishl on 01 October 2008

Gravatar.com: vishlgrate job dear

#2. matt on 15 April 2008

Default avatar:mattthanks! wish I could remember this, guess I'll have to bookmark you... lol




... [more] http://tacomrealtor.wordpress.com

#1. Tervel on 01 August 2007

Default avatar:TervelNice. It doesn't get simpler as that.Thanks,dude!