How to Boot into Single-User Mode (Debian-Based Distros)

How to Boot into Single-User Mode (Debian-Based Distros)

Introduction

Single-user mode is a special maintenance mode that boots your Linux server into a minimal environment with root access, without networking or multi-user services running. It’s mainly used for emergency repairs, password recovery, or fixing critical system issues.

This guide covers how to safely enter single-user mode on modern Debian-based Linux distributions including Debian, Ubuntu, Linux Mint, and similar distros, updated for systems using GRUB 2 and systemd.


Important Notes Before You Start

  • Single-user mode disables SSH. You will need console access via VNC/KVM to interact with your server during this process. EUGameHost provides web-based KVM access in the control panel for this purpose.
  • This mode grants full root privileges. Misuse can lead to system corruption.
  • Always backup critical data before performing risky operations.
  • This guide is intended for advanced users or under guidance from EUGameHost support.

What Has Changed in Modern Debian-based Systems?

Unlike older init systems that used runlevels, most modern distros now use systemd, which manages targets:

  • Rescue Target (similar to single-user mode but with basic systemd services)
  • Emergency Target (minimal environment, most useful for serious repair)

These targets replace classic runlevel 1 and are invoked via GRUB kernel parameters or systemctl commands.

🚀 Premium UK VPS Hosting with NVMe & 5Gbps Networking – From Just £2/month!

Power your projects with Xeon E5-2699v3 CPUs, blazing-fast NVMe storage, and ultra-low latency 5Gbps bandwidth. Enjoy Cosmic Guard DDoS protection, full Linux & Windows OS support, and 24/7 UK-based expert support.

✅ Enterprise-grade Xeon CPUs
✅ Lightning-fast NVMe SSDs
✅ Massive 5Gbps Network Speed
✅ Bulletproof Cosmic Guard DDoS Protection
✅ Choice of Linux or Windows OS
✅ Instant Setup & Easy Scaling

Deploy UK VPS Hosting

Step-by-Step: Booting into Single-User Mode via GRUB

1. Access Your Server Console

Log into your EUGameHost control panel and launch the KVM (console) session for your dedicated server. This is required since SSH will be disabled.


2. Interrupt GRUB Bootloader

When your server boots, watch for the GRUB menu screen:

GRUB for Debian/Ubuntu Menu

If the menu doesn’t appear by default, press and hold Shift (BIOS systems) or press Esc repeatedly (UEFI systems) immediately after reboot to show the GRUB menu.


3. Edit GRUB Boot Entry

Highlight the default boot entry and press e to edit.

Locate the line starting with linux or linux16 (depending on system):

Example:

bashCopylinux /boot/vmlinuz-... root=UUID=... ro quiet splash


4. Modify Boot Parameters

  • Replace ro (read-only) with rw (read-write).
  • Add systemd.unit=rescue.target or for a more minimal environment, systemd.unit=emergency.target.

Example updated line:

bashCopylinux /boot/vmlinuz-... root=UUID=... rw systemd.unit=rescue.target

This tells systemd to boot into rescue mode (single-user equivalent).


5. Boot Into Single-User Mode

Press Ctrl + X or F10 to boot with these settings.

You will be presented with a root shell prompt in rescue mode.

If you need a shell immediately without mounting filesystems:

Use systemd.unit=emergency.target instead for emergency mode.


6. Additional Tips

  • In rescue mode, the root filesystem is mounted read-only by default. To remount read/write, run:

bashCopymount -o remount,rw /

  • To reset a forgotten root password:

bashCopypasswd root

  • After finishing, reboot normally:

bashCopysystemctl reboot


Alternative: Enter Single-User Mode from a Running System

If you still have root access via SSH or console:

bashCopysudo systemctl rescue

or for emergency mode:

bashCopysudo systemctl emergency

This method does not require rebooting but will drop you into single-user or emergency mode instantly.


Why Use EUGameHost for Your Dedicated Linux Servers?

At EUGameHost, we offer:

  • Full KVM/VNC console access for recovery and advanced management
  • 24/7 UK-based technical support ready to assist with recovery
  • High-performance dedicated servers with flexible OS installs
  • Secure environments with reliable backups

Explore our dedicated server offerings and gain full control over your environment with expert support.


Summary

Booting into single-user mode or rescue mode is essential for low-level maintenance on Debian-based systems. Use the GRUB boot parameter systemd.unit=rescue.target or emergency.target for modern systemd-based distros. Always access your server via console and proceed cautiously.