Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the cause of linux system startup failure?

Shulou Source: shulou.com Published: 2022-06-03 07:53:00 10月05日 Update

This article mainly introduces in detail the cause of linux system startup failure. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.

Environment: centos

Startup failure case 1:

1. Cause of failure

The boot entry could not be found at system startup

2. Solution

In BMC, mount the same system image through the virtual optical drive and restart.

Enter the command after entering the Shell script input interface

# chroot / mnt/sysimage

Switch to root

Mount the CD-ROM drive

# mount / dev/sr0 / media

Install the kernel

# rpm-ivh / media/Packages/kernel-xxx.x86_64.rpm-- force

Repair

# / sbin/grub-install / dev/sda

It could be.

/ sbin/grub2-install / dev/sda

Uninstall the mounted CD image.

Reboot

Startup failure case 2:

1. Cause of failure

Xfs file system corruption

2. Solution

Xfs_repair-v-L / dev/dm-0

On the linux system startup failure is caused by what is shared here, of course, not only the above and everyone analysis methods, but the editor can ensure its accuracy is absolutely no problem. I hope that the above content can have a certain reference value for everyone, and can be put into practice. If you like this article, you might as well share it for more people to see.

Tags: System reason reference value CD-ROM method failure case Mirror input apply what you have learned Code CD interest content Kernel accuracy Command Boy buddy Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux vpn macOS Huawei Apple