IntroductionGrub4dos is a 2-stage boot manager - the first stage is the boot code which is loaded by directly reading sectors from a disk by the BIOS when it first boots. This Stage 1 boot code then looks for and loads the 2nd stage file grldr which contains all the grub4dos functions that we know and love! WEE is a small cut-down boot manager which is based on grub4dos. The main advantage of wee is that it does not need to load a secondary file like the grldr file because a much reduced version of the grldr code is contained within the boot code itself. Also, wee may be more successful at booting 'difficult' systems that don't seem to want to boot using grub4dos and just display a flashing cursor (as no 2nd stage grldr file is required). Note that WEE does not access CD-ROMs/DVDs or ext4 filesystems. WEE supports FAT12/16/32, NTFS and ext2/3/4, currently (Jan 2012) - no other file systems are supported. It is best (i.e. more reliable) to use a WEE command to directly find and load a bootloader (such as NTLDR) rather than boot from a partition bootstrap directly..
or
WEE should only be used on modern systems (after the year 2000) as it only uses Extended Int 13h EBIOS calls. WEE can boot up from IO.SYS (Win9x), KERNEL.SYS (FreeDOS), VMLINUZ (Linux), NTLDR/BOOTMGR (Windows), GRLDR (grub4dos) and GRUB.EXE (grub4dos). Why is WEE useful?Here are some reasons why you might want to try WEE
1. You want to create a bootable drive that has a hard-coded (unmodifiable) grub4dos menu and needs no grldr or boot menu.lst file.
2. You have a BitLocker encrypted boot drive and want to run grub4dos. You cannot install grub4dos as this would break the BitLocker protection and Bootmgr will not treat grldr as a valid boot file.
3. You have some 'bad' systems which do not seem to boot to the grub4dos menu (you just get a flashing cursor) 4. You want to use grub4dos but need to place the grldr file in a location other than the root of the boot volume.
How to install or boot to WEE?RMPrepUSB v2.1.635 and later versions now includes an 'Install WEE to Track 0' feature. Just press ALT+F12 or CTRL+W (or use the Drive tab menu) and you will be presented with the default WEE menu in NotePad which you may change if you wish. When it is correct (the menu is limited to 512 bytes, this includes any comment lines), save it and then RMPrepUSB will run WeeSetup.exe for you with the correct parameters to install it into the first track of the selected disk. By default, the included WEE menu will load grldr, so it can be used after installing grub4dos to a disk. If the grldr file is not present, will you be presented with this default menu:
WeeSetup.exeIf you don't want to use RMPrepUSB to install WEE, then the manual way to install WEE is to use weesetup.exe from a command shell. The latest version of weesetup.exe can be found here in the Downloads area (latest = v1.3 2011-09-18 at the time writing). Weesetup.exe should be run from an Administrator Command Prompt or Command Shell under Windows XP or later.
In this example we are going to use WEE to load grub4dos (grldr) - this is just an example, you can make your own WEE menu.
To install WEE to a disk's boot track using weesetup type:
You should see the Usage message similar to this:
Now let's list the drives in your system, type:
weesetup -l
this will list all available 'hard disk' devices (including available card readers and USB Flash drives). Identify the drive that you want to install WEE to (for example it may be (hd2)).
Create a text file called weemenu.txt with the following text in it:
Now install WEE as follows:
weesetup -u -s weemenu.txt -f (hd2) where (hd2) is the drive where you want to overwrite the boot track and install WEE to (e.g. a USB drive)
You don't need to have menu entries, simply omit the 'title' lines and the commands will be immediately executed.
As WEE is a cut-down version of grub4dos, it does not support all the nice feature in grub4dos such as help text, many grub4dos commands, live editing of menu entries, etc. you can however use 'C' to get to a primitive command prompt. You may bypass the boot-up script by quickly pressing the key C at startup.
You may single-step trace the boot-up script by quickly pressing the Insert
key at startup, and you will get the opportunity of step-by-step
confirmation on each command in the boot-up script.
List of WEE 'built-in' commandsThis is a list of the only menu commands that are supported by WEE (2011-6-27 version).
Examples:
These examples are taken from the WEE ReadMe file
Boot the MBR
(hd0)+1
Boot the bootsector of a partition
(hd0,0)+1
or equivalently
root (hd0,0)
+1
Find the partition containing ntldr and boot the bootsector
find --set-root /ntldr
+1
or equivalently
find --set-root /ntldr
()+1
Find the partition containing ntldr and boot ntldr
find --set-root /ntldr
/ntldr
Note: bootmgr can boot likewise. And so can GRLDR and GRUB.EXE of grub4dos.
Boot Ubuntu Linux
find --set-root /boot/vmlinuz
/boot/vmlinuz /boot/initrd.img root=UUID=%UUID% ro acpi=noirq
Note: The initrd argument should immediately follow the vmlinuz. Like ntldr and others, vmlinuz here is treated as an executable program of WEE.
Find the partition containing io.sys and boot io.sys
find --set-root /io.sys
/io.sys
Note: Only IO.SYS of Win9x can be supported. WinMe, MS-DOS 6.22 and all others are not bootable.
Find the partition containing kernel.sys and boot kernel.sys
find --set-root /kernel.sys
/kernel.sys
Note: KERNEL.SYS is the kernel of FreeDOS.
Run a 32-bit programs designed for WEE, such as echo
/echo Hello World!
Note: This uses the echo executable for grub4dos which also runs under WEE. The echo commans is not an inbuilt command of wee.
Using an mbr/bin fileIf you want to run grub4dos from a Windows 7 system that uses BitLocker, you cannot place the grldr file on the encrypted BitLocker system partition because the volume will be encrypted and therefore not recognised by grub4dos. Also grub4dos expects to find the grldr on the boot partition and nowhere else. You can however boot to WEE because bootmgr allows you to specify an MBR file in the BCD and then load grldr from a different partition. grldr will not work when loaded by bootmgr but WEE will. The boot flow looks like this:
MBR (normal Win7 type) -> bootmgr -> reads BCD -> load weegrldr.mbr -> internal wee menu tells wee to load grldr from 2nd partition -> grldr loads and runs grub4dos -> menu.lst is read and displayed -> user selects menu entry...
First create a weemenu.txt file which will just load grldr as follows:
weesetup -s weemenu.txt -o weegrldr.bin
This will create a weegrldr.bin file. Now use EasyBCD to add a boot entry to Windows BCD or do it the hard way using BCDEdit.
Adding WEE to your Windows 7/Vista/SVR2K8 boot menu using EasyBCD
Thats it, the WEE entry should now be present in the boot menu when you next boot your system to Windows!!
Adding WEE to Windows 7/Vista/SVR2K8 using BCDEdit
Thats it, the WEE entry should now be present in the boot menu when you next boot your system to Windows!! |




