Revision [10347]

This is an old revision of GRUBforDOS made by coolpup on 2010-10-30 09:47:56.


GRUB for DOS universal boot loader based on GNU GRUB

Three files are required, grldr, and menu.lst:

Using GRUBforDOS
First choose either (a) or (b):
./ /dev/sda

Then copy or move grldr and menu.lst to the root directory of the boot partition.


BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system.
Options: --read-only, --floppy[=N], --boot-prevmbr-first, --boot-prevmbr-last,
--no-backup-mbr, --force-backup-mbr, --mbr-enable-floppy, --mbr-disable-floppy,
--mbr-enable-osbr, --mbr-disable-osbr, --duce, --time-out=T, --hot-key=K, 
--preferred-drive=D, --preferred-partition=P, --sectors-per-track=S, --heads=H,
--start-sector=B, --total-sectors=C, --install-partition=I, --lba, --chs,
--fat12, --fat16, --fat32, --vfat, --ntfs, --ext2, --serial-number=SN,
--restore-mbr, --mbr-no-bpb, --chs-no-tune
DEVICE_OR_FILE: Filename of the device or image. For DOS, a BIOS drive number
(in hex 0xHH or decimal DDD format)can be used to access the drive.

Sample menu.lst for U.S.B. flash memory drive:
# menu.lst produced by grb4dosconf
color white/blue black/cyan white/black cyan/black
timeout 3
default 0
fallback 1

title Fluppy
  find --set-root --ignore-floppies /pup-f006/initrd.gz
  kernel /pup-f006/vmlinuz pmedia=**usbflash** pdev=sda1 psubdir=pup-f006
  initrd /pup-f006/initrd.gz

title Windows Vista/2008/7
  map (hd1) (hd0)
  map (hd0) (hd1)
  map --hook
  find --set-root --ignore-floppies /bootmgr
  chainloader /bootmgr

title Windows NT/2000/XP
  map (hd1) (hd0)
  map (hd0) (hd1)
  map --hook
  find --set-root --ignore-floppies /ntldr
  chainloader /ntldr

title Windows 9x/Me
  map (hd1) (hd0)
  map (hd0) (hd1)
  map --hook
  find --set-root /io.sys
  chainloader /io.sys

title Find Grub menu on HDD
  map (hd1) (hd0)
  map (hd0) (hd1)
  map --hook
  errorcheck off
  find --set-root --ignore-floppies --ignore-cd /menu.lst && configfile /menu.lst
  find --set-root --ignore-floppies --ignore-cd /boot/grub/menu.lst && configfile /boot/grub/menu.lst
  find --set-root --ignore-floppies --ignore-cd /grub/menu.lst && configfile /grub/menu.lst
  errorcheck on

title Grub4Dos command-line interface\n(for experts only)

title Restart System

title Shutdown System

There is one comment on this page. [Display comment]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki