UbuntuServer 20.04.2 Increase disk size

Discussions about using Linux guests in VirtualBox.
Post Reply
kdiamond
Posts: 18
Joined: 21. Mar 2021, 01:33

UbuntuServer 20.04.2 Increase disk size

Post by kdiamond »

Hi.

I need to change 10GB to 400GB disk size.

I have followed step by step instructions here:
[mod edit: offset URL deleted]
the article is written for Ubuntu 16.04 LTS.
Deleted link to offsite documentation - use the official docs.
Deleted link to offsite documentation - use the official docs.
isize2.jpg (98.53 KiB) Viewed 1938 times
It seems I got everything well, up till the last command which I had to alter.
sudo lvextend -l+100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv

Can anyone suggest the solution to get 400gb disk size?

Thank you
Br,
kd
kdiamond
Posts: 18
Joined: 21. Mar 2021, 01:33

Re: UbuntuServer 20.04.2 Increase disk size

Post by kdiamond »

Solution:

This command was missing
resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv

Br,
ks
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: UbuntuServer 20.04.2 Increase disk size

Post by scottgus1 »

Sounds like you found that after increasing the Virtualbox disk file final size, you then had to increase the partition size inside the VM. Good!

Here is the tutorial: How to Resize a Drive
Post Reply