Linux changes the kernel startup sequence
1. Modify the kernel startup sequence of RHEL6/CentOS6
Check the /etc/grub.conf file to determine the system kernel status. According to the document, there are two kernel versions in the system, namely 2.6.32-573.18.1.el6.x86_64 and 2.6.32-431.23.3.el6.x86_64. Kernel versions are listed from top to bottom.
In the grub.conf file, you can decide which kernel version to use when the system starts by adjusting the default parameters. The default value is 0, which means the system will boot the latest kernel version. A value of 0 corresponds to the first kernel version listed in the grub.conf file, and so on. By changing the default value, you can easily switch the kernel version used when the system starts, ensuring that the system can start and run normally. This setting is very useful for system maintenance and troubleshooting, allowing the flexibility to adjust the kernel version as needed to meet the needs of the system. It should be noted that when modifying the grub.conf file
2. Modify the kernel startup sequence of RHEL7/CentOS7
1. Execute the following command to check how many cores there are in the system.
/boot/grub2/grub.cfg #(non-UEFI configurations) Note: Non-UEFI mode execution
/boot/efi/EFI/redhat/grub.cfg #(UEFI configurations)Note: UEFI mode execution
cat /boot/grub2/grub.cfg |grep menuentry
cat /boot/efi/EFI/redhat/grub.cfg |grep menuentry
2. Refer to the following command to configure booting from the default kernel. The kernel name is replaced based on the actual name found within the system. grub2-set-default 0
grub2-set-default “CentOS Linux (3.10.0-123.9.3.el7.x86_64) 7 (Core)”
grub2-set-default ‘Red Hat Enterprise Linux Server (3.10.0-1160.el7.x86_64) 7.9 (Maipo)’
3. Execute the following command to confirm that the configuration is successful.
grub2-editenv list
3. Modify the kernel startup sequence of centos8
1. View the default kernel
grubby –default-kernel
2. View all cores
grubby –info=ALL
3. Modify the default startup kernel
grubby –set-default /boot/vmlinuz-4.18.0-80.11.2.el8_0.x86_64
4. Ubuntu changes the kernel startup sequence
1. Check the startup sequence of the current kernel
cat /boot/grub/grub.cfg |grep menuentry
2. Modify grub file
Assuming that you want to modify the kernel startup to 3.13.0-166, modify the file /etc/default/grub
$
sudo vim /etc/default/grub
GRUB_DEFAULT=0 ##Modify to
GRUB_DEFAULT=”Advanced options for Ubuntu>Ubuntu, with Linux 4.4.0-31-generic”
3. Update the modified grub
update-grub
The above is the detailed content of Modify Linux kernel startup sequence. For more information, please follow other related articles on the PHP Chinese website!

Some Windows 11/10 users report that they see a cmd window open up right after a Bitdefender update and it is running SecureBootEncodeUEFI.exe. This post from php.cn introduces how to remove the SecureBootEncodeUEFI.exe Trojan.

Sysdll_win64_retail.dll is a dynamic link library (DLL) file related to the FIFA 17 application. When that file gets missed or corrupted, a series of issues and errors will happen about that application. To resolve this issue, you can read this artic

Many SurfaceBook users report that they meet the “core isolation blocked by ew_usbccgpfilter.sys” issue on Windows 11/10. This post from php.cn helps to fix the annoying issue. Keep on your reading.

When you press Ctrl Alt Del on your computer, you will enter the Security Options window, where you might see Lock, Switch user, and Sign out options. Do you know that these options can be changed? This php.cn post will show you how to remove opt

Some Windows 11/10 users report that their Windows Defender has spotted a virus named Virus:Win32/Grenam.VA!MSR. But they don’t know how to remove it. This post from php.cn teaches you how to remove Virus:Win32/Grenam.VA!MSR.

When you need to visit a website frequently, it is quite troublesome to open a browser and search for it every time. Why don’t you try to save a website as an app? If you do this, you can open it as normal software. Here, php.cn offers you some usefu

Some people encountered the error code 0x00000000 on Windows 11 when they installed the latest Windows update. What should you do to cope with this unexpected error? This article on the php.cn Website will give you some clues for troubleshooting.

Are you suffering from the error message "FileType selected not supported by this app" when opening files in Teams or Excel? Now read this post from php.cn to get several useful solutions to this issue.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools