Creating a bootable CD

Create disk image

Change directory to the place in your mirror that will be the root directory of the cd.

mkisofs -v -r -T -J -V "MojCD" -b images/boot.img -c misc/boot/boot.cat -o /tmp/mojcd.img . 

Test the image

If you're paranoid you can test your new disk image by mounting it. If you forgot to fix the file permissions or set the rock ridge extensions then the error will be obvious here since the file names and directory structure will be wrong.

mount -t iso9660 -o ro,loop=/dev/loop0 /tmp/mojcd.img /mnt/cdrom

When you're done, don't forget to unmount it.

umount /mnt/cdrom 

Burn the disk

Be sure to set the correct speed for your device. This command is for a 4X CDR. You may have a 1X or 2X drive.


cdrecord -v speed=4 dev=0,0 /tmp/mojcd.img

Google
WWW www.phy.hr Darkove stranice