Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introdution
This utility is used to install GRUB4DOS to the MBR of hard disk or image file.
Please note that these utilities only install MBR, it DOES NOT copy GRLDR to your
partition
or configure menu.lst, neither does it modify boot.ini to enable booting from the
NT boot
manager. To know more about such things, please refers to README_GRUB4DOS.txt which
contains
information about the GRUB4DOS package.
Also note that the current version of grubinst doesn't support modify the MBR of
hard disk
in Windows 95/98/ME. For those OSs, bootlace.com should be used instead.
In bootlace.com, hard disk device is represented by numbers, 0x80 is the first hard
disk,
0x81 is the second, etc. In grubinst, hard disk device is represented using special
filename, (hd0), (hd1), etc. Floppy device is not supported yet.
grubinst has a few new options which are used mainly to restore the old MBR.
--save-mbr=FILENAME
--restore-mbr=FILENAME
--restore-prevmbr
This option is used to restore the old MBR saved in the second sector of the hard
disk or
image file.
Normally, the original MBR is only one sector long, it's stored in the second
sector of the
new GRLDR MBR. You can restore it using --restore-prevmbr option. However, if the
original
MBR is longer than one sector, for instance, you have other boot manager installed,
then
GRLDR MBR dones't have room to hold it. In this case, you should use --save-
mbr=FILENAME
to save the original MBR to an external file, and use --restore-mbr=FILENAME to
restore it.
3. Usage
OPTIONS:
grubinst (hd0)
grubinst disk.dsk
Example 3: Restore the old one sector MBR of the first hard disk
Example 4: Install GRLDR MBR to the first hard disk, and save the old MBR as
MBR.sav
Example 6: Load GRUB only if you press space in the first 10 second of booting.
4. Compilation
To compile the program, you need the GCC toolkit in Linux/FreeBSD, and mingw or
Visual C++
6.0 in Windows NT/2K/XP.
make -f Makefile.mgw
nmake -f Makefile.vc6
make -f Makefile.lnx
make -f Makefile.bsd
The binary pacakge is built using mingw.
5. Website