Compile and install the new kernel on Ubuntu 14.04.1 LTS
1. kernel configuration
I don't want to configure it one by one here, so I will directly copy the current kernel configuration of Ubuntu 14.04.1 LTS.
First cd to the root directory linux-3.15.8 of the kernel source code to compile, then copy the kernel configuration in the current ubuntu system as the new kernel configuration
Cp/boot/config-3.13.0-32-generic./. config
Sudo make oldconfig
Haha, I found that I didn't steal too much laziness, or I had to pick out a bunch of new configuration options. It is estimated that the new kernel version is indeed a lot higher. However, selecting n is complete, because the old kernel configuration is enough for my machine to work.
2. Compile and install
Sudo make ----- make directly without adding any parameters, that is, make all, which contains make modules.
Sudo make modules_install ----- install modules under/lib/modules
Sudo make install ----- install bzimage under/boot, and it automatically adds the startup Item of the newly installed kernel to/boot/grub according to the kernel version information under/boot. cfg.
So far, compilation and installation are complete. You only need to restart your computer and you will find that Ubuntu has two versions of kernel available at startup. Enjoy it!
After the restart, select the new version of the kernel, and then view the kernel version information, cat/proc/version
Linux version 3.15.8 (root @ jack) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) #1 SMP Mon Aug 4 01:51:38 CST 2014
Look, the current kernel is newly compiled and installed.
3. Delete the kernel startup Item
If you want to delete the kernel version compiled and installed by yourself in the GRUB startup Item, you only need to delete the related items copied during installation in the/lib/modules and/boot directories. Then
Call sudo update-grub, which automatically deletes the startup Item of the corresponding kernel version in/boot/grub. cfg.
Last note:
Sudo make install
This command copies the "arch/x86/boot/bzImage" file in the compiling folder to "/boot", and also copies config and System. the map file will eventually contain more files in "/boot:
System. map-3.15.8
Vmlinuz-3.15.8
Initrd. img-3.15.8
Config-3.15.8
Install Ubuntu 14.10 on a USB flash drive
Official release and download of Ubuntu 14.10
How to upgrade Ubuntu 14.04 LTS to Ubuntu 14.10
The Ubuntu 13.10 (Saucy Salamander) Kernel has been upgraded to Linux Kernel 3.10 RC5
Linux Kernel 3.4.62 LTS is now available for download
How to install Linux kernel 13.10 On Ubuntu 3.12
How to install the 3.16.7 CKT2 kernel in Ubuntu 14.10, Ubuntu 14.04, and its derivative versions
Linux Kernel: click here
Linux Kernel: click here