Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to find what the kernel version is?
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
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 10:18 am    Post subject: How to find what the kernel version is? Reply with quote

Hi, first of all, I'm new to gentoo and am not that experienced with anything as advanced as gentoo, however I can manage pretty well, and so far I've been doing good in the installation phase.

This is a really small problem that is probably really stupid, but I just can't figure out what my kernel version is

So far, I'm up to the Kernel modules part of the Configuring the Linux kernel section of the install. I've been following the handbook really close, and have barely deviated at all. I decided to compile the kernel myself, and added a few extra drivers that I needed for my system and that is it. Now it asks me to imput my 'kernel version' in 'root #find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko' | less'. I never took note of my kernel version. How do I find it?
Thanks for the help :)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jan 03, 2016 10:40 am    Post subject: Reply with quote

Technologicallychallenged ... welcome to gentoo.

For the currently booted kernel, 'uname -r'.

Code:
# /lib/modules/$(uname -r)/ -type f -iname '*.o' -or -iname '*.ko' | less

However, as the kernel is a package, and managed by 'eselect', you could also look and see what the current link points to:

Code:
# eselect kernel list

... the item with the '*' (asterisk) is the kernel /usr/src/linux is pointing to.

HTH & best ... khay
Back to top
View user's profile Send private message
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 11:03 am    Post subject: Reply with quote

khayyam wrote:
Technologicallychallenged ... welcome to gentoo.

For the currently booted kernel, 'uname -r'.

Code:
# /lib/modules/$(uname -r)/ -type f -iname '*.o' -or -iname '*.ko' | less

However, as the kernel is a package, and managed by 'eselect', you could also look and see what the current link points to:

Code:
# eselect kernel list

... the item with the '*' (asterisk) is the kernel /usr/src/linux is pointing to.

HTH & best ... khay

Thanks for helping :).
I used the second line of code to find the kernel version, it came up with only 1 result, "linux-4.1.12-gentoo", and yet when I imput "linux-4.1.12-gentoo", or "4.1.12" as the kernel version, nothing comes up. Why is this?
Back to top
View user's profile Send private message
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 11:07 am    Post subject: Reply with quote

I also used the $(uname -r) thing, but still nothing.
It subbed the kernel version as 4.0.5-gentoo though.
Back to top
View user's profile Send private message
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 11:09 am    Post subject: Reply with quote

Also, it says to 'List the modules that need to be loaded automatically in /etc/conf.d/modules'. How do I know which modules need to be loaded automatically?
Back to top
View user's profile Send private message
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 11:13 am    Post subject: Reply with quote

Sorry, it turns out that the version is 4.1.12-gentoo, I found it by listing the contents of /lib/modules/
Back to top
View user's profile Send private message
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 11:16 am    Post subject: Reply with quote

still though, how do I know which modules need to be loaded automatically?
Back to top
View user's profile Send private message
Technologicallychallenged
n00b
n00b


Joined: 03 Jan 2016
Posts: 9

PostPosted: Sun Jan 03, 2016 11:21 am    Post subject: Reply with quote

Don't worry, I just found this thread https://forums.gentoo.org/viewtopic-p-7821510.html?sid=019683b54a51f2561d71d682f8e8bbb7
Thanks for the help :)
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