Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Re-installing kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Nov 06, 2015 3:31 pm    Post subject: Re-installing kernel Reply with quote

Good morning all!

After a Gentoo install on one of my office machines, I realized I forgot to include in my kernel the proper ethernet module. I'm trying to rebuild the kernel with this module, but after uname -a it still points to yesterday's build, and I can't remember how to get it to point to the new build. All I used was the installation handbook to rebuild the kernel, then make install and rebuilt grub. Any help is appreciated
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Fri Nov 06, 2015 3:32 pm    Post subject: Reply with quote

Did you mount the /boot before install?
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Nov 06, 2015 3:33 pm    Post subject: Reply with quote

Yes, the install went fine, when I booted into the new system, there was no network and that's when I realized I forgot to include the driver in the kernel.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Fri Nov 06, 2015 3:37 pm    Post subject: Reply with quote

Buffoon wrote:
Did you mount the /boot before install?


Let me re-phrase. Did you mount /boot before you re-installed kernel?
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Nov 06, 2015 3:40 pm    Post subject: Reply with quote

If you don't mind, give me the code, cause all I did was cd to /usr/src/linux and rebuilt the kernel
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Fri Nov 06, 2015 3:47 pm    Post subject: Reply with quote

In your initial post you mentioned you did make install. If you have separate /boot partition you need to mount it before make install and updating your bootloader.
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Nov 06, 2015 3:50 pm    Post subject: Reply with quote

No I don't have a separate partition
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Fri Nov 06, 2015 3:53 pm    Post subject: Reply with quote

Then it is down to your booloader configuration.
Back to top
View user's profile Send private message
logical_guy
Apprentice
Apprentice


Joined: 18 Sep 2007
Posts: 265

PostPosted: Fri Nov 06, 2015 3:55 pm    Post subject: Re: Re-installing kernel Reply with quote

FrankRizz0 wrote:
... All I used was the installation handbook to rebuild the kernel, then make install and rebuilt grub. Any help is appreciated


I'm pretty sure there is no need to rebuild grub. You should just need to reconfigure it, as explained in the Handbook.
Back to top
View user's profile Send private message
FrankRizz0
l33t
l33t


Joined: 29 Nov 2006
Posts: 617

PostPosted: Fri Nov 06, 2015 4:06 pm    Post subject: Reply with quote

so turns out reinstalling will be quicker......
Back to top
View user's profile Send private message
Syl20
Guru
Guru


Joined: 04 Aug 2005
Posts: 564
Location: France

PostPosted: Fri Nov 06, 2015 5:15 pm    Post subject: Reply with quote

What does
Code:
# ls -l /boot
# ls -l /boot/grub

say ?
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Fri Nov 06, 2015 5:50 pm    Post subject: Reply with quote

FrankRizz0 wrote:
so turns out reinstalling will be quicker......


...but you won't learn anything from doing that. And in fact once you learn what to do, fixing it the right way will be far quicker. :)

I'd start with doing what "CneGroumF" asks. Generally we need to make sure you are compiling the right kernel with the right options that you think you are. Then we should check to make sure it is appearing in boot and that your boot loader is configured to boot to it. It sounds hard but once you get it, you get it and it becomes easy.
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


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

PostPosted: Fri Nov 06, 2015 7:09 pm    Post subject: Reply with quote

FrankRizz0 wrote:
so turns out reinstalling will be quicker......


Sure, reinstall is what you need. 8O
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Sat Nov 07, 2015 12:12 am    Post subject: Re: Re-installing kernel Reply with quote

logical_guy wrote:
FrankRizz0 wrote:
... All I used was the installation handbook to rebuild the kernel, then make install and rebuilt grub. Any help is appreciated


I'm pretty sure there is no need to rebuild grub. You should just need to reconfigure it, as explained in the Handbook.


If the kernel is the same version number you don't need to reconfigure grub either.

Verify the install by "ls -l /boot" and looking for the kernel's date. I'm assuming this is a manual kernel build so "ls -l /boot/vmlinuz*" probably will give a shorter list.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7071

PostPosted: Sat Nov 07, 2015 8:10 am    Post subject: Reply with quote

FrankRizz0 wrote:
If you don't mind, give me the code, cause all I did was cd to /usr/src/linux and rebuilt the kernel


In order to install the kernel you have to actually install the kernel in /boot
That's why people keep asking if you did mount /boot before installing your kernel.

But my question is more basic: did you actually even try to install the kernel ; going in /usr/src/linux and rebuilding a kernel is just building a kernel.
You must either copy that kernel to /boot "cp..." (hence the don't forget to mount /boot first) or do "make install" that will mount /boot and copy the kernel to /boot for you.

To makes everything crystal clear then: did you copy/install that kernel?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Sat Nov 07, 2015 9:32 am    Post subject: Reply with quote

FrankRizz0,

Code:
uname -a
will tell you the kernel you are using.
Code:
$ uname -a
Linux NeddySeagoon_Static 4.2.0-gentoo-r1 #1 SMP PREEMPT Tue Sep 22 21:09:01 BST 2015 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linu


That's 4.2.0-gentoo-r1, the #1 build, built at Tue Sep 22 21:09:01 BST 2015
Pay attention to the date/time. If you have just made a new kernel, when its in use, the time/date will be nowish.
If you messed up the install and reboot, the time/date will still show the build time of your old kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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