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:
1
| |
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:
1
| |
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:
1
| |
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:
1 2 3 | |
Unmounting
To unmount a currently mounted volume, type:
1
| |
/mnt/isoimage is the location of your mounted volume.
Imported comments
These were imported from my old blog. Please use disqus below for new comments
rami
on 2010-02-16 00:01:16
thanks, but for the ripping a cd image into a .iso, where does the file save?
John
on 2010-01-13 18:12:04
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?
AMartin
on 2009-10-16 18:14:04
Simple and great for people liking cmd. For people who like \&
quot;interactive\&
quot; way You can use k3b for example with option \&
quot;only make an image\&
quot;.
Cheers
kumar chavan
on 2009-09-07 09:33:44
what is advantages of making cd-image and mounting it?
plese tell me source where i can find well information about iso image technique.
yogesh
on 2009-07-19 15:16:23
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.
dinesh
on 2009-07-10 05:38:52
Thanks. It worked perfectly.
merso
on 2009-06-17 04:32:40
If 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
~Xpain~
on 2009-05-19 17:14:13
Tnks Bro. For me is to usefull!!
Kashif
on 2009-05-13 05:01:27
This was very helpful. Please carry on.
Thanks.
David
on 2009-04-22 22:08:39
Perfect, Thank you very much
Brad
on 2009-04-19 22:19:17
Kudos to you. Doesn't get much easier
vishwas
on 2009-04-02 07:23:18
worked like a charm
Lalit
on 2009-03-24 23:20:38
Thanks, very helpfull
dusvi
on 2008-11-23 11:53:47
great job…
vishl
on 2008-10-01 07:28:16
grate job dear
matt
on 2008-04-15 01:01:39
thanks! wish I could remember this, guess I'll have to bookmark you… lol
http://tacomrealtor.wordpress.com
Tervel
on 2007-08-01 18:37:58
Nice. It doesn't get simpler as that.Thanks,dude!