Questions tagged [kernel]

Linux is the name of the kernel used in Ubuntu as well as other GNU/Linux operating systems. Use this tag for questions related to upgrading and installing kernels, compiling, patches, and kernel modules.

An operating system kernel is the central part of the operating system, handling all main tasks. It is loaded into a protected area of memory at boot time. Kernel space, where the kernel carries out its tasks, and user space, where everything else happens, are kept separate. The /sys directory contains a virtual filesystem that provides a view of kernel data structures and objects from user space.

The Linux kernel is a monolithic kernel originally developed by Linus Torvalds, who still directs its development. The latest vanilla kernel can be downloaded from kernel.org, and Ubuntu kernels (patched by Ubuntu kernel team) are available from the Ubuntu mainline kernel ppa

The kernel is found in the /boot directory. When a new kernel is installed (for example, as part of a routine update and upgrade procedure) old kernels are not automatically removed, and over time the /boot directory becomes full, and this can cause serious problems if /boot is on a small separate partition. To prevent this, users should periodically run sudo apt autoremove to clean up (actually the initrd.img file for each kernel is larger than the kernel itself, but that is removed along with the kernel by autoremove). It is advisable to keep at least one "spare" older kernel. The user can select which kernel to boot from the GRUB menu. The newest kernel (with the highest release number) is booted by default.

The release number of the running kernel may by checked with the command uname -r

For more details, see the documentation maintained by the Ubuntu Kernel Team.

8710 questions
769
votes
40 answers

How do I remove old kernel versions to clean up the boot menu?

Every time I install a new Linux kernel, it gets left in the grub_config, making the boot menu longer each time. I know I can manually search through the installed packages and remove them. Does Ubuntu provide any easier way to clean them up or…
352
votes
8 answers

What is the safest way to clean up /boot partition?

I have 200 MB assigned for the /boot partition. Whenever I try to update the kernel, I receive an error message that basically states /boot is full. What can I do to cleanup /boot and remove/backup the older kernels?
koba101
  • 3,523
  • 3
  • 14
  • 4
324
votes
3 answers

What is hardware enablement (HWE)?

I see the linux-hwe-generic package as part of the kernels you can install in Ubuntu. What is hardware enablement (HWE)?
nelaaro
  • 10,338
317
votes
6 answers

Why is swap being used even though I have plenty of free RAM?

I thought the whole essence of swap was to act as a temporary storage safety net when RAM was full but my swap partition is constantly being used even though I sometimes have as much as 3GB free RAM. Is this normal?
Mysterio
  • 12,288
280
votes
12 answers

Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Upon trying to upgrade from 10.10 to 11.04 all seemed to go well until the restart. This error message is what comes up: Kernel Panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) How do we fix that?
Jeffrywith1e
  • 3,055
261
votes
3 answers

How do I add a kernel boot parameter?

I need to add the boot parameter foo=bar to my kernel. How can I do this once for testing, and permanently if testing was a success?
htorque
  • 66,086
183
votes
17 answers

How to update kernel to the latest mainline version without any Distro-upgrade?

Currently I'm running Linux-3.0 and I want to update it to Linux-3.3.1 the latest stable kernel release as mentioned at http://www.kernel.org. Can I update to 3.3.1 in Ubuntu without any risk of crashes? I'm updating my kernel regularly as provided…
Suchith JN
  • 2,181
165
votes
9 answers

Could not load 'vboxdrv' after upgrade to Ubuntu 16.04 (and I want to keep secure boot)

I upgrade from Ubuntu 15.10 to 16.04 and since then VirtualBox 5.0.18 isn't starting my VMs anymore. It complains that 'vboxdrv' isn't loaded. So I try to load it and get the following error: $ sudo modprobe vboxdrv modprobe: ERROR: could not insert…
jans
  • 1,935
163
votes
6 answers

What do the nomodeset, quiet and splash kernel parameters mean?

What do Kernel command line parameters (also also known as boot options) mean? When you go to Ubuntu (or better, GRUB) options, you have things like nomodeset, quiet and splash. What do these options mean? I am also interested in other parameters…
Star OS
  • 2,668
157
votes
3 answers

How do I re-run boot loader?

Running sudo apt-get -f install said that The link /vmlinuz.old is a damaged link and: you may need to re-run your boot loader[grub] Here's the full output: user@chrubuntu:~$ sudo apt-get -f install Reading package lists... Done Building dependency…
TevinYoungz
  • 1,581
  • 2
  • 10
  • 6
153
votes
7 answers

Can't upgrade due to low disk space on /boot

I try to do do-release-upgrade but then I get: Not enough free disk space The upgrade has aborted. The upgrade needs a total of 25.7 M free space on disk '/boot'. Please free at least an additional 25.7 M of disk space on '/boot'. Empty your…
clamp
  • 1,729
137
votes
5 answers

Why choose a low latency kernel over a generic or real-time kernel?

After installing Ubuntu Studio 12.04, I have found that it uses a low latency kernel. I searched for an explanation and how to change back it to a real-time or generic one. However, it looks like this part of Linux hasn't been covered to explain…
Starx
  • 5,353
132
votes
4 answers

kswapd0 is taking a lot of cpu

kswapd0 is taking 99.9% of my CPU as top shows me, the problem appeared today when gaming and first time it went away after 6 minutes and now it has been doing it for about 20 minutes. How is this fixable and what is causing this?
inimene
  • 2,236
131
votes
5 answers

How do I install kernel header files?

i want to write a device driver but not able to find the header file can someone please help me find them?Also if someone can point out some important site links that would be really appreciated
coder
  • 3,691
131
votes
7 answers

How do I find out the kernel version I am running?

The path to previous driver is usually /lib/modules//kernel/net/wireless I need this info so I can finish updating my STA Broadcom wireless. However, I'm a noob at Ubuntu and I'm not sure how to find the kernel version or kernel. I…
barry
  • 1,313
1
2 3
99 100