I have an Ubuntu (v20.04) VM in VMWare. I increased (2x from 20G to 40G) the hard disk size. How do I add that space to the file system?
From lsblk, I have the following: sda is 40G type disk which is correct (2x previous)
NAME SIZE TYPE
sda 40G disk
sda1 1M part
sda2 1G part /boot
sda3 19G part
|
L -ubuntu--vg-ubuntu--lv 19G lvm /
Then I try to do sudo resize2fs /dev/sda3
and I get
Device or resource busy while trying to open /dev/sda3
Couldn't find filesystem superblock.
I was trying to follow some of the techniques in the question Resize dev/sda2 Ubuntu VMWare But I get to step 7 and do the resize and get this error.
Is there a better way to go about this or is more simply is there a way to get the extra space into my filesystem.
(I would love to use gparted but I can't seem to make room for it to install - if I figure out a working way to add the extra space, that will be one of the first utilities I'll add!)