Estimated reading time: 2 minutes.
A few days ago, I recovered from repairing an ACER laptop whose hard drive no longer worked. Hard drive cleaning and hard drive repair failed, no other solution but to install a new one. I had a 500 GB hard drive hanging around the house (my wife’s old laptop hard drive that had been replaced by an SSD hard drive) so I installed it in this laptop. I just had to reinstall Windows 10 from a USB key. Pretty easy, right !?
But after creating the Windows 10 installation media on a USB drive, and starting the Windows 10 installation, I had the bad surprise of having a fatal error while installing Windows 10 with the message following error: “Windows cannot be installed on this disk. The selected disk has an MBR partition table. On EFI systems, Windows can only be installed on GPT disks.” The problem was therefore located in the type of partition of the disk, an MBR type partition instead of a GPT partition. This is how I solved the problem.
Change MBR partition to GPT partition in command line
So I will explain to you how to transform an MBR type partition into a GPT type partition to be able to install Windows 10 on your hard drive.
I am assuming that you have already created the Windows 10 installation USB key and that you are in the process of installing Windows 10. You have received the error “Windows cannot be installed on this disk. The selected disk has an MBR partition table. On EFI systems, Windows can only be installed on GPT disks.” during installation ? So follow this tutorial:
- On the Windows installation screen, do not click on the button Install now but click at the bottom left on Repair the computer then on Troubleshooting then Command Prompt
- In the Windows 10 command prompt, type: diskpart then on the key Entrance to validate the order. (Editor’s note: all the commands to be entered afterwards must be validated by the Enter key to be taken into account.)
- Grab diskpart to list the disks present which are represented by a number
- Taper select disk
Example in my case: select disk 0
- Grab clean to clean the partition
- Taper : convert gpt to convert MBR partition to GPT partition
And there you have it, normally you’re done, you can now resume installing Windows 10 on your new GPT partition, everything then went correctly for me.