2

I’m going to change MBR to GPT using gdisk but when I type:

sudo gdisk /dev/sda

I have a warning tell me:

Warning! Secondary partition table overlaps the last partition by 33 blocks! You will need to delete this partition or resize it in another utility.

this is a gparted screen of partition I have:

David Foerster
  • 36,890
  • 56
  • 97
  • 151

1 Answers1

1

The answer is given here at unix.stackexchange.com:

According to THIS link, zman0900 says:

GPT writes its partition table to both ends of the disk, unlike MBR which only uses the beginning. So you will need to shrink your last partition by at least 33 blocks (probably 16,896 bytes, assuming 512 byte blocks). If you have or can install gparted, that makes it very easy to do. If boot is the last partition on the drive, then that is the one to shrink.

I was getting this error because my last partition did not leave any space after it. All I had to do was shrink the partition from the rightmost side a little bit (3Mb but could be less), and the result was the following:

"GParted after shrinking the last partition

When I ran gdisk afterwards no warning was thrown.