Use it to fix fstab mistakes, reset passwords, repair filesystems or broken services.
Rescue / Emergency Mode
Rescue mode (rescue.target, single-user) mounts filesystems and starts a root shell with few services; emergency mode (emergency.target) gives a root shell with only / mounted read-only. Both are used to repair a system that cannot boot normally.
1. Add systemd.unit=emergency.target at the GRUB menu (e).
2. mount -o remount,rw / and mount others as needed.
3. Fix the cause (fstab, failed service, password).
4. systemctl daemon-reload if units changed.
5. systemctl default or reboot.
kernel parameter selects rescue/emergency target → minimal system with a root shell → repair → reboot to the default target
For Boot Process → Rescue / Emergency Mode, continue with the first unproven Topic check: Identify whether the environment is initramfs shell, emergency.target, rescue.target or external rescue media and record the failed boot evidence first. If that boundary is healthy, advance to the adjacent check: Verify root mount mode, required filesystems, device/LVM/RAID/encryption state and availability of networking/services before assuming normal capabilities. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
journalctl -xbVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
normal boot failure → recovery target/shell selection → minimal root/device/service environment → evidence capture → targeted repair → normal target transition/reboot → service/workload verification
Healthy evidence: the recovery environment is correctly identified, only the failing step is changed, and the host subsequently completes normal boot with required services/workload healthy.
Step 2 Verification and output interpretation Verify boundary
Existing fast checks for this Topic. - Identify whether the environment is initramfs shell, emergency.target, rescue.target or external rescue media and record the failed boot evidence first.
- Verify root mount mode, required filesystems, device/LVM/RAID/encryption state and availability of networking/services before assuming normal capabilities.
- Make the smallest repair to the failing step; avoid broad enable/disable or filesystem mutations without captured state.
- Exit or reboot into the original default target and verify normal boot, services, login and workload plus a second clean boot when persistence matters.
Verification chain. normal boot failure → recovery target/shell selection → minimal root/device/service environment → evidence capture → targeted repair → normal target transition/reboot → service/workload verification
Step 3 Commands Verify boundary
# at GRUB: add systemd.unit=rescue.target (or emergency.target)
systemctl rescue
journalctl -xb
Step 4 Failure modes and next checks Narrow the fault
Suspicious evidence: a recovery shell is mistaken for resolution, broad changes destroy evidence, or the host never retests the original normal boot path.
Step 5 Common mistakes Narrow the fault
- No console access to use rescue mode.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Boot into it by adding systemd.unit=rescue.target or emergency.target (or rd.break for the initramfs) at the GRUB menu. In emergency mode remount root writable: mount -o remount,rw /. If root's password is locked, use installation media.
systemd-analyze— boot time per stagejournalctl -b -p err— errors in this bootjournalctl --list-boots— previous bootscat /proc/cmdline— kernel command line used
ReferenceWhat it is1 section · depth on demand
Core model
Use rescue/emergency mode as a diagnostic environment, not a success state. Distinguish rescue.target from emergency.target and initramfs emergency shells, confirm whether root is mounted read-only/read-write and which dependencies are active, capture evidence before repair, then exit/reboot through the original normal boot path to verify recovery.
ReferenceImportant terms & boundaries5 sections · depth on demand
What this shows and what it does not
Recovery-mode success shows only that a reduced environment is usable; closure requires a normal boot through the original path and successful workload verification.
In depth
Rescue and emergency mode
When a system can't boot normally, systemd offers two recovery targets. The systemd.special(7) manual page describes the difference:
- rescue.target pulls in the base system, including mounted file systems, and starts a rescue shell, with only the most basic services. It's selected with
systemd.unit=rescue.target, or1, on the kernel command line. - emergency.target is the most minimal: a shell with no other services and no mounts. systemd uses it automatically when, for example, a required file system can't be checked or mounted.
Rescue and emergency compared
| rescue.target | emergency.target | |
|---|---|---|
| File systems | Local file systems mounted | Only root, often read-only |
| Services | Very few | None |
| Typical cause | Chosen by the administrator | Entered automatically after a mount or fsck failure |
| Kernel parameter | systemd.unit=rescue.target (or rescue, 1) | systemd.unit=emergency.target (or emergency) |
| Requires the root password | Yes (usually) | Yes (usually) |
Typical repair: a broken fstab entry
A disk that was removed, or a mistyped UUID in /etc/fstab, sends the system into emergency mode. The fix is to correct or comment out the entry. nofail on non-essential mounts prevents the problem in the first place.
Give root password for maintenance
(or press Control-D to continue):
emergency# journalctl -xb -p err --no-pager | tail -5
systemd[1]: dev-disk-by\x2duuid-9e2b...device: Job dev-disk-by\x2duuid-9e2b...device/start timed out.
systemd[1]: Dependency failed for /srv/data.
emergency# mount -o remount,rw /
emergency# blkid | grep -i data
emergency# vi /etc/fstab
UUID=9e2b... /srv/data xfs defaults,nofail 0 0
emergency# systemctl daemon-reload
emergency# mount -a
emergency# systemctl default
Locked root account
On distributions where root has no password (Ubuntu, for example), the maintenance prompt may refuse access. Then boot with rd.break (dracut) or init=/bin/bash instead, or use installation media. systemctl default at the end leaves recovery mode and continues the normal boot to default.target.
Documented example, not captured output.
How it works at runtime
Rescue / Emergency Mode is part of Boot Process → Rescue / Emergency Mode. Rescue / Emergency Mode covers reduced systemd boot environments used to recover a Linux host when normal boot cannot converge, with emphasis on minimal dependencies, root filesystem state, console access and safe transition back to normal boot.
Topic-specific state model. Rescue / Emergency Mode covers reduced systemd boot environments used to recover a Linux host when normal boot cannot converge, with emphasis on minimal dependencies, root filesystem state, console access and safe transition back to normal boot.
Interpretation rule. - Emergency shell available ≠ root cause is in systemd; storage/initramfs/filesystem failures can drop into similar recovery paths.
- Root shell obtained ≠ root filesystem is writable or all normal mounts/dependencies are active.
- Manual service start in rescue ≠ persistent normal-boot dependency/configuration is correct.
- Normal boot works once after rescue changes ≠ repair is durable until the original boot path and workload are retested.
Quick reference
Rescue and emergency modes:
| Mode | How | Provides |
|---|---|---|
| rescue.target | systemd.unit=rescue.target | Root shell, local filesystems mounted, no network/services |
| emergency.target | systemd.unit=emergency.target | Root shell, root mounted read-only, nothing else |
rd.break | Kernel arg | Shell inside initramfs before switch_root (sysroot at /sysroot) |
| Rescue media | Boot ISO → Rescue | Chroot into installed system |
Root password reset (RHEL): boot with rd.break → mount -o remount,rw /sysroot → chroot /sysroot → passwd root → touch /.autorelabel (SELinux) → exit twice. Both rescue and emergency require the root password unless the root account is locked (then use rd.break or rescue media).
Limits and how it fails
Primary failure point. Recovery-mode success shows only that a reduced environment is usable; closure requires a normal boot through the original path and successful workload verification.
ReferenceConfiguration & state1 section · depth on demand
Configuration, persistence and lifecycle
Distribution/platform context. Rescue / Emergency Mode owns reduced recovery environments and transition back to normal boot. Boot Process owns cross-stage root-cause isolation; specialist storage/filesystem/systemd/security branches own repair depth.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Boot Process → Rescue / Emergency Mode. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://systemd.io/ · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Rescue / Emergency Mode operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Rescue / Emergency Mode.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | Rescue / Emergency Mode covers reduced systemd boot environments used to recover a Linux host when normal boot cannot converge, with emphasis on minimal dependencies, root filesystem state, console access and safe transition back to normal boot. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin exact host + failed boot attempt → identify firmware mode/boot entry → capture bootloader entry + kernel/initramfs + command line → prove root-device discovery and early-userspace handoff → inspect PID 1 transaction/target → change one demonstrated cause → reboot through original path → verify service/workload readiness and regression. | Use the shortest evidence path first; a fast check is a boundary test, not blanket proof. |
| Verification chain | normal boot failure → recovery target/shell selection → minimal root/device/service environment → evidence capture → targeted repair → normal target transition/reboot → service/workload verification | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | Recovery-mode success proves only that a reduced environment is usable; closure requires a normal boot through the original path and successful workload verification. | Stop broad troubleshooting at the first boundary that is not supported by evidence. |
| Positive evidence | Correlated Linux boot evidence can establish this proof path: normal boot failure → recovery target/shell selection → minimal root/device/service environment → evidence capture → targeted repair → normal target transition/reboot → service/workload verification | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It does not independently prove behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. Recovery-mode success proves only that a reduced environment is usable; closure requires a normal boot through the original path and successful workload verification. | Do not promote a local success signal into end-to-end or adjacent-dependency proof. |
| Next troubleshooting check | Continue from the first unproven handoff: capture the exact artifact/configuration and downstream state, change only the demonstrated cause, reboot through the original path, then repeat the original service/workload and adjacent regression checks. | Continue to the next unresolved boundary while preserving the original test condition. |
Rescue / Emergency Mode · operational reference
Compact Linux state, persistence, verification and boundary reference for fast lookup.
| Reference boundary | Rescue / Emergency Mode |
|---|---|
| Topic path | Boot Process → Rescue / Emergency Mode |
| Runtime state | Rescue / Emergency Mode covers reduced systemd boot environments used to recover a Linux host when normal boot cannot converge, with emphasis on minimal dependencies, root filesystem state, console access and safe transition back to normal boot. |
| Fast checks | - Identify whether the environment is initramfs shell, emergency.target, rescue.target or external rescue media and record the failed boot evidence first. - Verify root mount mode, required filesystems, device/LVM/RAID/encryption state and availability of networking/services before assuming normal capabilities. - Make the smallest repair to the demonstrated failed boundary; avoid broad enable/disable or filesystem mutations without captured state. - Exit or reboot into the original default target and verify normal boot, services, login and workload plus a second clean boot when persistence matters. |
| Verification chain | normal boot failure → recovery target/shell selection → minimal root/device/service environment → evidence capture → targeted repair → normal target transition/reboot → service/workload verification Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary. |
| Failure boundary | Recovery-mode success proves only that a reduced environment is usable; closure requires a normal boot through the original path and successful workload verification. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload. |
| Persistence rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |