# Linux Password Recovery

Log in to [VMmanager](https://spacecore.cloud/) and select your virtual server.

<figure><img src="/files/AZsVAV83KG9ZttBx14SF" alt=""><figcaption></figcaption></figure>

Go to the «Menu» section and select «Recovery mode».

<figure><img src="/files/vTfsTYDoKpwzh320Brpe" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/oMrDKroWPxVw2UN5i4HV" alt=""><figcaption></figcaption></figure>

Agree to connect the SystemRescueCD image and reboot.

<figure><img src="/files/k5khhENdDbXVgXeGzSo3" alt=""><figcaption></figcaption></figure>

After using the button, the process of loading the server in recovery mode began.

<figure><img src="/files/apdXUcXv091d2zg3Akri" alt=""><figcaption></figcaption></figure>

Great, the server’s ready.

<figure><img src="/files/oFOHgJTWsinq4gdKa7t5" alt=""><figcaption></figcaption></figure>

Connect to the server via VNC (SSH and sFTP are unavailable).

<figure><img src="/files/YqlhRcy0y7y3T9Y9JHSH" alt=""><figcaption></figcaption></figure>

Use the command «‎`lsblk`»‎ to view all existing server drives.

<figure><img src="/files/SIsxJ7wBvAEcBEgTzhQQ" alt=""><figcaption></figcaption></figure>

We need to mount the main disk partition vda2, we use the command

```
mount /dev/vda2 /mnt
```

<figure><img src="/files/zrQNF8zhoRkfCZnIz2Wr" alt=""><figcaption></figcaption></figure>

Done! Next, let’s specify a new root directory for further work.

<figure><img src="/files/QzV5ec1UVuQgdxusBDfJ" alt=""><figcaption></figcaption></figure>

After execution, you can only use the last command to change the **root** password.

<figure><img src="/files/M5R8sN07fYUX0N2nnoYO" alt=""><figcaption></figcaption></figure>

We ask for a new password and repeat it. We see a message that the user’s password has been successfully changed.

<figure><img src="/files/x8jBEtkDGPr9eBxNFxFM" alt=""><figcaption></figcaption></figure>

Exit recovery mode and reconnect with the new password.

<figure><img src="/files/eBOzB0TdO0EihmyDVNnZ" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/euyR93VnL5toUYaZnubg" alt="" width="202"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://spacecore.gitbook.io/wiki/en/os-and-software/linux-password-recovery.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
