Initrd --- memory disk initialized by bootloader -- general Linux technology-Linux programming and kernel information. For details, refer to the following section. The English meaning of initrd is boot loader initialized RAM disk, which is the memory disk initialized by boot loader.
Before the Linux kernel starts, boot loader loads the initrd file in the storage medium to the memory. When the kernel starts, it accesses the initrd File System in the memory before accessing the real root file system.
When boot loader is configured with initrd, the kernel startup is divided into two phases. In the first phase, the system executes "a file" in the initrd File System to load the driver module and other tasks, the second stage will execute the/sbin/init process in the real root file system. The purpose of Phase 1 startup is to clear all obstacles for Phase 2 startup. The most important thing is to load the driver module of the root file system storage medium.
We know that the root file system can be stored on a variety of media, including IDE, SCSI, and USB. If we compile the drivers of these devices into the kernel, we can imagine how huge and bloated the kernel will be.
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