tencent cloud

Cloud Virtual Machine

Release Notes and Announcements
Release Notes
Public Image Release Notes
Official End of Support Plan for the Operating System
Announcements
Product Introduction
CVM Overview
Strengths
Basic Concepts
Regions and Zones
Tutorial
Service Regions and Service Providers
Billing
Billing Overview
Billing Modes
Billing Items
Billing Mode Conversion Overview
Purchasing Instances
Configuration Adjustment Billing Guide
Overdue Payments
Getting Started
Purchasing a Customized Linux Instance
Purchasing a Customized Windows Instance
User Guide
Operation Guide Overview
Use Limits
Instances
Spot Instances
Reserved Instances
Images
Storage
Backup and Restoration
Network
Security
Passwords/Keys
Monitoring and Alarms
Ops Management
Convenience Features
Migrating a Server
Online Migration
Migration Consultation
Troubleshooting
CVM Login Failures
Windows Instance Login Failures
Linux Instance Login Failures
Other Login Failures
Instance Running Failures
Linux Instance Memory Failures
Network Failures
Use Cases
Suggestions on CVM Model Selection
Environment Building
Website Building
Application Building
Visual GUI Building
Uploading Local Files to CVM
Network Performance Test
Other Practical Tutorials
API Documentation
History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
Security and Compliance
CAM
Network
FAQs
Regions and Zones
Billing
Instances
Storage
Images
Server Migration
Network
Security
Operating Systems
Ops and Monitoring
CAM
NTP Service
Scenarios
Agreements
CVM Service Level Agreements
Red Hat Enterprise Linux Image Service Agreement
Public IP Service Level Agreement
Glossary
DocumentationCloud Virtual MachineUser GuideOps ManagementSystem OpsSetting a Linux Instance to the Single-User Mode

Setting a Linux Instance to the Single-User Mode

PDF
Focus Mode
Font Size
Last updated: 2025-12-25 10:57:06

Overview

For operations like password management, SSHD fixing and maintenance before disk mounting, Linux users need to enter the single user mode. This document describes how to boot into this mode in mainstream Linux distributions.

Directions

1. On the CVM console, choose VNC to log in to a CVM. For detailed directions, see Logging into Linux Instances via VNC.
2. In the VNC login window, select Send CtrlAltDel in the upper-left corner, press Ctrl-Alt-Delete, and click OK in the prompt box.
3. When a connection failure message appears, press Up or Down arrow to refresh the page and hovers the cursor over the grub menu, as shown below.


4. Press e to enter the grub rescue mode.
5. Perform the steps that suit your operating system version.
CentOS 6.x
CentOS 7.x
CentOS 8.0
Ubuntu or Debian
SUSE
tlinux 2.2
tlinux 3.2
1. Select a kernel in the grub mode, as shown below.


2. Press e to enter the kernel edit page, choose the kernel line using Up or Down arrow, and press e again, as shown below.


3. Enter single at the end of line, as shown below.


4. Press Enter, and then press b to boot the selected command line and enter single user mode, as shown below.

The following figure indicates that the system boots into single user mode.


Note:
You can run the exec /sbin/init command to exit the single user mode.

1. Select a kernel in the grub mode, as shown below.


2. Press e to enter the kernel edit page. Locate the line started with “linux16” using Up or Down arrow and replace ro with rw init=/bin/bash or /usr/bin/bash, as shown below.


3. Press Ctrl+X to boot into the single user mode, as shown below: The following figure indicates that the system boots into the single user mode.


Note:
You can run the exec /sbin/init command to exit the single user mode.

1. Select a kernel in the grub mode, as shown below.


2. Press e to enter the kernel edit page. Locate the line started with “linux” using Up or Down arrow and replace ro with rw init=/sysroot/bin/bash, as shown below.


3. Press Ctrl+X to boot into the single user mode, as shown below: The following figure indicates that the system boots into the single user mode.


1. Select a kernel in the grub mode, as shown below.


2. Press e to enter the kernel edit page. Locate the line started with “linux” using Up or Down arrow and append quiet splash rw init=/bin/bash to the end of the line, as shown below.


3. Press Ctrl+X to boot into the single user mode, as shown below: The following figure indicates that the system boots into single user mode.


1. Select a kernel in the grub mode, as shown below.


2. Press e to enter the kernel edit page. Locate the line started with “linux” using Up or Down arrow, add rw to the beginning and 1 to the end of the splash parameter, as shown below.


3. Press Ctrl+X to boot into the single user mode, as shown below:
1. Select a kernel in the grub mode, as shown below.


2. Press e to enter the kernel edit page, choose the kernel line using Up or Down arrow, and press e again, as shown below.


3. Add a space and 1 to the end of the line (namely after 256M), as shown below.


4. Press Enter to enter the single user mode.
1. On the grub mode interface, select a kernel, as shown in the following figure:


2. Press e to access the kernel editing interface. Use the Up/Down arrow keys to navigate to the line starting with linux. Replace ro with rw init=/bin/bash or /usr/bin/bash, as shown in the following figure:


3. Press Ctrl+X to start the instance, and the system enters the single-user mode.
As shown in the following figure, the system has entered the single-user mode successfully.





Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback