# # grub boot menu config file # allows another (DOS-) Partition to be the first primary one, # without beeing accessable or modifiable from ME. # # Hard disk partitions this script is written for: # hd0,0 : DOS-Partition # hd0,1 : Linux partition # hd0,2 : Linux swap partition # hd0,3 : original, shrunked ME partition # # Copyright 2003 Michael Besteck (a.b.c@gmx.net) # License: GPL # Details: http://ContemporaryCodes.com/LinuxOnGericom/index.html # # IT IS WISE TO MAKE A BOOTDISK FIRST: sudo /sbin/mkbootdisk `uname -r` # default saved # timeout 10 # fallback 1 # color yellow/blue light-red/black unhide (hd0,0) unhide (hd0,3) parttype (hd0,0) 0x06 parttype (hd0,3) 0x0c # # # LINUX RedHat 7.3 # title LINUX (RedHat 7.3) ### FOR PSW=: password --md5 root (hd0,1) kernel (hd0,1)/boot/vmlinuz root=/dev/hda2 savedefault # # # DR-DOS 7.03 # title DR-DOS 7.03 ### FOR PSW=: password --md5 hide(hd0,3) root (hd0,0) makeactive chainloader +1 savedefault # # # Win ME # title Win ME ### FOR PSW=: password --md5 parttype (hd0,0) 0xbe hide(hd0,0) root (hd0,3) makeactive chainloader +1 savedefault # # # title _______________________________________________________________________ setkey # # title Disk drive A: hide(hd0,3) # pause Insert disk now, then press [ENTER] !! rootnoverify (fd0) chainloader +1 savedefault # # title REBOOT (a CD) pause Optionally insert CD and adjust BIOS on reboot, press [ENTER] to reboot now !! reboot # # title _______________________________________________________________________ setkey # # title colour set A color yellow/blue light-red/black # # title colour set B color light-green/brown blink-light-red/black # # title _______________________________________________________________________ setkey # # title unhide all partitions unhide (hd0,0) unhide (hd0,1) unhide (hd0,2) unhide (hd0,3) parttype (hd0,0) 0x06 parttype (hd0,3) 0x0c # # title _______________________________________________________________________ setkey # # title install GRUB on the 1st HDD (hd0) - MBR with root on Linux partition root (hd0,1) install /boot/grub/stage1 d (hd0) /boot/grub/stage2 p /boot/grub/menu.lst # # title _______________________________________________________________________ setkey # # title install GRUB on the 1st HDD (hd0) - MBR with root on Win partition root (hd0,3) install /boot/grub/stage1 d (hd0) /boot/grub/stage2 p /boot/grub/menu.lst # # # eof