Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel recompiled: Grub2 question{SOLVED}
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

Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Thu Apr 23, 2015 12:54 pm    Post subject: kernel recompiled: Grub2 question{SOLVED} Reply with quote

Hello all,

Ok, I think I have my kernel updated to use the proper megaraid drivers.

I did a make && make modules_install

make install

This seemed to do just fine.

I then figured to redo grub2 to set it up to use the new kernel.

I ran:

(chroot) livecd linux # grub2-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.18.11-gentoo
Found linux image: /boot/vmlinuz-3.18.11-gentoo.old

So, the old kernel that didn't work is there...along with the new. Looking at the /boot directory I have:

(chroot) livecd linux # ls -l /boot
total 17100
-rw-r--r-- 1 root root   93594 Apr 23 02:46 config-3.18.11-gentoo
-rw-r--r-- 1 root root   93547 Apr 21 11:28 config-3.18.11-gentoo.old
drwxr-xr-x 5 root root    1024 Apr 23 02:48 grub
drwx------ 2 root root   12288 Apr 20 10:59 lost+found
-rw-r--r-- 1 root root 3020578 Apr 23 02:46
-rw-r--r-- 1 root root 3018862 Apr 21 11:28
-rw-r--r-- 1 root root 5595104 Apr 23 02:46 vmlinuz-3.18.11-gentoo
-rw-r--r-- 1 root root 5596672 Apr 21 11:28 vmlinuz-3.18.11-gentoo.old

Just wondering for housecleaning to keep things neat...would the proper thing be to go into /boot and remove

rm config-3.18.11-gentoo.old vmlinuz-3.18.11-gentoo.old

And at that point rerun the command:
grub2-mkconfig -o /boot/grub/grub.cfg

This grub2 is new to me, so just making sure I'm doing the right steps to fully clean out bad kernel attempts.

Thank you,

Light travels faster than sound. This is why some people appear bright until you hear them speak.........

Last edited by cayenne on Thu Apr 23, 2015 1:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham

Joined: 08 Mar 2005
Posts: 10456
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Apr 23, 2015 1:30 pm    Post subject: Reply with quote

What you suggest is fine, once you know the new kernel will boot. "make install" creates these backups so you'll still have something bootable left around as you make changes.

- John
I can confirm that I have received between 0 and 499 National Security Letters.
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