# Disk space expansion

The instruction is relevant in case of purchase of additional storage space for services at the Contabo location.

{% hint style="danger" %}
Please note that expansion is possible within the same architecture (switching from **Name** to **Name** or from **SSD** to **SSD**). If you switch, for example, from an **NVMe** drive to an **SSD**, then a complete disk replacement with data deletion is required.
{% endhint %}

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

Connect to the virtual server. Then we use the command to install the necessary software.

```
apt install cloud-utils -y
```

We get information about the used section of the system. In our example (and as a rule, on all Contabo VPS servers), this is sda3

```
mount | grep ' / '
```

We use commands to expand the drive.

```
sudo growpart /dev/sda 3
```

```
sudo resize2fs /dev/sda3
```

{% hint style="info" %}
In both cases, the digit »3» denotes the drive partition used. Replace with your value if necessary.
{% endhint %}


---

# 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/contabo/vps-resize.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.
