Solution to kernel loss

Source: Internet
Author: User
Solution to kernel loss-general Linux technology-Linux programming and kernel information. The following is a detailed description. If the following message appears during startup: kernel panic: No init found Try passing init = option to kernel

This post may be helpful to you.

1. Use the recuse mode to start the disk. mount the hard disk to/mnt before entering bash. (that is, choose this option to mount your partitions uder/mnt)

2. Run lsparts to view your computer partition
Take myself as an example: swap/dev/hda1
// Dev/hda5

3. Enter/mnt/etc
Vi lilo. conf and vi fstab
Check whether the boot =/dev/hdX file matches the data you have found using lsparts.
Take me as an example: the system automatically changes to boot =/dev/hdc. You only need to change it to hda.

4. Restart

5. If a prompt such as Repair filesystem #1 appears

6. Input fsck/dev/hda5 depends on your situation.

7. Restart OK.

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.