Auto Expand last partition using parted
I was having issues finding the correct way to add the remaining free space to the last partition (afraid to do so since it was on a live machine). I was finally able to figure it out.
Use this to see free space
parted /dev/sdX print free
Then this to expand
parted /dev/sdX
(parted) resizepart
Partition number? ENTER NUMBER FROM ABOVE THAT HAS THE LVM
End? [1075MB]? 100%
(parted) q
Then now since this was on a server that uses LVM you have to resize the PV
pvresize /dev/sdXx
This has now been completed
If partition is extended you have to extend the extended volume than the logical
<- OTHERS ->