Merging unallocated spaces as a single unallocated space to install windows

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.

3

4 Answers

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.
2

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

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like