Kernelpanic solution in LFS-Linux general technology-Linux programming and kernel information. The following is a detailed description. I often hear from some friends who are playing with LFS for the first time: after a great deal of experience, I finally compiled all the LFS systems, restarted the machine with excitement, and looked forward to the smooth operation of the LFS built by myself, we often encounter Kernel panic-Kernel output similar to the following paragraph, and then crash:
VFS: Cannot open root device "sda8" or unknown-block (0, 0)
Please append a correct "root =" boot option
Kernel panic-not syncing: VFS: Unable to mount root fs on unknown-block (0, 0)
How should this problem be solved?
In my experience, the cause of this problem is that the driver of the hard disk controller where the root file system is located is not compiled into the kernel. The solution is also very direct: Find the hard disk controller model, and then compile the corresponding driver into the kernel.
The solution steps are as follows:
1. Run the lspci command on the host system for building LFS to list the hardware information of the machine.
2. In the hardware information, search for keywords such as IDE interface, SATA Controller, and SAS Controller to obtain the hard disk Controller model.
3. In the Kernel configuration, compile the corresponding driver into the kernel (the driver cannot be compiled into a module ). For the IDE Hard Drive, find the driver under the Device Drivers --> ATA/ATAPI/MFM/RLL configuration item. For the SATA hard drive, find the Driver under the configuration item "Device Driver"> "SCSI device support"> "SCSI low-level drivers.
4. Restart the machine and solve the problem under the new kernel of LFS.
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.