ctypyb2002

os: ubuntu 16.04

在 /etc/rc.local 写错了一行代码,导致os无法正常启动,需要进入到单用户模式修改。

1、加电至如下提示,选中第二行,按回车。

 Ubuntu
*Advanced options for Ubuntu

2、会出现如下两行,选中第二行,按键盘 “e”

 Ubuntu, with Linux 4.10.0-28-generic
*Ubuntu, with Linux 4.10.0-28-generic (recovery mode)

3、出现一堆文本,鼠标移动到倒数第三行,将

ro recovery nomodeset

替换为

rw single init=/bin/bash

4、按 F10,然后就进入单用户模式了,可以修改文件了。

分类:

技术点:

相关文章:

  • 2021-09-30
  • 2022-12-23
  • 2021-04-28
  • 2021-10-20
  • 2021-08-02
  • 2021-07-16
猜你喜欢
  • 2021-10-16
  • 2022-12-23
  • 2021-10-16
  • 2021-10-16
  • 2021-11-06
  • 2021-04-15
相关资源
相似解决方案