Post by Pascal Hambourg Post by Linux Ubuntu
What's the best way to resize the partition in this picture?
Delete the swap partition (and the line in /etc/fstab).
Delete the extended partition.
Extend the root partition.
That would be the easiest, especially since the only partition in the
extended partition is a scrapable swap. If there was n important
partition with data such as /home is can be done in gparted but takes a
1) resize extended partition (cyan in gparted) to the physical end of drive
2) move logical partitions with extended partition to the right side of
the extended partition
3) resize the left side of extended partition to shrink to fit the
logical partition within
4) resize the originally targeted primary partition to fill the newly
created space on the right.
It works, have done it many times moving systems to larger drive from an
image. You do have to use a live session of course. Often you may have
to reinstall grub, so bet to just do it while you have a live session
going. Looks like a MBR record install so just a couple of commands
assuming '/' is sda1
sudo mount /dev/sda1 /mnt
sudo grub-install --boot-directory=/mnt/boot /dev/sda
LITTLE WORKS STUDIO