
正文
Centos7.6进入挂载硬盘后,进入应急模式(emergency mode)而非图形模式解决方法
提示:扫一扫查出行【扫一扫了解最新限行尾号】
复制提示
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:等线;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@等线";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:等线;}
p.MsoHeader, li.MsoHeader, div.MsoHeader
{mso-style-link:"页眉 字符";
margin:0cm;
margin-bottom:.0001pt;
text-align:center;
layout-grid-mode:char;
border:none;
padding:0cm;
font-size:9.0pt;
font-family:等线;}
p.MsoFooter, li.MsoFooter, div.MsoFooter
{mso-style-link:"页脚 字符";
margin:0cm;
margin-bottom:.0001pt;
layout-grid-mode:char;
font-size:9.0pt;
font-family:等线;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
text-indent:21.0pt;
font-size:10.5pt;
font-family:等线;}
span.a
{mso-style-name:"页眉 字符";
mso-style-link:页眉;}
span.a0
{mso-style-name:"页脚 字符";
mso-style-link:页脚;}
.MsoChpDefault
{font-family:等线;}
/* Page Definitions */
@page WordSection1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;
layout-grid:15.6pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
Centos7.6进入挂载硬盘后,进入应急模式(emergency mode)而非图形模式解决方法
话说某天我想在centos7.6中挂载个硬盘,结果刚在虚拟机中添加了一块硬盘,再次打开系统时,居然就进入不了图形界面,急坏我了,查找网上方法踩了一堆坑得出来得结果。
进入不了图形界面,而是进入到命令界面(这个界面叫紧急模式(emergency mode))。而且 发现无法连接网络, Xshell 无法连接 CentOS7, 输入 ifconfig 命令后的网卡固定 IP 都不存在。
怎么办了,看了很多资料加上实际验证,终于知道问题出在那里了, 原来是 /etc/fstab 中添加的自动挂载出了问题 。
解决方法:
1、在紧急模式下,输入root用户密码进入系统,进入自动挂载配置文件中 , 用vim命令打开”/etc/fstab”文件进行修改。
命令: vim /etc/fstab
2、删除所有与/dev/md5,/dev/sdb, /dev/sdc及挂载的/dev/cdrom有关的挂载项目
3、删除相关挂载信息后,保存退出/etc/fstab文件,重启虚拟机,命令reboot或shutdown -r 0
图形界面就出来了,又可以折腾了,哈哈。






