Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not able to boot from the Updated Kernel
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
manu_leo
Apprentice
Apprentice


Joined: 20 Jan 2014
Posts: 223
Location: India

PostPosted: Wed Jan 27, 2016 6:46 am    Post subject: Not able to boot from the Updated Kernel Reply with quote

Hi Experts,

I recently upgraded the kernel version from 3.17.7 to 4.1.15. Soft link fro /usr/src/linux now points to this new kernel linux-4.1.15-gentoo-r1. I then copied the old kernel config to the new one using
Quote:
cp /boot/config-3.17.7-gentoo /usr/src/linux/.config


Then rebuild my .config file using :-
Quote:
cd /usr/src/linux
make silentoldconfig


The /boot location has
Quote:
config-3.17.7-gentoo
System.map-3.17.7-gentoo.old
config-3.17.7-gentoo.old
vmlinuz-3.17.7-gentoo
grub
vmlinuz-3.17.7-gentoo.old


I am now stuck here. When I reboot my server, it still boots using the old kernel which is expected because I donot see any entry for vmlinuz-4.1.15-gentoo-r1. How can I get this fixed.

Need your expert advice as to how to get this fixed. Appreciate all your help in future.

Thanks.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1184
Location: Austria

PostPosted: Wed Jan 27, 2016 7:03 am    Post subject: Reply with quote

Did you take a look at Kernel Upgrade?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
manu_leo
Apprentice
Apprentice


Joined: 20 Jan 2014
Posts: 223
Location: India

PostPosted: Wed Jan 27, 2016 8:12 am    Post subject: Reply with quote

Thanks for looking into it, I did followed the exact same link.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1184
Location: Austria

PostPosted: Wed Jan 27, 2016 8:17 am    Post subject: Reply with quote

So did you build the kernel and copy it over to /boot and did you also modify your boot manager's configuration file, e.g., /boot/grub/grub.cfg?
_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
manu_leo
Apprentice
Apprentice


Joined: 20 Jan 2014
Posts: 223
Location: India

PostPosted: Wed Jan 27, 2016 9:01 am    Post subject: Reply with quote

Thanks Massimo, I did build the kernel and copied it over to /boot location. However I am not really sure how to modify the /boot/grub/grub.cfg file to make this new kernel as the default one and keep the old kernel as well as a Failover option.

Appreciate all your help.
Back to top
View user's profile Send private message
massimo
Veteran
Veteran


Joined: 22 Jun 2003
Posts: 1184
Location: Austria

PostPosted: Wed Jan 27, 2016 9:57 am    Post subject: Reply with quote

You can generate a new grub.cfg using grub2-mkconfig, e.g.,
Code:

# grub2-mkconfig -o /boot/grub/grub.cfg

_________________
Hello 911? How are you?
Back to top
View user's profile Send private message
Buffoon
l33t
l33t


Joined: 17 Jun 2015
Posts: 680
Location: EU or US

PostPosted: Wed Jan 27, 2016 4:11 pm    Post subject: Reply with quote

I name my new kernel bzImage and my old kernel bzImage.old, never need to reconfigure GRUB.
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