Contents
How do I install a new Linux kernel?
The procedure to build (compile) and install the latest Linux kernel from source is as follows:
- Grab the latest kernel from kernel.org.
- Verify kernel.
- Untar the kernel tarball.
- Copy existing Linux kernel config file.
- Compile and build Linux kernel 5.6. …
- Install Linux kernel and modules (drivers)
- Update Grub configuration.
How do you restore a system after accidentally removing all kernels?
How to restore a system after accidentally removing all kernels?
- Open Terminal.
- Mount the Ubuntu partition: sudo mount /dev/sdXY /mnt.
- Mount some special partitions: sudo mount –bind /dev /mnt/devsudo mount –bind /proc /mnt/procsudo mount –bind /sys /mnt/sys.
- Chroot into the /mnt : sudo chroot /mnt.