Ubuntu 22.04 - How to proceed after increasing disk size?

ipanini

Bit poster
Hi,
I've run into a space limit problem with ubuntu 22.04 vm running on intel mac Ventura. I'm using Parallels Desktop 20 for Mac.
After a reboot I adjusted disk capacity in the vm configuration, from the default 60 GB to 128 GB. The vm refused to boot.
Again after some trial, I managed using Ctrl + Alt + F2 to enter the vm in terminal mode. (without GUI)
I was then able to use parted to resize from /dev/sda3 to 120 GB.
But now the vm will not boot anymore. Using Ctrl + Alt + F2 I can get back to the terminal command line, and did some checking. Files in the /user/Downloads directory are present and seem ok.
It seems like the disk has been resized, but that Ubuntu does not see it? (/dev/sda3 Use% 100%)

What can I do to get Ubuntu back up and running in this situation?
Thanks for helping out!

Image 7.png

Image 3 - parted resize - but still problems.png
 
Hi,
I've run into a space limit problem with ubuntu 22.04 vm running on intel mac Ventura. I'm using Parallels Desktop 20 for Mac.
After a reboot I adjusted disk capacity in the vm configuration, from the default 60 GB to 128 GB. The vm refused to boot.
Again after some trial, I managed using Ctrl + Alt + F2 to enter the vm in terminal mode. (without GUI)
I was then able to use parted to resize from /dev/sda3 to 120 GB.
But now the vm will not boot anymore. Using Ctrl + Alt + F2 I can get back to the terminal command line, and did some checking. Files in the /user/Downloads directory are present and seem ok.
It seems like the disk has been resized, but that Ubuntu does not see it? (/dev/sda3 Use% 100%)

What can I do to get Ubuntu back up and running in this situation?
Thanks for helping out!

View attachment 23427

View attachment 23428

Hi ipanini,

The issue occurred because while the partition was successfully expanded using parted, the filesystem itself was not resized to use the new space. This means that although the disk now has 120 GB allocated, Ubuntu still sees the filesystem as its original size, leading to a 100% usage issue.

To resolve this, you need to resize the filesystem so it can fully utilize the expanded partition. Please follow these steps:

1. Access the terminal using Ctrl + Alt + F2 if you are not already there.
2. Run the following command to resize the filesystem:
sudo resize2fs /dev/sda3

3. Verify the change by running

df -h

This should now reflect the expanded space.

4. Reboot the VM by executing

sudo reboot
 
Back
Top