


ubuntu进入单用户方法,ubuntu单用户修复磁盘方法
1.开机,到此界面时,使用↓键选择Advanced options for ubuntu,按下回车键。
2.如图使用↓键选择recovery mode,按下回车键。
3.如图使用↓键选择root,按下回车键。
4.输入root用户密码,即可进入root用户,获得root权限。
5、修复磁盘,使用命令:
fsck -fyv /dev/vda1
还有一种方法就是进入recovery mode的编辑界面,如下图找到位置linux /boot/vmlinuz—–\*** ro recovery nomodestset ,将它的ro recovery nomodestset修改为rw single init=/bin/bash,然后按 ctrl+x或者F10 进入单用户模式,此时用户即为root用户。



亲爱的:若该文章解决了您的问题,可否收藏+评论+分享呢?
文章评论 本文章有个评论