In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly shows you "Linux system how to add kernel parameters through grub", the content is easy to understand, clear, hope to help you solve doubts, the following let the editor lead you to study and learn "Linux system how to add kernel parameters through grub" this article.
If you are using the GRUB bootloader and want to modify or add kernel parameters, you can edit the GRUB configuration file. Here is how to add kernel startup parameters to the configuration file of GRUB for a specific distribution.
Add kernel startup parameters to Debian or Ubuntu on Debian-based systems, if you want to add kernel parameters at system startup, you can edit the GRUB configuration template in the / etc/default/grub directory. Add kernel parameters in the format "name=value" in the GRUB_CMDLINE_LINUX_DEFAULT variable.
$sudo-e / etc/default/grubGRUB_CMDLINE_LINUX_DEFAULT= ". Name=value"
Then run the following command to generate a configuration file for GRUB.
$sudo update-grub if you can't find the update-grub command, you can install it with the following command.
Sudo apt-get install grub2-common add kernel startup parameters to Fedora on Fedora. To add kernel parameters at startup, you can edit the GRUB configuration template in the / etc/default/grub directory. Add kernel parameters in the format "name=value" in the GRUB_CMDLINE_LINUX variable.
$sudo-e / etc/default/grubGRUB_CMDLINE_LINUX= ". Name=value"
Then run the following command to generate the GRUB2 configuration file.
Sudo grub2-mkconfig-o / boot/grub2/grub.cfg add kernel startup parameters to CentOS on CentOS. To add kernel parameters at startup, you can directly edit the GRUB configuration file / boot/grub/grub.conf. In the configuration file, find the entry that describes the Linux image used by default. The string "default=N" in the top line of the file indicates which entry is the default image.
When the default image entry is found, add kernel parameters to the end of the paragraph that starts with "kernel / vmlinuz-". The format of parameter is "name=value".
These are all the contents of the article "how to add kernel parameters through grub on Linux systems". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.