问题描述
最近,发现台式机ubuntu系统的硬盘空间有点不够用了,所以想给其扩容,但是windows系统中每个盘都放了数据,果断进入windows中将文件整理,清理出一个新的磁盘,准备挂载到ubuntu下使用,但是在将F盘格式化之后,发现进不了ubuntu系统,而是进入的emergency mode
,提示
GIVE root password for maintenance (or type control-D to continue):
问题解决
经过查阅之后,原来是系统挂载设置的问题,也就是之前的永久挂载设置,但是现在将F盘删除了,所以找不到了,现在可以通过命令行,进入/etc/fstab
文件中,修改即可,操作如下:
-
在这个提示GIVE root password for maintenance (or type control-D to continue): 下,输入root 密码,然后 输入
-
vi /etc/fstab
-
然后删除之前挂载的内容,比如
-
删除这几行,然后输入
reboot
重启即可
参考链接
https://blog.csdn.net/ariera/article/details/48784249