# What would be the simplest way to Expand SSD (HD) in Rocky Linux 9

**URL:** <https://forums.rockylinux.org/t/what-would-be-the-simplest-way-to-expand-ssd-hd-in-rocky-linux-9/16818>\
**Category:** Rocky Linux Help & Support\
**Tags:** rocky-linux-9\
**Created:** [December 11, 2024, 1:32pm UTC](https://forums.rockylinux.org/t/what-would-be-the-simplest-way-to-expand-ssd-hd-in-rocky-linux-9/16818 "2024-12-11T13:32:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![etpi](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@etpi](https://forums.rockylinux.org/u/etpi)\
**Post date:** [December 11, 2024, 1:32pm UTC](https://forums.rockylinux.org/t/what-would-be-the-simplest-way-to-expand-ssd-hd-in-rocky-linux-9/16818/1 "2024-12-11T13:32:32Z")

</div>

I would like to clear up this doubt, which for me (beginner) is a little complicated.  
How do I expand an SSD in Rocky Linux 9, I have a contract server at the company Contabo, and I requested an increase in storage and they told me to run some commands, as per the link below:

> **[Changing the Partition Layout of Your VPS after OS Installation](https://contabo.com/blog/changing-the-partition-layout-of-your-vps-after-os-installation/)**
>
> Partitions are logically separated parts on a hard drive that are treated as if they were separate hard drives. Here you can learn how to change the Partition Layout of your VPS.

be able to expand a certain directory:

/dev/sda3 1.6T 254G 1.3T _ **17%** _ /  
/dev/sda2 1.9G 176M 1.7G _10%_ /boot

But if you look at sda2 it has 10% which doesn’t make sense. lol

How can I solve it and leave sda2 with the correct % values?

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [December 11, 2024, 3:26pm UTC](https://forums.rockylinux.org/t/what-would-be-the-simplest-way-to-expand-ssd-hd-in-rocky-linux-9/16818/2 "2024-12-11T15:26:54Z")

</div>

First, what do you actually have?

```bash
lsblk

```

* * *

A physical SSD (and HDD) has fixed size. However, a (VPS) server may be offered one (or more) block(s) from some larger storage system, a “volume”, whose size can be changed later. The volume looks like SSD/HDD.

“Partitions” – consecutive blocks – are allocated from the drive/volume. There is also “partition table” on the volume that lists which part of the volume belongs to what partition. Within the part of volume that is one partition there is then data and metadata of one “filesystem” (or something else, like LVM). Regardless of details, filesystems are _mounted_. One filesystem starts from `/`. Others look like they were subdirectories within. (E.g. `/`, `/boot`, and `/boot/efi` are usually three different filesystems, while `/usr` is a real subdirectory of `/`, and `/boot/loader` is a real subdirectory of `/boot`.)

* * *

The (simple) resize requires that there are additional, unallocated sectors on the volume after the partition that should get bigger. Partition table is updated to state that the end of that partition is later than now. That makes it bigger. Then one has to also tell the filesystem that it can use more sectors than now, so it starts to use all the sectors of the partition.

---

<div class="post-metadata">

**Author:** ![etpi](https://avatars.discourse-cdn.com/v4/letter/e/8e8cbc/32.png) [@etpi](https://forums.rockylinux.org/u/etpi)\
**Post date:** [December 16, 2024, 6:58pm UTC](https://forums.rockylinux.org/t/what-would-be-the-simplest-way-to-expand-ssd-hd-in-rocky-linux-9/16818/3 "2024-12-16T18:58:31Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/2X/6/666a911f8a880bf8f0a81c7278bf41c62695b9bd.png)

Does this help at all? lol

Now I need to expand the size of my VPS SSD  
I have some simple and very easy way for a beginner to do it without it being bad in production. lol

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [February 14, 2025, 6:59pm UTC](https://forums.rockylinux.org/t/what-would-be-the-simplest-way-to-expand-ssd-hd-in-rocky-linux-9/16818/4 "2025-02-14T18:59:28Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
