Create ISO Image

Image Files

Creating an ISO image from a DVD or CD is a pretty simple process. Stick the DVD disc in your DVD drive. Most modern distros will automount a disc when placed in a CD or DVD drive. If it spins up and automounts, you need to unmount it.

Check using the mount command:

$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro
/dev/sdb1 on /store type ext3 (rw)
/dev/sr0 on /media/cdrom0 type udf (ro,noexec,nosuid,nodev,user=patrick)

My drive mounts /dev/sr0 on /media/cdrom0. To unmount it, use the umount command and pass its mount point:

umount /media/cdrom0

To create the ISO, do:

dd if=/dev/sr0 of=newfile.iso

Creating an ISO from files on disk is similiar. Create a directory containing all the files:

mkdir ~/isodir/

genisoimage -o new.iso ~/isodir

The ISO image must comply with ISO9660 filesystem.

To create with Rock Ridge extensions use:

genisoimage -o new.iso -R ~/isodir

Done!