Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel upgrade = can't boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
stan_the_fisher
n00b
n00b


Joined: 29 Apr 2006
Posts: 30

PostPosted: Sun May 14, 2006 12:30 pm    Post subject: Kernel upgrade = can't boot Reply with quote

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
View user's profile Send private message
mirojira
l33t
l33t


Joined: 18 Feb 2006
Posts: 685

PostPosted: Sun May 14, 2006 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sun May 14, 2006 1:38 pm    Post subject: Reply with quote

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
Code:
boot
Back to top
View user's profile Send private message
stan_the_fisher
n00b
n00b


Joined: 29 Apr 2006
Posts: 30

PostPosted: Sun May 14, 2006 5:22 pm    Post subject: Reply with quote

I got it working now thanx for the help :D

gentoo forums are the best :!:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum