Deepin20系统开机报错——You are in emergency mode ... Cannot open access to console, the root account is locked. emergency mode/“journalctl -xb”

 

参考:

https://knowledge.ipason.com/ipKnowledge/knowledgedetail.html/1286

https://blog.csdn.net/wenfei11471/article/details/110733191

https://bbs.deepin.org/post/153186

https://ld246.com/article/1629522554915

如何修复ubuntu的uefi启动——如何将Ubuntu安装入移动硬盘中

 

==================================================

 

 

故障描述:

在A电脑上有两个硬盘,第一个硬盘上做的系统为windows10,后来使用了一段时间后在第二块硬盘上又做了一个Deepin系统,形成了双系统,这里需要注意的是EFI分区是在windows系统中的,在第二块硬盘上做Deepin系统时并没有给Deepin系统所在的第二块硬盘上划分EFI分区。后来去外地工作,走的时候就直接把第二块硬盘(Deepin系统所在的硬盘)拆下来随身带着了(固态nvme硬盘,十分的轻便),到了工作地后使用的电脑为电脑B。电脑B上原有系统为ubuntu,把随身所带的装有Deepin系统的硬盘插在了电脑B上,开机后再BIOS启动项中看不到Deepin系统所在的硬盘(因为在做deepin系统时没有在这块硬盘上划分EFI分区),于是在电脑B上开机进入原有的Ubuntu系统,然后再在ubuntu系统下使用sudo update-grub更新ubuntu系统的grub引导以使ubuntu系统的grub可以引导后插入硬盘的deepin系统。由于B电脑上原有的ubuntu系统所在的硬盘邮efi分区且可以引导ubuntu系统,而我们又更新了其grub引导将deepin系统的启动项加入其中,然后通过ubuntu系统的grub引导项进入后插硬盘中的deepin系统,在deepin系统的logo显示后在进入deepin桌面前报错,报错信息如下:

you are in 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.

cannot open access to console, the root account is locked.
see sulogin(8) man page for more details.

press enter to continue.

 

 

----------------------------------------------------------------

 

 

经过在网上的搜索答案后最后得到结论,那就是deepin系统的开机挂载硬盘出现了错误,通过在ubuntu系统中mount第二块硬盘(deepin系统所在硬盘),然后修改其fstab文件(/mnt/xxxxxxx/etc/fstab),再次重启即可修复该错误。

具体的修改为将deepin系统中的fstab文件下的/boot/efi分区注释掉(因为我们这里已经选择使用另一块硬盘上efi分区来启动ubuntu系统的grub程序,再通过这个grub程序进入第二块硬盘上的deepin系统),再将swap分区也注释掉,其宗旨就是将所有第二块硬盘上没有的分区都注释掉。其他人出现这个问题的情况下可能不一定像我这里这样做注释,不过最终的目标都是将报错的挂载盘修复,而我这里由于是把之前的硬盘拆下来插到其他电脑上,因此需要把之前电脑上的其他盘的挂载给注释掉。

 

 

修复好的deepin系统下的/etc/fstab文件:

 

posted on 2023-04-11 15:33  Angry_Panda  阅读(1499)  评论(0编辑  收藏  举报

导航