Hi all,
>> Here is how we can make Bootable CD of olpc image.
>>
>> 1) Get the lastest ext2 image from laptop.org (or from bryan :) ).
>> 2) It is merely an image of the MBR partitioned Disk (CMIIMW here). to
>> view the partitions contained in it type:
>> # fdisk -lu olpc.img
>>
>> You will see something like this:
>>
>> You must set cylinders.
>> You can do this from the extra functions menu.
>>
>> Disk olpc.img: 0 MB, 0 bytes
>> 16 heads, 62 sectors/track, 0 cylinders, total 0 sectors
>> Units = sectors of 1 * 512 = 512 bytes
>>
>> Device Boot Start End Blocks Id System
>> olpc.img1 62 985055 492497 83 Linux
>>
>> It means that disk image has just 1 partition
>>
>> 3) Setup the loopback device for that partition using the following
>> command:
>> # sudo losetup /dev/loop0 olpc.img -o $((62 * 512))
>> (note: 62 in above command which means partition 1 starts at sector
>> no 62)
>>
>> 4) Mount the loopback device.
>> # sudo mount /dev/loop0 /mnt/tmp
>>
>> 5) Now the partition is mounted in /mnt/tmp. Copy everything to a
>> temporary location you can edit few things to make it bootable CDROM.
>>
>> # mkdir ~/olpccd
>> # cp -rv /mnt/olpccd/* ~/olpccd
>>
>> 6) To boot the CD using grub we will need "stage2_eltorito" file. Copy it
>> from your system to olpc grub folder.
>> # cp /lib/grub/i386-pc/stage2_eltorito ~/olpccd/boot/grub/
>>
>> (Note: it was in /lib/grub path in my ubuntu 6.10.
>> It might be at other place or not installed at all in your system.
>>
>> The command "where grub" will give you hint. usually /lib or
>> /usr/lib or /usr/local/lib.
>> )
>>
>> 7) You may also need to rename grub.conf to menu.lst. Also change the
>> grub.conf/menu.lst so that it can load the kernel from cd.
>> change "(hd0,x)" to "(cd)"
>> also write give the path of kernel image not the symlink (
>> /boot/vmlinuz- 2.6.19xxxx not just /boot/vmlinuz)
>>
>> 8) Now create the iso image
>> # mkisofs -R -b boot/grub/stage2_eltorito -no-emul-boot
>> -boot-load-size 4 -boot-info-table -o olpccd.iso ~/olpccd
>>
>> 9) boot it and enjoy.
>>
>>
>>
>>
>> After booting dont get angry. Because the above thing is not supposed to
>> not load the root fs. For that we need to setup ramdisk and write a small
>> program or shell script to get livecd booting.
>> I am sleepy and tired for to day and will try that tomorrow. :)