Option A: Let parted “Fix” the GPT, Then Resize #
- Run parted again:
sudo parted /dev/sda
When it says:
Warning: Not all of the space available to /dev/sda appears to be used...
Fix/Ignore?
type Fix (instead of Ignore). Let parted correct the GPT PMBR mismatch. Now try resizing:
(parted) print
(parted) resizepart 3 100%
(parted) quit
Resize the Physical Volume:
sudo pvresize /dev/sda3
Extend the Logical Volume:
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv
Grow the Filesystem (ext4 example):
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
Check:
df -h
Now /dev/mapper/ubuntu–vg-ubuntu–lv should reflect near 100 GB.