I bought a new laptop without windows. Now i want to install windows 8. I formated entire harddisk(file format = NTFS) and then tried to install windows 8. When selecting the disk to install, it gets a error saying, "windows cannot be installed to this disk. the selected disk has an MBR partition table. on Efi system, windows can only be installed to gpt disks". Please tell me, what i can do?

  • 1
    Windows setup should offer to repartition the disk (maybe under "Advanced" at the drive selection screen). Let it. – Ben Voigt Jan 30 '14 at 18:00
  • 1
    Instead of MBR use GPT. You can use GParted to acomplish this. – Ramhound Jan 30 '14 at 18:01
  • @Ramhound, how can do that? in cmd. because i can't go to windows. – Lakmal Vithanage Jan 30 '14 at 18:03
  • @BenVoigt, there are nothing like that. – Lakmal Vithanage Jan 30 '14 at 18:04
  • 2
    GParted is a Linux tool which you can get any number of ways. As already pointed out. Windows installer itself can also create the partitions for you. – Ramhound Jan 30 '14 at 18:07

Inside windows installer, hit Shift+F10 to get a command prompt, then run diskpart and select the target disk. Zap the drive (with the clean command), create GPT table (new gpt), create the GPT-EFI special partitions.

Step-by-step instructions provided by Microsoft here (For Windows XP x64, newer versions of diskpart such as included in your Windows 8 support all these commands and more)

Then reboot so the firmware finds those partitions and adds the disk to the EFI-native boot order (Windows installer checks this).


As per technet.microsoft.com follow the below steps:

  1. Turn off the PC, and put in the Windows installation DVD or USB key. Boot the PC to the DVD or USB key in UEFI mode. For more info, see Boot to UEFI

  2. Mode or Legacy BIOS mode.

  3. From inside Windows Setup, press Shift+F10 to open a command prompt window. Open the diskpart tool:

  4. Identify the drive to reformat:

    list disk
  5. Select the drive, and reformat it:

    select disk <disk number>
    convert gpt
  6. Close the command prompt window. Continue the Windows Setup installation. When choosing an installation type, select Custom.

  7. The drive will appear as a single area of unallocated space.

  8. Select the unallocated space and click Next.

  9. Windows begins the installation.

  • 1
    Life saver!!! Thanks – Si8 Nov 8 '19 at 1:44
  • 5
    Much better answer than the accepted one as diskpart is not exactly intuitive to use – Jeff Dec 3 '19 at 1:37
  • 3
    It helped , but please take backup of whole hard driver as clean command will clear your hard drive – Saurabh Feb 1 '20 at 15:40
  • 1
    I was helping my friend reinstall windows on the phone and we ran into this. This answer worked flawlessly. Thanks! – clav Jun 3 '20 at 3:58

Not the answer you're looking for? Browse other questions tagged or ask your own question.