Make bootable iso with grub chainloading

Posted by hlovdal on Super User See other posts from Super User or by hlovdal
Published on 2012-09-25T20:15:48Z Indexed on 2012/09/25 21:40 UTC
Read the original article Hit count: 402

Filed under:
|
|

My parents' pc has windows 7's boot manager installed at MBR and grub2 is installed on /dev/sda2 (booting linux on /dev/sda2). I want to make a bootable cd so that when booted from it just chainloads into the boot manager on the second partition. I assume using grub rather than grub2 for this will be simpler, using the configuration

timeout=0
hiddenmenu
default=0
title grub2 (/dev/sda2)
        rootnoverify (hd0,1)
        chainloader (hd0,1)+1

I know I can make a bootable linux cd in various ways, but that is not what I want. I just want to put grub/grub2 on the cd, no kernels or programs.

The question is how do I make the iso file? I have found some references to installing on a floppy or usb disk, but all those assume the device is present when running the grub install commands. A iso file is different.

© Super User or respective owner

Related posts about grub

Related posts about iso-image