Questions tagged [linux-kernel]

This tag is for questions about the internals of the Linux kernel itself - particularly about use or configuration of kernel modules or drivers.

Questions about userspace applications in Linux should generally be tagged linux instead.

Since the internals of the Linux kernel are constantly changing, it is helpful to include the precise kernel version(s) that you are interested in.

499 questions
55
votes
5 answers

How to get a list of active drivers that are statically built into the linux kernel?

While I can use lsmod in order to show currently active kernel modules, how can I see which drivers are statically built into the kernel AND currently active?
JohnnyFromBF
  • 5,068
54
votes
5 answers

How to sign a kernel module Ubuntu 18.04

I am new to using Ubuntu. I am trying to install Genymotion so I can have access to an android emulator. In order to use Genymotion, it is required I have VirtualBox. I have VirtualBox installed but it seems as if I need to sign a kernal module...…
aty0
  • 641
49
votes
5 answers

Is it possible to make the OOM killer intervent earlier?

I try to tweak my development system to maximal reliability. I disabled swap, because for GUI usage it mostly renders the machine unresponsive in such a way not useable anymore. Nevertheless, if agressive appications eat up the memory, some…
dronus
  • 1,978
40
votes
2 answers

Directory - /sys in linux

What is going on inside the /sys directory on a Linux system?
user72789
  • 413
39
votes
7 answers

Unable to install VIrtualbox, `"Specify KERN_DIR="` -- installing Virtual Box to Debian?

I am getting this error: Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR= and run Make again. Stop. Basically I'm doing: $ sudo /etc/init.d/vboxdrv setup Removing existing VirtualBox non-DKMS…
hhh
  • 703
  • 3
  • 9
  • 18
35
votes
5 answers

What does "sudo -s" actually do?

I am using ubuntu 10.04. I notice that after I run in terminal: sudo -s The prompt changed from: my_user@my_hostname to: root@my_hostname Seems it changed to root privilege. But when I check the documentation of sudo command here, it explains…
Leem
  • 523
35
votes
3 answers

Why does the Linux SCSI subsystem drive hardware not obviously related to SCSI?

Without knowledge, I would normally expect SATA, SCSI and USB Mass Storage to be driven by different drivers. In Linux however, the SCSI subsystem drives all of them. Why does Linux use the SCSI subsystem to drive even things not clearly related to…
mcendu
  • 543
35
votes
7 answers

VirtualBox Ubuntu Guest Additions not installing : modprobe vboxsf failed

I just installed this software off virtual box, i downloaded the ISO off the official ubuntu website, was the lastest LTS. I attempted to install Guest Additions using the 'Insert Guest Additions CD Image". Result: Verifying archive integrity... All…
Apthos
  • 451
  • 1
  • 4
  • 3
32
votes
1 answer

Enable user namespaces in Debian kernel

I'm trying to figure out how to enable user namespaces capability in my kernel (I think CAP_SYS_USER_NS). I'm using Debian Stretch, kernel 4.6.0-1-amd64. My assumption is there is a way to turn on user namespaces and recompile the kernel. After…
Senrabdet
  • 321
30
votes
1 answer

Where can I find the Linux kernel file?

Is there any common directory to find kernel file in all Linux distributions?if yes please tell me how to browse to the directory? Where can I find the Linux file in Ubuntu & RedHat operating systems?
25
votes
7 answers

How do I uncompress vmlinuz to vmlinux?

I have already tried uncompress, gzip, and all other solutions that come up as google results and these have not worked for me. To get just the image search for the GZ signature - 1f 8b 08 00. > od -A d -t x1 vmlinuz | grep '1f 8b 08 00' 0024576 24…
Lord Loh.
  • 1,034
23
votes
2 answers

How to check which SysRq functions are enabled?

The file /proc/sys/kernel/sysrq contains a single number, such as: 1 (enable all SysRq commands), 0 (disable all), or a base-10 positive integer which functions as a binary bitmask, enabling a subset of functions. Could someone please tell me…
user001
  • 3,994
21
votes
4 answers

How to view all boot messages in Linux after booting?

Relevant questions are: Where Linux places the messages of boot? Name of log file where boot process is logged However, these do not answer this question. This question is concerned with how all the boot messages can be viewed. This is for Gentoo,…
17
votes
2 answers

What is the exact difference between the parameters (pgpgin, pswpin) and (pswpout, pgpgout) in /proc/vmstat?

Please note that this question is specific to linux only. And by swap space, I mean the dedicated swap partition. I did google a bit on this, and found these definitions: Paging refers to writing portions, termed pages, of a process’ memory to…
13
votes
4 answers

Linux kernel hangs at 'Switching to clocksource tsc" on Pentium 4

Hardware: Dell Dimension 4500S : i845G, Pentium 4, stock + 2GB RAM and latest (circa 2002) BIOS update. I've been building a Linux system from source, so far it's LFS 7.0 by the book. The first kernel I built works fine, but has alot of fluff and…
1
2 3
33 34