> ## Documentation Index
> Fetch the complete documentation index at: https://www.latitude.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Rescue mode

Rescue mode is useful when you lose access to your server and SSH becomes unreachable. It allows you to recover data and make changes to the instance without having to use [Remote access](/servers/remote-access) or reinstall the device.

When you put a server in rescue mode, a lightweight Ubuntu image is loaded into your server's memory. This allows you to SSH to the machine and do maintenance.

<Warning>Rescue is not available for servers running Windows.</Warning>

<Note>Rescue mode is not available at certain locations. If you don't see this option in the **Actions** menu, it's not supported at your server's location.</Note>

## Booting into Rescue Mode

In order to boot into rescue mode, simply go the server page, click **Actions** and select *Rescue mode*.

<img src="https://mintcdn.com/latitudesh/jTa6J8Hv5F4W4vnJ/images/product/14.Docs25Q4.RescueMode1.png?fit=max&auto=format&n=jTa6J8Hv5F4W4vnJ&q=85&s=be8a23da7be8c651aa58b8bde639ae06" alt="Rescue mode activation" width="2940" height="1450" data-path="images/product/14.Docs25Q4.RescueMode1.png" />

### Accessing the server

When the server finishes loading the rescue operating system, a user and password with root access will be shown on the server page.

<img src="https://mintcdn.com/latitudesh/jTa6J8Hv5F4W4vnJ/images/product/15.Docs25Q4.RescueMode2.png?fit=max&auto=format&n=jTa6J8Hv5F4W4vnJ&q=85&s=dbb637bdb7a1f9bee9efe98f84d5c9f4" alt="Rescue mode credentials" width="2940" height="1450" data-path="images/product/15.Docs25Q4.RescueMode2.png" />

### Mounting the root partition

The first thing to do is find the root partition. Running `lsblk` will retrieve all partitions. Find the disk that represents the root partition of your server. This is usually the largest partition from the ones listed.

Mount the partition replacing the placeholder with the root partition name:

```shell theme={null}
sudo mount /dev/sda2 /mnt -t ext4
```

Here the root partition `/dev/sda2` is being mounted to the `/mnt` dir.

Root partition for servers with NVMe disks are slightly different, similar to the example below:

```shell theme={null}
sudo mount /dev/nvme0n1p1 /mnt -t ext4
```

When the partition mounts successfully, go to the `/mnt` directory to work on your files.

```shell theme={null}
cd /mnt
```

## Troubleshooting

If issues are found entering or exiting rescue mode, the server will return to its previous state, either Deployed or Failed, depending on the case. This is an indication to use [Remote access](/servers/remote-access) to troubleshoot your server instead.
