Fixes, Hyper-V, Linux, Tips and Tricks, Weird Tech Issues

Error when expanding partition on CentOS Linux on a Hyper-V virtual machine.

Error when expanding partition on CentOS Linux on a Hyper-V virtual machine.

Error creating partition on /dev/sda: Command-line `parted –align optimal –script “/dev/sda” “mkpart \”\” ext2 ******MiB ************b”” exited with non-zero exit status 1: Error: The Backup GPT table is not at the end of the disk, as it should be.  This might mean that another operating ystem believes the disk is smaller.  Fix, by moving the backup to the end (and removed the old backup)?

Warning: Not all of the space available to /dev/sda appears to be used, you can fix the GPT to use all of the space (an extra ********* blocks)( or continue with the current setting?

Error: Unable to satisfy all constraints on the partition.

(udisk-error-quark, 0)

 

Take the following steps to fix:

Use gdisk and verify partitions are correct with p, and use w to write the partition table. If not correct just use q to quit. That should update primary, backup & protective MBR.

 

sudo gdisk /dev/sda

Command (? for help):

credit to this thread

Also recommend using this tool to expand your partition: Gnome Partition Editor

Leave a Reply

Your email address will not be published.