GQ-08: How to Create an ISO Image From a CD
How do I make an ISO image of a data CD?
here's two ways you can do it from the command line...
1. Use the "dd" command.
- a. Pop the CD into your CD-ROM/DVD/CD-RW drive
- b. then run the command...CODEdd if=<device> of=cdimage.iso
<device> will be your CD-ROM device. This should be "/dev/hdc" for a DVD-ROM or CD-ROM drive, and "/dev/sr1" or "/dev/sg1" for a CD-RW device.
- c. Now you'll have an iso image of the CD you put in your drive.
2. Use the "mkisofs" command.
- a. Pop the CD into your CD drive, and make sure it's mounted. Also make sure you know the mount point. This is usually "/mnt/cdrom". Just type "mount" to look at all mounted devices.
- b. Then run the command...CODEmkisofs -o cd.iso -lR /mnt/cdrom
- c. Now you'll have an iso cd image of the mounted CD
For example, if you want to make an image out of the files and folders included in the dir "/home/bob/stuff/" ...
CODE
mkisofs -o stuff.iso -lR /home/bob/stuff/
You'll then have an ISO image "stuff.iso" which contains the files from that directory. You could then burn using cdrecord or your favorite GUI cd burning app.
Note that if you need to make an image of a bootable cd use the dd method. mkisofs won't retain the bootable information.