昨天公司新搭建了Openstack系统,都搭建好了之后需要更换CPU,把服务器关机更换CPU之后Linux无法正常启动,报错“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):”,如图1-1-1

wKioL1h26OuiYqB4AAHob0q7OzA053.png

     

  根据系统提示,根据提示上网搜索之后发现系统不能启动的真正原因是 /etc/fstab给写错了,输入root密码进入repair filesystem模式。


修复过程:

    mount -o remount,rw / #以可读写方式重新挂载文件系统(注:不是所有系统都需要输入,我的Centos7.2可以直接更改,还没有研究出是因为什么)

     修改/etc/fstab出错处即可。

总结

  以上问题的出现是由于错误配置了/etc/fstab文件,在系统重启时,无法识别卷标(/other),从而导致无法正常启动。如果在修改/etc/fstab文件后,运行mount -a命令验证一下配置是否正确,则可以避免此类问题。


                                                                                                                  注:以上信息部分来自网络