|
yum update kernel* = deleted grub??
Hello All,
I am having a very frustrating chain of problems...
I have a dual boot box running Redhat 9 and windowsXP. Was all working well before I
fiddled with it!
First I was trying to install the drivers for my new usb wireless adaptor and having
no sucess at all.
So I decided I was using an old kernel 2.4.20-8 and it was time to update to
2.4.20-30.9. I have used yum to upgrade a couple of other things and it went fine, so
I decided to do it with
yum update kernel*
downloaded and installed the kernel and kernel source but when I went to restart the
comp. I got the grub 0.93 prompt, to which I could not boot anything. Luckily I had
made a 2.4.20-8 boot image disk, so i could still get back into redhat with the bootdisk.
I noticed the /boot/grub/grub.conf file was completely empty, which I found strange. I tried to rewrite it manually, but everytime I reboot I just get "GRUB GRUB" at the top left hand corner of the screen, and then nothing happens?
XP runs on the first harddrive hda or hd0
the linux /boot dir. is on hdb (hd1) on the 2nd partition, I believe.
this is my /boot/grub/grub.conf
----
#my rewritten grub file of 28th march 2004
default=0
timeout=10
splashimage=(hd1,1)/grub/splash.xpm.gz
title Redhat Linux (2.4.20-8)
root (hd1,1)
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.20-8.img
title Redhat Linux (2.4.20-30.9)
root (hd1,1)
kernel /vmlinuz-2.4.20-30.9 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.20-30.9.img
title Windows XP
rootnoverify (hd0,0)
chainloader +1
----
output from /boot/grub/device.map
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
----
output from df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hdb3 12G 7.1G 3.9G 65% /
/dev/hdb2 99M 15M 80M 16% /boot
none 251M 0 251M 0% /dev/shm
----
I have been trying by trial and error to get the grub.conf settings right, but it is driving me crazy!!
Can anybody help??
Thanks in advance
Lucas
|