Creating GPT partitions on EFI raw disk using diskpart

I’ve got a raw, blank GPT disk for use in a UEFI system. I need to create the partitions on it using diskpart. The only tutorial I’ve found so far is for diskpart.efi, which I believe is slightly different from the command-line diskpart. MS guide to GPT partitions with diskpart.efi Also the guide says to create a MSR of 32MB, but for a disk>= 16GB I know it needs to be 128MB.

I’m happy doing it with diskpart, just want to be sure I understand the fundamentals. I’m planning on installing, in this order:

  1. ESP partition, size 102 MB (create partition esp size=102)
  2. MSR partition, size 128 MB (create partition msr size=128)
  3. data partition, the remaining space (approx 460GB)

Is this the correct thing to do, or is there anything I’m missing?

Answer

I got around this, but strictly speaking haven’t solved it. When I start up, in BIOS I can choose either ‘legacy boot’ or ‘UEFI boot’. If I choose ‘legacy boot’ and install Windows on the blank disk it works fine. So for some reason when I was choosing ‘UEFI boot’ and setting it up this way, although Windows seemed to work OK, further down the line, after installing drivers etc, it would blue screen on restart.

In summary I’ve learned to simply: format the disk; delete all the partitions; choose ‘legacy boot’ at startup; allow Windows to create the partitions it requires on the disk. Basically I’m avoiding the UEFI side of things.

Attribution
Source : Link , Question Author : kafka , Answer Author : kafka

Leave a Comment