Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Rescue / Emergency Mode

Direct answer

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.

When to use this

Use it to fix fstab mistakes, reset passwords, repair filesystems or broken services.

First 30 seconds

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.

Operational verification

kernel parameter selects rescue/emergency target → minimal system with a root shell → repair → reboot to the default target

Evidence · next step

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
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandjournalctl -xb
Scope / prerequisiteUse it to fix fstab mistakes, reset passwords, repair filesystems or broken services.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points

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.

Key checks
  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /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, or 1, 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.targetemergency.target
File systemsLocal file systems mountedOnly root, often read-only
ServicesVery fewNone
Typical causeChosen by the administratorEntered automatically after a mount or fsck failure
Kernel parametersystemd.unit=rescue.target (or rescue, 1)systemd.unit=emergency.target (or emergency)
Requires the root passwordYes (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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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:

ModeHowProvides
rescue.targetsystemd.unit=rescue.targetRoot shell, local filesystems mounted, no network/services
emergency.targetsystemd.unit=emergency.targetRoot shell, root mounted read-only, nothing else
rd.breakKernel argShell inside initramfs before switch_root (sysroot at /sysroot)
Rescue mediaBoot ISO → RescueChroot 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).

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
linux rescue modesystemd emergency modeemergency.targetrescue.target
Embedded reference data

Quick lookup tables

Rescue / Emergency Mode operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Rescue / Emergency Mode.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateRescue / 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 verificationPin 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 chainnormal boot failure → recovery target/shell selection → minimal root/device/service environment → evidence capture → targeted repair → normal target transition/reboot → service/workload verificationTrace requested/configured state through effective state to the observed workload result.
Failure boundaryRecovery-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 evidenceCorrelated 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 verificationUse this observation only for the specific claim it actually supports.
Evidence limitIt 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 checkContinue 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 boundaryRescue / Emergency Mode
Topic pathBoot Process → Rescue / Emergency Mode
Runtime stateRescue / 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 chainnormal 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 boundaryRecovery-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 ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?