View previous topic :: View next topic |
Author |
Message |
stan_the_fisher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Apr 2006 Posts: 30
|
Posted: Sun May 14, 2006 12:30 pm Post subject: Kernel upgrade = can't boot |
|
|
I made my own kernel yesterday which i finished today. I then edited my "grub.conf" file for my new kernel. I rebooted and it said "kernel panic". So now I am using my knoppix cd to write you this. I tryed editing my grub.conf with knoppix and it is write protected. Is there another way I can switch back to my old kernel? I really don't want to reinstall gentoo. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
mirojira l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 18 Feb 2006 Posts: 685
|
Posted: Sun May 14, 2006 1:28 pm Post subject: |
|
|
In order to switch back to your old kernel you should make
ln -s <your_old_kernel>
If you are not allowed to edit your grub.conf, enter to gentoo using chroot as described in Gentoo Handbook. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
davidgurvich Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/40413733143759aa4c3db2.jpg)
Joined: 23 Apr 2004 Posts: 1063
|
Posted: Sun May 14, 2006 1:38 pm Post subject: |
|
|
Unless you deleted the old kernel you should have no problems. During grub boot exit to the grub command prompt. Then do the following
Code: | root (hd0,0)
kernel old-kernel-name root=/dev/hdXY
initrd old-initrd-name |
The first line is the boot partition, modify for your system. If you have no separate boot partition then change the kernel and initrd lines to reflect that and use the root partition for the 'root (hd0,0)' line.
Code: | kernel /boot/old-kernel-name root=/dev/hdXY
initrd /boot/old-initrd-name | If you are not sure of the exact data to put in you can use TAB-completion to determine the correct values.
Once all those lines are entered on the grub command line, then type the last command |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
stan_the_fisher n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 29 Apr 2006 Posts: 30
|
Posted: Sun May 14, 2006 5:22 pm Post subject: |
|
|
I got it working now thanx for the help
gentoo forums are the best ![Exclamation :!:](images/smiles/icon_exclaim.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|