Custom kernel startup parameters

Source: Internet
Author: User
Custom kernel startup parameters-general Linux technology-Linux programming and kernel information. For more information, see the following section. It seems that if you don't need initramfs, some options need to use the kernel command line to tell the kernel how to start, for example, we need to specify root =/dev/* d * ro in the kernel/boot/vmliuz line. In addition, some mkinitcpio hooks have special options, which should be implemented through the kernel command line. We will discuss these things below:

If you do not know what the kernel command line is, refer to grub or lilo instructions.

Enter failsafe mode
If you add this option in the kernel command line: break = y
Init stops after it is started and enters the command line mode. This function allows us to check the startup status of init. After you enter exit, the system continues to start.

Disable hooks
You can disable one or more hooks at startup, as long as you enter disablehooks = hook1, hook2, hook3 in the kernel command line.
For example:
Disablehooks = resume

Add modules to the blacklist
The method is as follows: disablemodules = mod1, mod2, mod3
For example:
Disablemodules = ata_piix

Raid)
Use net (all of which are relatively advanced network parameters, which is useless for desktop users, skipped)
Use lvm (never used, skipped)
Use encrypted root (never used, skipped)
Use sleep (Linux does not dare to try sleep, skipped)

Configuration instance of Bootloader (this should be used by anyone who wants to play ArchLinux, skipped)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.