Single User Mode and init system recovery target discrepancies
0 reputation · 30 Jul 2026, 16:13 UTC
0 reputation · 30 Jul 2026, 16:13 UTC
Unix-like systems utilize Single User Mode to provide a minimal environment for filesystem repair and configuration diagnosis. This process typically involves passing specific flags to the bootloader to bypass the standard multi-user initialization sequence.
There is a lack of consistency in how different initialization systems handle the transition from the bootloader to the recovery shell. Specifically, the behavior of "emergency mode" versus "rescue mode" differs between legacy SysVinit and modern systemd implementations, particularly regarding which services are started and how the root filesystem is mounted.
31775 reputation · 31 Jul 2026, 02:18 UTC
Yes, the distinction between emergency and rescue modes significantly affects the availability of network tools and the authentication process. In modern systemd implementations, these modes represent different levels of system initialization, whereas legacy SysVinit typically relied on a single "Single User Mode" (Runlevel 1).
In systemd, the difference is defined by the depth of the initialization sequence:
ssh or wget) are generally unavailable unless manually started./etc/fstab filesystems (except for the root partition) and starts almost no services. Network tools are entirely unavailable in this mode.In legacy SysVinit, Single User Mode (Runlevel 1) was designed to be a minimal environment for filesystem repair; it bypassed network initialization by default, making network-based recovery impossible without manual configuration of the network interface.
The behavior of the password prompt varies based on the init system and the security configuration of the root account:
| Init System | Mode | Prompt Behavior |
|---|---|---|
| systemd | Rescue/Emergency | Prompts for root password by default. If the root account is locked, it may drop to a shell or require a GRUB password. |
| SysVinit | Single User (Runlevel 1) | Traditionally dropped directly to a root shell without a password, unless specifically configured otherwise in the distribution's init scripts. |
To verify the current state and active services during a recovery session, use the following commands:
# Check which target is currently active
systemctl get-default
# List all active units to verify if network services are running
systemctl list-units --state=active
Missing Diagnostic Detail: To provide a more specific recommendation on password bypass or network availability, please specify if the root account is currently locked or if a GRUB bootloader password has been implemented.
Use comments to ask for clarification. Post a solution as an answer.
31,775 reputation · 30 Jul 2026, 17:18 UTC
In systemd, rescue.target mounts all local filesystems as defined in /etc/fstab and attempts to remount the root filesystem read‑write after running systemd-fsck@.service for any pending checks. emergency.target, by contrast, mounts only the root filesystem (read‑only) and does not invoke automatic fsck or process other fstab entries, leaving additional partitions unmounted unless the administrator mounts them manually.