Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

How to find what the kernel version is?

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

How to find what the kernel version is?

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 10:18 am

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 :)
Top
khayyam
Watchman
Watchman
User avatar
Posts: 6227
Joined: Thu Jun 07, 2012 2:45 am
Location: Room 101

  • Quote

Post by khayyam » Sun Jan 03, 2016 10:40 am

Technologicallychallenged ... welcome to gentoo.

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

Code: Select all

# /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: Select all

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

HTH & best ... khay
Top
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 11:03 am

khayyam wrote:Technologicallychallenged ... welcome to gentoo.

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

Code: Select all

# /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: Select all

# 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?
Top
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 11:07 am

I also used the $(uname -r) thing, but still nothing.
It subbed the kernel version as 4.0.5-gentoo though.
Top
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 11:09 am

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?
Top
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 11:13 am

Sorry, it turns out that the version is 4.1.12-gentoo, I found it by listing the contents of /lib/modules/
Top
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 11:16 am

still though, how do I know which modules need to be loaded automatically?
Top
Technologicallychallenged
n00b
n00b
Posts: 9
Joined: Sun Jan 03, 2016 10:12 am

  • Quote

Post by Technologicallychallenged » Sun Jan 03, 2016 11:21 am

Don't worry, I just found this thread https://forums.gentoo.org/viewtopic-p-7 ... 82f8e8bbb7
Thanks for the help :)
Top
Post Reply

8 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic