Revision [10003]
This is an old revision of GRUBforDOS made by coolpup on 2010-10-22 12:09:39.
Recommended for frugal Puppy installations on U.S.B. flash drives formatted with NTFS.
Three files are required bootlace.com, grldr, and menu.lst:
http://download.gna.org/grub4dos/
Using GRUBforDOS
Choose either (a) or (b):
- (a) replace the existing M.B.R. boot code by installing the GRUBforDOS boot code
- (b) continue to use the existing M.B.R. boot code from Microsoft Windows
Replacing the existing M.B.R. boot code by installing the GRUBforDOS boot code
1. execute the following command to install GRUB for DOS boot code to the M.B.R. of the target drive:
./bootlace.com /dev/sda
References
http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial
http://code.google.com/p/grub4dos-chenall/downloads/list
Appendix
BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system. Usage: bootlace.com [OPTIONS] DEVICE_OR_FILE 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:
# 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 i915.modeset=1 video=640x480 pfix=fsck,copy max_loop=28 debug earlyprintk=vga loglevel=7 initcall_debug time apic=debug initrd /pup-f006/initrd.gz title Puppy 5 find --set-root --ignore-floppies /pup-5/initrd.gz kernel /pup-5/vmlinuz pmedia=usbflash pdev=sda1 psubdir=pup-5 i915.modeset=1 video=640x480 pfix=fsck,copy max_loop=28 debug earlyprintk=vga loglevel=7 initcall_debug time apic=debug initrd /pup-5/initrd.gz title QuickSet find --set-root --ignore-floppies /pup-qs/initrd.gz kernel /pup-qs/vmlinuz pmedia=usbflash psubdir=pup-qs initrd /pup-qs/initrd.gz title Quirky find --set-root --ignore-floppies /pup-q/initrd.gz kernel /pup-q/vmlinuz pmedia=usbflash psubdir=pup-q initrd /pup-q/initrd.gz title Wary find --set-root --ignore-floppies /pup-w/initrd.gz kernel /pup-w/vmlinuz pmedia=usbflash psubdir=pup-w initrd /pup-w/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 commandline title Grub4Dos command-line interface\n(for experts only) commandline title Restart System reboot title Terminate System halt
Categories
CategoryDocumentationCategorySoftware