I have a laptop with a dual boot Windows/Ubuntu. I'd like to move and resize the partitions, as the default installation put Ubuntu on a 12GB partition and I'd like to use more. I have booted my system from a USB stick, started G-parted, but the situation looks a bit complex: my Ubuntu partition is blocked by the Linux swap partition and I don't know how to move it.

enter image description here

Partition /dev/sda5 is not needed, (it's Windows D disk).


Here's what I would do:

  1. Backup your important data! Messing with partitions is dangerous!

  2. Delete the sda7 swap partition and sda5 data partition, and extend your main sda6 to fill all the unallocated space except 8GB at the end (which you will use for your new swap partition)

  3. Create a new swap partition in the remaining 8GB of unallocated space

  4. Follow this Q&A on Superuser to change your installation to use your new swap partition

|improve this answer|||||
  • Thanks, it worked, I had to re-install GRUB after it as it was corrupted, but after fixing this I had my partitions resized (and no loss of data). – toti08 Jan 25 '18 at 10:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.