> 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

{% hint style="danger" %}

### This content is outdated

**The knowledge base has moved →** [**https://wiki.spacecore.pro/**](https://wiki.spacecore.pro/)

This wiki is no longer updated. All current guides and articles are at the new address.
{% endhint %}

{% content-ref url="<https://wiki.spacecore.pro/>" %}
<https://wiki.spacecore.pro/>
{% endcontent-ref %}

***

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="https://287241268-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyXvdNIxNLIOcexv7AfU2%2Fuploads%2FQtRbr8PyxPbAp4PdCdSS%2Fimage.png?alt=media&amp;token=b6485d6b-8033-4d0e-beb6-43bf638d1855" 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 %}
