You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Instance configuration
Entering Linux OS single-user mode
Copy page
Download PDF
Entering Linux OS single-user mode
This topic describes how to enter single-user mode on Linux instances via the system bootloader (GRUB).​
Applicable scenarios​
Single-user mode is a runlevel (also called a system state) of Linux systems. In this mode, the system starts only the most basic services and processes, and the operator has administrator privileges to modify all system configurations. You can use this mode to troubleshoot and maintain the system, such as diagnosing system faults, changing usernames or passwords, and managing disk partitions.​
warning​
Because single-user mode grants full access to the underlying system layers, operations performed in this mode may have a significant impact on the system. We recommend that you enter this mode only when necessary, and proceed with extreme caution to avoid accidental damage to system files or data.​
Procedure​
​
veLinux OS
CentOS OS
Ubuntu OS
Debian OS
OpenSUSE OS
Fedora OS
​
In the example provided in this section, veLinux 1.0 64 bit is used.​
tip​
If you log in to the instance via ECS Terminal, you cannot access the system startup page directly when you restart the instance using a command. Therefore, we recommend that you do not use this login method.​
  1. On the left side of the login page, click buttons to restart the instance as instructed in the following picture.​
  • ​​​
  1. When the kernel option page appears, quickly press the ↑ key to enter the page to select the kernel.​
  • ​​​
  1. After you position the cursor on the target kernel, press E to enter the kernel editing page.​
  1. Use the arrow keys to move the cursor to the line starting with linux, and then replace ro and everything after it on that line with rw quiet init=/bin/bash.​
  • Before change:​
  • ​​​
  • After change:​
  • ​​​
  1. Press F10 , or press Ctrl+ X to enter single-user mode.​
  • ​​​
​
​
Last updated: 2026.06.18 17:49:51