Ubuntu重置root密码_ubuntu

启动ubuntu系统,按shift进入启动项选择界面。

选择advanced options for ubuntu,并按enter键

Ubuntu重置root密码_重置密码_02

选择recovery mode,按e进入编辑模式,并找到ro recovery nomodeset

Ubuntu重置root密码_重置密码_03

把这一项修改为quiet splash rw init=/bin/bash

Ubuntu重置root密码_启动项_04

按照提示按crtl-x或者F10进入系统

Ubuntu重置root密码_启动项_05

通过passwd root重置密码

Ubuntu重置root密码_启动项_06