to boot to linux from a grub prompt you need to know the location of the kernel image, and the hdd & partition name
for example, my linux is installed on /dev/hda5 and kernel is in /boot/vmlinuz
i use these from a grub console at startup to boot to linux
root (hd0,4) #note that the partition number and hard drive numbers start at 0 instead of 1
kernel /boot/vmlinuz
boot
for xp i use the following (xp is on hda4)
rootnoverify (hd0,3)
makeactive
chainloader +1
boot
to get back the selection, you need a file in your /boot/grub directory usually, named depending on your distro...for the officla grub it is called menu.lst. Then just add these sections to that file and it will give you the menu at bootup instead of the prompt...for my settings above, this is my menu.lst:
default 0
timeout 10
title Slackware (2.6)
root (hd0,4)
kernel /boot/vmlinuz-2.6.3
title Slackware (2.4)
root (hd0,4)
kernel /boot/vmlinuz ro root=/dev/hda5 hdd=ide-scsi
title Windows XP
rootnoverify (hd0,3)
makeactive
chainloader+1
Last edited by Farmchild; 03-15-2004 at 12:43 PM.
|