Linux single-user mode is a limited boot state for system maintenance, usually providing an administrator with a root shell while most normal services and user sessions are stopped. On current Linux systems it is commonly implemented through systemd’s rescue.target; the exact name and available access depend on the distribution and boot setup.
What single-user mode means
The term comes from older Unix and Linux systems, where a runlevel called “1” started a minimal environment intended for one administrator. It was not necessarily a special graphical screen or a separate copy of the operating system. Rather, the system booted far enough to allow maintenance while avoiding many of the services used during ordinary operation.
“Single-user” can be misleading: it describes the intended maintenance environment, not a guarantee that only one person can physically access the machine. Someone with console access may still be able to interact with it, and a remote machine may or may not expose a usable login. The mode is not a security boundary. Physical access, bootloader settings, disk encryption, and authentication configuration all affect who can reach the system.
Modern distributions do not all present the same interface. On a system using systemd, the equivalent is generally a target rather than a numbered runlevel. Other init systems and older releases may use different terminology or behavior. The useful idea is consistent: start fewer components so an administrator can diagnose or repair a system without the full normal boot.
How it works on systemd systems
Systemd organizes startup into targets, which group services and other units for a particular purpose. The normal graphical boot often reaches graphical.target, while a server commonly uses multi-user.target. The rescue.target is a much more limited state intended for maintenance. It starts a basic system and generally provides a root maintenance shell, but it may still start some foundational services.
For a still more minimal environment, systemd provides emergency.target. It starts fewer units than rescue mode and can be useful when normal early startup is failing. It may leave filesystems or other system components unavailable until an administrator handles them. It is therefore not simply a more powerful version of rescue mode: the reduced setup can make some repair tasks harder.
Systemd can be asked to boot to one of these targets with a kernel command-line option such as systemd.unit=rescue.target or systemd.unit=emergency.target. Older instructions may use terms such as “runlevel 1” or “single-user mode.” Compatibility aliases and behavior can vary, so using the explicit systemd target is clearer on a system known to use systemd.
How to boot into single-user or rescue mode
For a one-time repair, the usual approach is to edit the boot entry rather than permanently change the system’s startup configuration. The exact keys and menu appearance vary between GRUB versions, firmware, and distributions, but the general process is:
- Restart the computer and display the bootloader menu. Some systems show it automatically; others require holding or tapping a key during startup.
- Select the Linux entry you want to start and open its temporary edit screen, often with
ein GRUB. - Find the line that begins with
linux,linuxefi, or a similar kernel command. Addsystemd.unit=rescue.targetat the end of that line. For a more minimal attempt, usesystemd.unit=emergency.targetinstead. - Boot the edited entry using the key shown by the bootloader, commonly Ctrl-X or F10 in GRUB.
This edit normally applies only to that boot. It does not rewrite the saved boot menu. If the machine reaches a maintenance shell, read the prompt carefully: it may ask for the root password, and it may identify a particular unit or filesystem that caused startup to stop. When finished, reboot with the command shown by the system or use systemctl reboot if systemd is available.
Do not confuse editing one boot entry with permanently changing the default target. Persistent changes involve configuration files and, on some distributions, regenerating the bootloader configuration. They can leave a machine repeatedly starting in a restricted state if applied incorrectly. For a single maintenance session, the temporary boot option is generally the safer choice.
Choosing rescue mode or emergency mode
Rescue mode is usually the better first choice when the system starts but a normal service, login, or desktop is causing trouble. It provides a controlled maintenance environment with more of the basic system available. Emergency mode is useful when startup fails earlier or when starting additional units could trigger the same failure again.
- Use rescue mode for many service, configuration, and ordinary boot problems where a basic system is still usable.
- Try emergency mode when rescue mode itself cannot start, or when you need the smallest systemd environment available on the installed system.
- Use a live USB or dedicated recovery environment if the installed system cannot provide a shell, the root filesystem is damaged, or you need to work on an unmounted filesystem.
There is no universal rule that rescue mode always mounts every filesystem read-write or that emergency mode always leaves everything untouched. Mount state and available tools depend on the distribution, boot stage, and failure. Check what is actually mounted before making changes. Also, a shell started by an initramfs after an early boot failure is not necessarily the same as the installed system’s emergency target; it may have different commands, paths, and mounted filesystems.
What single-user mode is useful for
A restricted boot can help isolate problems that occur during a normal startup. If the machine works in rescue mode but not in its usual target, that points toward a service, graphical stack, or other component that is not started in the same way during rescue. It does not prove which component is at fault, but it gives you a simpler place to investigate logs and configuration.
Common maintenance tasks include checking failed systemd units, correcting a mistaken configuration file, disabling a service that prevents startup, and reviewing filesystem mount settings. For example, an incorrect entry in /etc/fstab can delay or interrupt boot. A maintenance shell may let an administrator inspect the file and correct the relevant entry, but the right fix depends on the device, filesystem, and intended mount—not merely on removing whichever line looks unfamiliar.
A root shell may initially have the root filesystem mounted read-only. If you need to edit a file, first check the mount state; on a typical system, an administrator may remount the root filesystem read-write with mount -o remount,rw /. That command is not appropriate for every layout, especially when the system uses separate, encrypted, network, or snapshot-based filesystems. Confirm the actual mount points before applying it.
Single-user mode is not a general-purpose way to make a broken disk safe to repair. Filesystem checking tools such as fsck should not be run on a mounted filesystem that they are expected to repair. If the root filesystem must be checked offline, boot from a recovery medium or another suitable environment and identify the correct device first. Guessing a device name can cause data loss.
Common problems and limitations
A frequent surprise is being asked for a password. Rescue access is not automatically password-free: some distributions request the root password before opening a maintenance shell, and others configure root access differently. If the root account is locked or the system uses an administrator account with sudo, the prompt and recovery procedure may differ. A password prompt is an authentication feature, not evidence that the boot option failed.
Disk encryption is another important limitation. A boot parameter does not decrypt a disk. You may still need the encryption passphrase or a configured key before the installed root filesystem can be accessed. Similarly, a cloud virtual machine or remote server may not have a usable local console. Changing its boot options may require the provider’s serial console or recovery tools, and a remote reboot can make a machine unreachable if it does not return to normal boot.
Some failures happen before the installed operating system can honor the requested target. Examples include bootloader errors, missing kernel files, a damaged initramfs, or an encrypted volume that cannot be opened. In those cases, changing to rescue mode may have no effect. A live environment, distribution recovery image, or provider repair workflow may be needed instead.
Another common misconception is that single-user mode guarantees network access—or guarantees there is no network access. Services are started differently according to the target and distribution, so networking may be absent, partial, or available. Do not depend on remote access until you have verified it. If the repair requires downloading files, prepare an offline route or use a recovery environment with known network support.
Safety and security considerations
A maintenance shell often has administrative privileges, so commands can alter the entire system. Before editing configuration, make a copy when practical and record the original setting. Be particularly cautious with commands that remove files, rewrite boot configuration, change partitions, or run filesystem repair. Read command output rather than assuming the operation succeeded.
Protect the boot process as well. If an attacker can edit kernel parameters from the bootloader and access an unencrypted disk, they may be able to reach recovery functions or copy data. A root password prompt alone does not protect data stored on an unencrypted disk from someone with sufficient physical access. Bootloader protection and full-disk encryption address different parts of this risk; neither should be treated as a substitute for the other.
On a production or remote system, plan the recovery before restarting. Confirm console access, backups, the correct boot entry, and a way to return to the normal target. If the machine is providing a service, consider the effect of downtime and notify affected users. A temporary rescue boot is usually reversible, but an incorrect repair or a persistent boot change can extend an outage.
Frequently Asked Questions
Is single-user mode the same as rescue mode?
They are closely related terms, but not always exact synonyms. “Single-user mode” is historical terminology; on many current systemd systems, rescue.target is the closest standard equivalent. Distribution-specific recovery menus may behave differently.
What command-line option boots systemd into rescue mode?
For a one-time boot, add systemd.unit=rescue.target to the kernel command line. To request systemd’s more minimal emergency target, use systemd.unit=emergency.target. The option only helps if the system reaches the point where systemd can process it.
Can I enter single-user mode without a root password?
That depends on how the distribution configures recovery authentication. Some systems require a root password or another form of authorization. If you administer the machine but cannot authenticate, follow its documented recovery process rather than assuming the mode bypasses account security.
Does single-user mode delete files or change my settings?
No. Booting into the mode by itself does not delete files or automatically repair configuration. Changes happen when an administrator runs commands or when a startup process performs an action. A temporary bootloader edit usually lasts only for that boot.
When should I use a live USB instead?
Use a live or recovery environment when the installed system will not reach a usable shell, when you must inspect or repair a filesystem while it is unmounted, or when the installed recovery tools are unavailable. Verify the target disk and back up important data whenever possible before making repairs.