Home >Operation and Maintenance >Linux Operation and Maintenance >Reasons for Linux system startup failure

Reasons for Linux system startup failure

王林
王林Original
2020-03-13 11:32:273810browse

Reasons for Linux system startup failure

Environment: centos

Startup failure case 1:

1. Cause of failure

The system startup cannot find the boot item

2. Solution

Mount the same system image through the virtual optical drive in BMC and restart.

Enter the Shell script input interface and enter the command

# chroot /mnt/sysimage

Switch to root;

(Recommended tutorial: linux tutorial)

Mount optical drive

# mount /dev/sr0 /media

Install kernel

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

Repair

# /sbin/grub-install /dev/sda

It may also be

/sbin/grub2-install /dev/sda

uninstall the mounted CD image.

reboot

Startup failure case two:

1. Cause of failure

xfs file system damage

2.Solution

xfs_repair -v -L /dev/dm-0

Related Video tutorial recommendation: linux video tutorial

The above is the detailed content of Reasons for Linux system startup failure. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn