Reasons for Linux system startup failure

王林
Release: 2020-03-13 11:32:27
Original
3616 people have browsed it

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
Copy after login

Switch to root;

(Recommended tutorial: linux tutorial)

Mount optical drive

# mount /dev/sr0 /media
Copy after login

Install kernel

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

Repair

# /sbin/grub-install /dev/sda
Copy after login

It may also be

/sbin/grub2-install /dev/sda
Copy after login

uninstall the mounted CD image.

reboot
Copy after login

Startup failure case two:

1. Cause of failure

xfs file system damage

2.Solution

xfs_repair -v -L /dev/dm-0
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!