虚拟机新挂载了一个硬盘,后面再虚拟机设置页面把硬盘删除了,虚拟机重启后报错
“Welcome to emergency mode! After logging in, type "Journalctl -xb " to view system logs, " systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into default mode.Give rot password for maintenance (or type Control-D to continue):”
现象:无法通过ssh访问
原因:设置里删了,但/etc/fstab里面的配置没删,导致出错。
解决:修改/etc/fstab配置文件,将不存在的硬盘注释或删除即可。重启后恢复正常!