I'm trying to install windows 10 again(virus issues) along with ubuntu 18.04. Using windows 10 iso usb drive I've cleared the windows partition but I don't know why Gparted is unable to merge these 2 unallocated space as a single un allocated space. see this

While installing windows I'm also getting the problem that my partitions are MBR and windows only allow GPT partitions so I'm unable to install windows 10 too.

  • 1
    askubuntu.com/questions/84501/… provides an answer to the MBR>GPT issue – K7AAY Jul 12 '18 at 18:50
  • Welcome to AskUbuntu! If an answer solved your issue, click the checkmark next to it to mark your question as solved. It's not necessary to add [solved] to the title :) – Amith KK Jul 13 '18 at 14:27
  • If you found a solution to your problem and it is not contained in an answer here, it is perfectly fine to answer your own question. But please don't link those video tutorials. – danzel Jul 13 '18 at 23:54

This is because the two spaces are not contigious on the drive and hence you cannot merge them. To work around this do the following steps:

  • Boot from a Ubuntu LiveUSB and open gparted
  • Extend /dev/sda1 (might be named differently) into one of the unallocated spaces
  • Perform operations
  • Now resize /dev/sda1 such that the now unallocated space is in the same side as the already existing unallocated space.
  • Perform operations

You'll have to add the space to /dev/sda1 (the Extended partition) before adding the space to an adjacent partion contained within the /dev/sda1 Extended partition.


To collect the free space together you need to.

  1. Boot off a livecd (you can't do this from within your main ubuntu install because it will involve moving your ubuntu partition)
  2. Launch gparted.
  3. Move the start or end of the extended partition.
  4. Move the partitions inside the extended partition.
  5. Move the other end of the extended partition.
  6. Hit the go button
  7. Wait a while for the data to be moved.
  • Would the downvoter care to explain what they think is wrong in this answer? – Peter Green Jul 13 '18 at 13:53
  • This worked, don't know why someone downvoted your answer. – Ashish Siwal Jul 13 '18 at 14:14

That's impossible because the unallocated spaces are physically before and after the partition in the middle.

  • now what should I do mate?? – Ashish Siwal Jul 12 '18 at 18:48

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.