Gparted Error "Unable to satisfy all the constraints on the partition"
Solution 1:
I'm not 100% positive, but I suspect this is your problem:
/dev/sda6 1532825600 1780301823 123738112 83 Linux
/dev/sda7 1780301824 1805438975 12568576 82 Linux swap / Solaris
Most partitioning tools put at least one empty sector between logical partitions and use that space to store the Extended Boot Record (EBR) that describes the following logical partition. In the case of your /dev/sda6
and /dev/sda7
, though, there's no gap between those two partition. This is legal, provided the EBR can be tucked away somewhere else. (sfdisk
can do this, for instance.) It's possible that libparted (upon which parted
, GParted, and several other tools are based) is becoming confused by this. I've not tested how libparted reacts to such disks, though, so I can't be sure that my guess is right.
If this is the problem, then I can think of at least two solutions:
- Using any tool that will enable you to do so, delete
/dev/sda7
. It's swap space, so it doesn't hold any critical data. You can re-create it later, with a gap between it and/dev/sda6
. When you re-create your swap partition, you'll probably have to edit/etc/fstab
to point to the new swap space. - You've got one free primary partition, so you can use FixParts (part of the
gdisk
package in Ubuntu) or the EaseUS tool you used initially to convert/dev/sda7
into a primary partition. Primary partitions don't need EBRs, so the problem should then go away. This method has the advantage that you won't need to edit/etc/fstab
, but you'll also have no free primary partitions. If you really want your swap to be on a logical partition, you can shrink either partition by 1MiB, which will open up enough of a gap that you'll be able to convert back and have it work.