How to install GRUB bootloader without installing Linux?
I used GRUB4DOS for installing the GRUB Loader from within windows. I followed these steps.
- Downloaded the Grubinst 1.0.1 from http://sourceforge.net/projects/grub4dos/files/
- Double click on grubinst_gui.exe in admistrator mode.
- It will list the harddisks in the disk category. Select the disk where you want to install GRUB.
- Click the refresh button near the Part List and select "whole disk" option.
In the Options section select(tick mark) the option:
a: Dont search floppy drive
b: Timeout value of 2-5. Can be changed later in menu.lst
- Select the option to "install".
- Now copy the files named "grldr" in the C: drive. Dont put it in some folder as it would require changes in the configuration. Grub4Dos will look into each partition for this file.
- Now you need to configure the boot menu. Menu options are stored in menu.lst file. You have to create that file and save it along the glrdr.
Sample Menu.lst file. You can write the contents in the notepad and save it as menu.lst.
<------menu.lst starts below----- - Dont copy these lines>
title Microsoft Windows XP rootnoverify (hd0,0) chainloader //ntldr
title Microsoft Windows Vista/7 rootnoverify (hd0,1) chainloader /bootmgr
<------menu.lst starts ends - Dont copy these lines----->
Here the first primary partition is of Windows XP and second one is of Vista/7 which uses bootmgr as bootloader. These entries will vary based on the installation of OS. This is just an example.
Both GRuB 1 and GRUB4DOS can be installed without GNU/Linux.
- Make sure you mave "/boot/grub/*" files (mainly "stage2") in some partition accessible from GRuB 1. (vfat, ext*, reiserfs)
- Boot some grub 1 (from floppy, from cdrom).
- Make sure you have "/GRLDR" somewhere (on vfat, ext*, reisers, NTFS).
bootlace.com your_drivefrom DOS, Windows or some Linux. (You can do bootlace in Windows (not sure about Windows 7) by copying first N sectors of hard drive to a file, applying bootlace to that file and copying sectors back to drive).
You can also use some virtual machine (qemu, VirtualBox, VMWare) to run little linux and set up any grub in sane way and test if it works fine before rebooting.