Centos7系统在开启进入系统报错:Give root password for maintenance(or type Control-D to continue):问题解决方法

报错信息:

在进入系统时,不能正常进入系统,出现了Give root password for maintenance(or type Control-D to continue):的报错。

 

报错原因:

1、在之前写入的/etc/fstab文件有问题,导致系统在读取的时候识别不到从而报错。

 

解决方法:

1、在出现这个画面的时候,输入任何东西都是看不到的,在这里直接输入root密码,进入安全模式。

2、编辑/etc/fstab文件,把新增的给注释掉或者删掉,保存退出。

执行命令:

[root@k8s-master ~]# vim /etc/fstab

修改内容:

#
# /etc/fstab
# Created by anaconda on Wed Mar 15 13:44:07 2023
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=7722986f-f8d1-49aa-b46b-2c4e2f484ac0 / xfs defaults 0 0
UUID=fc965964-1567-45e7-894e-618edf6c5301 /boot xfs defaults 0 0
UUID=3a1c6730-a0e7-4eb8-9ee1-4547bb00f7a4 swap swap defaults 0 0
# /dev/sr0 /media/cdrom xfs 0 0      # 将这行给注释掉,根据自己新增的进行注释

3、然后进行重启系统即可。

[root@k8s-master ~]# reboot
作者:持之以道原文地址:https://www.cnblogs.com/Bookcict/p/17224170.html

%s 个评论

要回复文章请先登录注册