|
1 2 |
Ubuntu Advanced options for Ubuntu |

|
1 |
linux /boot/vmlinuz-xxx root=UUID=xxx ro quiet splash $vt_handoff |
修改后示例:
|
1 |
linux /boot/vmlinuz-xxx root=UUID=xxx rw init=/bin/bash |

修改后

|
1 |
passwd 用户名 |
例如:
|
1 |
passwd vinsion |
系统提示输入新密码,并再次确认新密码。

|
1 |
sync |

|
1 |
reboot -f |
|
1 |
ls /home |
| 步骤 | 操作/命令 |
|---|---|
| 进入 Grub 菜单 | 重启按住 Shift 或 Esc |
| 编辑启动项 | 选中 Ubuntu,按 e |
| 修改参数 | 将 ro quiet splash 改为 rw init=/bin/bash |
| 启动命令行 | 按 Ctrl + X 或 F10 |
| 重置密码 | passwd 用户名 |
| 同步磁盘 | sync |
| 重启 | reboot -f |