Click to See Complete Forum and Search --> : deleting entries in GRUB


mrpurple
11-20-2002, 09:25 AM
each time I run Up2Date in RH8, and it upgrades the kernel, I get a new entry in the GRUB bootoader. Now I am up to 4 entries (3 for RH8, 1 for DOS).

How can I configure GRUB and get rid of the two older Kernels that I don't use?

Also, on another system I own, I have RH8 on the primary master drive and win on the primary slave. GRUB never saw the win partition (although RH* has no problem mounting the win drive). I have been booting to the OS I want from the MOTHERBOARD boot selector.

How can I get GRUB to add the WIN install to the bootloader after the install?

thanks for any help.

Icarus
11-20-2002, 11:00 AM
Zen and the Art of GRUB (http://linux-sxs.org/grubtg.html) is a very handy guide to learning GRUB...

To remove old listings you want to edit the /boot/grub/grub.conf or /boot/grub/menu.lst and delete the entries you want out

Adding the Win drive is simular (same file) but a little tricky...if Win is the first HD you need a section like this in the file...

title = Windows
root = (hd0,0)
makeactive
chainloader +1

Read the guide a few times and it'll all make since to you :)

wardc72
11-20-2002, 05:11 PM
As far as deleting GRUB entries, I am not too sure. As for the windoze option, I had a reply to a similar post I had, "Dual booting 2 HDD":If so, install the second drive on your IDE chain, making sure to properly set the Master/Slave jumper to the appropriate position.
Assuming that:
- the Linux drive is installed as the Primary Master drive
- the Windows drive will be installed in the Primary Slave position.
- the XP drive consists of only one partition.

If you use lilo as your bootloader, you would add the following stanza to /etc/lilo.conf (make a backup copy of the file before editing it!):

code:-------------------------------------------------------------------------------- other=/dev/hdb1
label=Windows
table=/dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80--------------------------------------------------------------------------------
After saving the file, execute /sbin/lilo to make the change take effect.


If you use Grub, add the following to /boot/grub/grub.conf:
code:-------------------------------------------------------------------------------- title windows
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1--------------------------------------------------------------------------------
You do not need to execute grub after saving the file.


Obviously, if your drive designations or partition schemes are different, you will have to adjust the drive/partition references accordingly.

mrpurple
11-22-2002, 09:53 AM
mahdi

Thanks and thanks. Once I knew where to look, it all made sense. Everything is back to normal and the planets are alligning quite nicely.

thanks again.

MrP

~3~