When installing CentOS 4, I chose GRUB as the boot loader. Installed KDE 3.3 and went configuring further.
Then I upgraded to KDE 3.4.1 using CentOS RHEL rpms, and since KDE 3.4.1 uses LILO natively, it switched the boot loader to LILO.
Then, at 5 AM, tired as hell, I made a rather stupid thing - grub install and rebooted the machine.
Got to grub> shell and since it was already a morning and I needed my Windows XP to be bootable for the morning, I did a fixmbr to at least be able to use Windows the next day (the machine being a dual boot).
Now, booting the system from CentOS 4 CD and choosing linux rescue finds a CentOS install normally, and mounts it as /mnt/sysimage. From there I can navigate to old system ie. I can get to old GRUB files and grub.conf. And typing grub from there gets me a grub> shell.
Now I need to restore GRUB multi-boot as was before, but searching the internet really gives me a zillion different howtos, and I need to be very careful doing this.
My partition structure is the following:
/hda1 ---> NTFS with WinXP, originally boot loader was here
/hda2 ---> NTFS, WInXP temp partition, not to be touched
/hdb1 ---> NTFS, Works files, not to be touched
/hdb2 ---> NTFS, Archives, not to be touched
/hdb3 ---> NTFS, not to be touched
/hdb4,5,6 ---> Linux partitions
How do I proceed to restore GRUB?
My menu.lst is as follows:
Code:
#boot=/dev/hda
default=2
timeout=10
splashimage=(hd1,4)/grub/splash.xpm.gz
hiddenmenu
title CentOS 4.1 (2.6.9.-11.EL)
root(hd1,4)
kernel /vmlinuz-2.6.9-11.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9.-11.EL.img
title CentOS 4.0 (2.6.9.-5.0.3.EL)
root(hd1,4)
kernel /vmlinuz-2.6.9.-5.0.3.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.9.-5.0.3.EL.img
title Windows XP
rootnoverify(hd0,0)
chainloader+1