# Rescue Mode

> You start a server from a spare system. Then you can fix its broken disk.

**Field:** Infrastructure  
**Category:** Renting a Server (VPS)  
**Also known as:** Rescue System, Recovery Mode (Server), Rescue Boot

## Think of it like

Think of it like a tow truck. Your car will not start, so another engine carries it to be fixed.

## Definition

Rescue mode starts your server from a small spare system instead of its own disk. The provider loads that system over the network. Your own disk sits there untouched, so you can open it and fix files on it. You use it when the server will not boot at all. When you are done, you restart it normally.

## Example

Emma breaks a boot file and her server will not start. She turns on rescue mode, opens her disk and puts the file back.

## Example code

```bash
mount /dev/sda1 /mnt
nano /mnt/etc/fstab
```

In rescue mode, open the server's own disk and fix the file that broke the boot.

## Why it matters

It saves a server that will not start, and keeps the data on its disk.

## Common mistake

Fixing files in the rescue system and not on the mounted disk. Those changes vanish at the next restart.

## Three principles

- **Spare system.** Loaded by the provider.
- **Your disk waits.** Open it and fix it.
- **Last resort.** When nothing else boots.

## Related terms

- [VPS Web Console](https://learn.benibix.com/term/infrastructure/web-console)
- [Virtual Private Server (VPS)](https://learn.benibix.com/term/infrastructure/virtual-private-server)
- [Root Directory (/)](https://learn.benibix.com/term/infrastructure/root-directory)
- [systemd](https://learn.benibix.com/term/infrastructure/systemd)

## Told apart from

- [Web Console vs Rescue Mode](https://learn.benibix.com/compare/web-console-vs-rescue-mode): People think the web console and rescue mode are the same way back in, and they are not. The web console shows the screen of a server that still runs. You use it to log in when SSH is blocked. Rescue mode starts a spare system for a server that will not boot. You use it to fix the disk.

## Taught in

- [Web Console and Rescue Mode](https://learn.benibix.com/learn/infrastructure-vps/web-console-and-rescue-mode): VPS, 5/7

![A timeline for one server. At creation, a cloud-init file installs nginx on first boot. Later, a web console in the browser shows the server's screen when SSH is down. When the server will not boot, rescue mode starts a small system from the network so the disk can be mounted and fixed.](https://learn.benibix.com/diagrams/inf3-provisioning.svg)

---

Source: https://learn.benibix.com/term/infrastructure/rescue-mode
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
