PDA

View Full Version : kernel deleted



maurer
14th May 2007, 09:05 AM
I accidently deleted my kernel (a forced upgrade).
How can i reinstall it from the command line prompt of the DVD?

Kirurgs
14th May 2007, 09:10 AM
Can U explain that in more detail?

maurer
14th May 2007, 09:15 AM
Can U explain that in more detail?
well....I wanted to install the wifi module....and i had to upgrade my kernel.
the kernel upgraded, but it was i586 due to the bug in anaconda for FC6.
So I saw on a forum how to force uninstall and download the new kernel for i686.
I did every thing like it was explained there....but when i rebooted the pc...i won't boot my FC6

stevea
14th May 2007, 09:32 AM
You may or may not have deleted your kernel.
Boot the distro disk in rescue mode, cd to the hd files system and see what is in your boot directory and whats in the boot/grub/grub.conf

lmo
14th May 2007, 03:20 PM
Maybe the previous kernel is still on the system, and you can hunt for it. If you can find the previous kernel and boot it, then you can use yum to install the kernel you want.

In grub, the <TAB> key reveals the possible choices.

Here is an annotated mock run:

GNU GRUB version 0.97
...
.......... some menu ......
...
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, 'e' to edit the
commands before booting, 'a' to modify the kernel arguments
before booting, or 'c' for a command-line.


PRESS 'c' for a command-line

grub>root (<TAB>
Possible disks are: hd0 hd1

grub>root (hd0<TAB>

grub>root (hd0,<TAB>
Possible partitions are:
Partition num: 0, Filesystem type is fat, partition type 0xc
Partition num: 4, Filesystem type is fat, partition type 0xc
Partition num: 5, Filesystem type unknown, partition type 0x7
Partition num: 6, Filesystem type is ext2fs, partition type 0x83
Partition num: 7, Filesystem type unknown, partition type 0x82
Partition num: 8, Filesystem type is ext2fs, partition type 0x83
Partition num: 9, Filesystem type is ext2fs, partition type 0x83

grub>root (hd0,6)

grub>kernel /vmlinuz-2.6.<TAB>
Possible files are: vmlinuz-2.6.21 vmlinuz-2.6.20-1.2944.fc6 vmlinuz-2.6.18-1.
2798.fc6

grub>kernel /vmlinuz-2.6.21 root=/dev/hde9
[Linux-bzImage, setup=0x1e00, size=0x1de774]

grub>initrd /initrd-2.6<TAB>
Possible files are: initrd-2.6.18-1.2798.fc6.img initrd-2.6.20-1.2944.fc6.img
initrd-2.6.21.img

grub>initrd /initrd-2.6.21.img

grub>boot