134 - Configure Windows to boot to grub4dos using the BCD
This Tutorial below refers to MBR\Legacy Windows booting only, not UEFI-booting.
It allows us to boot to any payload (e.g. linux ISOs) directly from the Windows Boot Manager menu.
The usual way to boot to grub4dos from Windows, is to configure Windows to boot to grldr.mbr which then runs glrdr which then loads a grub4dos menu (menu.lst). You can also directly boot to the grldr file.
The grldr.mbr file can be obtained from inside the grub4dos download zip file and comprises of the MBR boot sector and the Stage 1.5 boot code - it will look for the /grldr file and then run it.
The grldr file contains an embedded pre-boot menu.lst in the last 512 bytes of the file. This is normally used to look for the users menu.lst file which should be on a drive somewhere.
Here is the standard embedded config file inside grldr 0.4.6a and which tries to find and run a menu.lst
title find /menu.lst, /boot/grub/menu.lst, /grub/menu.lst
10. Click on one of the Floppy Disk icons (for English ANSI characters use the A icon, for languages that require UTF-8 characters use the U icon, if you menu is larger than 512 bytes, use the UZ icon). Exit BootIce.
Note: If the menu is quite large (>512 bytes) I suggest you reload it again and check that all characters were saved correctly.
11. Now copy the Memtest.gz payload to the root of a volume so the grub4dos can find it and load it.
You should now find you can directly boot to MemTest from the bootmgr Windows menu.
You can repeat this process to boot to any payload that is bootable via grub4dos.
The advantage of having lots of different grldr files, is that you can have all your different menu options in the Windows bootmgr menu and you do not have to load a grub4dos menu first.
One possibility is that you could add a menu entry to run Clonezilla and automatically backup or restore the Windows partition.
To boot to a linux ISO, we can embed the appropriate grub4dos commands, e.g.:
If the ISO file ubuntu-11.04-desktop-i386.iso is in the root of a partition on any drive in the system...
If you want a persistent filesystem to keep all your changes, make a new ext3 /casper-rwfile (volume nameand file name must be casper-rw) using theCreate Ext2/3/4 FSbutton inRMPrepUSB (size of 1 to 4 GB recommended if you have space).
Adding Tools menu and changing the menu order
You can define the order in which the menu items are listed.
You can have a Main Menu and a Tools Menu, the user can use the TAB key to move between the two menus...
Use BootIce - BCD - Professional mode
Select the top Windows Boot Manager entry and then double-click on either the Display Order or Tools Display Order.
Use the controls to add/delete/re-order the menu items.