Home >Operation and Maintenance >Linux Operation and Maintenance >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!