How to Fix MBR2GPT “Last Partition Too Close to the End of the Disk” Error

Windows 11 requires systems to use the GPT partition style and UEFI boot mode for features like Secure Boot and full compatibility with modern hardware. To help users convert their disks from MBR to GPT without losing data, Microsoft provides the MBR2GPT utility. However, some users encounter the error message “Last partition too close to the end of the disk” when attempting the conversion.

This error occurs because MBR2GPT needs a small amount of unallocated space at the end of the disk to create the EFI System Partition (ESP) and update the partition structure. If the last partition extends to the very end of the drive, the tool cannot complete the conversion and aborts the process.

Fortunately, the issue can usually be fixed by shrinking the last partition or creating enough free space on the disk. In this guide, we will walk you through all the effective solutions to fix the MBR2GPT “Last partition too close to the end of the disk” error in Windows 11.

How to Fix MBR2GPT “Last Partition Too Close to the End of the Disk” Error

1. Validate the Disk Before Conversion

Before making any changes, verify that the disk meets MBR2GPT requirements.

  1. Press Windows + X and select Terminal (Admin).
  2. Run the following command:
mbr2gpt /validate /allowFullOS
  1. Review the validation results.

If the validation reports that the last partition is too close to the end of the disk, proceed with the following methods.

2. Back Up Important Data

Partition operations always carry some risk. Before resizing or modifying partitions, create a backup of important files.

  1. Copy essential files to an external drive or cloud storage.
  2. Create a system image if possible.
  3. Verify that the backup is accessible.

Once your data is safely backed up, continue with the troubleshooting steps.

3. Shrink the Last Partition Using Disk Management

The easiest solution is to shrink the last partition to create unallocated space at the end of the disk.

  1. Press Windows + X and select Disk Management.
  2. Locate the last partition on the affected disk.
  3. Right-click the partition.
  4. Select Shrink Volume.
  5. Enter the amount of space to shrink.

Microsoft generally recommends leaving at least 100 MB to 260 MB of unallocated space for the EFI System Partition.

  1. Click Shrink.
  2. Verify that unallocated space now exists at the end of the disk.

After creating free space, try running MBR2GPT again.

4. Use DiskPart to Shrink the Partition

If Disk Management cannot shrink the partition sufficiently, use DiskPart.

  1. Open Terminal (Admin).
  2. Run the following commands one at a time:
diskpart
list disk
  1. Identify the target disk number.
  2. Select the disk:
select disk X

Replace X with the correct disk number.

  1. Display the partitions:
list partition
  1. Select the last partition:
select partition X
  1. Shrink the partition:
shrink desired=300

This command shrinks the partition by approximately 300 MB.

  1. Exit DiskPart:
exit

Try the MBR2GPT conversion again after creating free space.

5. Disable Hibernation Temporarily

System files such as the hibernation file can sometimes prevent partition resizing.

  1. Open Terminal (Admin).
  2. Run the following command:
powercfg /h off
  1. Restart your computer.
  2. Attempt to shrink the partition again.

After completing the MBR to GPT conversion, you can re-enable hibernation if needed.

6. Disable the Paging File Temporarily

The page file may also prevent Windows from shrinking partitions.

  1. Press Windows + R.
  2. Type sysdm.cpl and press Enter.
  3. Open the Advanced tab.
  4. Under Performance, click Settings.
  5. Go to the Advanced tab.
  6. Click Change under Virtual memory.
  7. Uncheck Automatically manage paging file size for all drives.
  8. Select No paging file.
  9. Click Set and then OK.
  10. Restart your PC.

After shrinking the partition and completing the conversion, re-enable the paging file.

7. Defragment the Drive

If unmovable files prevent shrinking, defragmenting the disk may help.

  1. Press Windows + S and search for Defragment and Optimize Drives.
  2. Open the utility.
  3. Select the affected drive.
  4. Click Optimize.
  5. Wait for the process to finish.
  6. Attempt to shrink the partition again.

Note that SSDs are optimized differently and do not undergo traditional defragmentation.

8. Use Third-Party Partition Software

If Windows tools cannot create sufficient space, third-party partition managers may offer more flexibility.

Popular options include:

  • MiniTool Partition Wizard
  • AOMEI Partition Assistant
  • NIUBI Partition Editor

These tools can move or resize partitions more effectively than Disk Management.

Always back up your data before using third-party partition utilities.

9. Run the MBR2GPT Conversion Again

Once you have created enough free space, rerun the conversion command.

  1. Open Terminal (Admin).
  2. Run:
mbr2gpt /convert /allowFullOS
  1. Wait for the conversion process to complete.

If successful, the disk will be converted from MBR to GPT without data loss.

10. Switch BIOS from Legacy to UEFI

After converting the disk, you must change the firmware settings.

  1. Restart your computer.
  2. Enter the BIOS or UEFI settings.
  3. Locate the Boot Mode setting.
  4. Change it from Legacy or CSM to UEFI.
  5. Save the changes and exit BIOS.

Windows 11 should now boot using GPT and UEFI mode.

Conclusion

The MBR2GPT “Last partition too close to the end of the disk” error occurs because there is not enough free space at the end of the drive for the EFI System Partition. In most cases, shrinking the last partition, disabling hibernation, or using DiskPart to create unallocated space resolves the issue successfully.

Before modifying partitions, always back up important data to avoid accidental loss. Once the conversion is complete and UEFI mode is enabled, your system will be fully compatible with Windows 11 requirements and modern boot features.

Posted by Raj Bepari

I’m a digital content creator passionate about everything tech.