> For the complete documentation index, see [llms.txt](https://spacecore.gitbook.io/wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://spacecore.gitbook.io/wiki/en/contabo/vps-resize.md).

# 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 %}
