How to create an iso image from cdrom

There are many reasons why you might need an iso image instead of cdrom installation. Most common scenario is when you want to have it stored local into your computer and use it on virtualization etc. To convert the whole cd to iso is very simple.

First you need to be sure that cdrom is not mounted:

[stelios@pappous ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdf1              29G  9.0G   20G  32% /
tmpfs                 6.0G  716K  6.0G   1% /dev/shm
/dev/sdf3              98G   19G   75G  20% /home
/dev/md0              137G   32G   98G  25% /virtualmachines
/dev/sde1             917G  495G  376G  57% /media/1tbesata
/dev/sr0              2.3G  2.3G     0 100% /media/UDF Volume

The above output shows that my cdrom is mounted under /media UDF Volume on /dev/sr0.
Umount the cdrom:

[stelios@pappous ~]$ umount /media/UDF\ Volume/

Type the following command:

sudo dd if=/dev/sr0 of=/media/1tbesata/iso-images/win7-32bit.iso
2097151+0 records in
2097151+0 records out
1073741312 bytes (1.1 GB) copied, 97.6383 s, 11.0 MB/s

and all done! Obviously you need to replace the paths.

 

Posted on: 18/01/2011








0 Comments
If you want to leave a comment please Login or Register