1. 程式人生 > >linux作業系統未正常啟動提示"Entering emergency mode. Exit the shell to continue"

linux作業系統未正常啟動提示"Entering emergency mode. Exit the shell to continue"

是一臺阿里雲ecs伺服器,通過vnc登入看到如下資訊,進入了救援模式:
Generating “/run/initramfs/rdsosreport.txt”
“Entering emergency mode. Exit the shell to continue”
“Type ‘journalctl’ to view system log.”
You might want to save “/run/initramfs/rdsosreport.txt” to a USB stick or /boot after mounting them and attach it to a bug report.
在這裡插入圖片描述


journalctl提示/dev/vda1 contains a file system with errors,check forced
fsck failed with error code 4.
Failed to start FIle System Check on /dev/disk/by-uuid/xxx
Dependency failed for /sysroot.
等很多錯誤,無法看到作業系統啟動到哪個地方進入的救援模式
在這裡插入圖片描述

1、在:/#下執行fsck -y /dev/vda1,有fsck命令,提示/dev/vda1 is mounted
在這裡插入圖片描述
2、將該目錄umount掉,再次重啟就可以正常進入系統