Convert Windows 7/8/10 Installation from Legacy to UEFI Without Data Loss (Simpler Method)

How to convert Legacy to UEFI Without Data Loss (Simpler Method)

I previously had a tutorial for this at but is was fairly complicated. This is a simplified process.

Please note that this method has been tested only for 64bit installations.

1. Download gpt-fdisk (gdisk) for Windows.
2. Copy the binary to a known location.
3. Boot into Windows Recovery Environment.
– If you don’t have one, download Windows10ISO from:
– Create a bootable USB by following or by burning the ISO to a DVD.
4. Shutdown Windows and boot using this media (Legacy or UEFI Mode).
5. Get to the command prompt. Either by pressing Shift+F10 or by navigating to it.
6. Go to diskpart and find out the disk identifier for your Windows installation.
list disk
sel disk X
list par
7. Navigate to the location where gdisk binary is kept and type:
gdisk -l X: (Replace X with the disk number)
This will list out the partitions available in the disk. Make sure this is the one your want to convert.
8. Now, convert the partition table from MBR to GPT.
gdisk X:
Type w to write changes. Press Y whenever prompted.
9. Type the following commands:
sel disk X (Replace X with the disk number)
list par
# Now we make some space for our EFI partition
# Note the partition number of the partition which you want to shrink
sel par X (Replace X with the partition number)
# You may delete the System Reserved partition and replace it with the EFI partition. To do that, type:
# sel par X (Replace X with the System Reserved Partition)
# del par override
# The shrink command is not required if you do the above two commands.
# I’ll just go ahead and shrink. 500MB extra doesn’t matter to me 😀
shrink desired = 200 minimum = 200
# The following commands are common:
create par efi size = 200
format fs = fat32 quick # Format this with fat32 file system
assign letter = Z:
9. Copying boot files.
Find out the partition in which Windows is installed. Note, the partition letter here might be different than the partition letter you see in Windows. Perform dir X: on each partition letter you think can have the Windows installation and confirm X. Then type:
bcdboot X:Windows /l en-us /s Z: /f ALL
10. Done. Now reboot in UEFI mode.

Let’s check if we have indeed booted in UEFI or not!!
Type msinfo32 in run and hit enter.
Yay!! Done!

Windows 7 Users Please Note: For Win7 users, one can either use a Win8 or Win10 USB/DVD, or use the newer version of bcdboot.exe from

Music: 00:00 – 05:16
Daily Beetle by Kevin MacLeod is licensed under a Creative Commons Attribution license (

Music: 05:17 – 11:53
Cryin In My Beer by Audionautix is licensed under a Creative Commons Attribution license (

Music: 11:54 – 14.25
‘Calypso Beach Walk’ By ‘Doug Maxwell/Media Right Production’

Wanna support me? Visit:

Nehal J Wani


  1. Gosh! Thanks very much! I've just managed to convert Windows Vista to UEFI!!
    Everyone thought there was NO possibility for windows Vista to boot in EFI mode.


  3. mbr2gpt tool is included in WinPE, also it converts from MBR to GPT without data loss or 3rd party software and also it is 1st party software (included software)

  4. virtual pc's don't count.

  5. i cant install win7 64 bit on uefi mode wenn switched to uefi in bios , but it works only when i switch to legcy ..
    will this fix the issue ?

  6. Great work on the video. All of this hinges on the excellent utility GPT-Fdisk (gdisk). It would be great to add the link to download in your #1 instruction in the description:

  7. this still wont work if your main board does not have UEFI support that is older computers that still use BIOS

  8. This worked like a Charm!!! Real easy to follow along and get it done! Great video along with your others!!!

  9. Muito bom, só poderia ser mais dinâmico o vídeo.

  10. Hi bro, I m success in this process but next install a os it need format complete hdd please help me how to fix it…? Please

  11. Thanks !! very helpful !

  12. it worked very well thank you 🙂

  13. Thanks for great job. It works.

  14. It would of been better had you shown an actuall win 7 MBR installation for this rather then WIN10 which installs in EUFI mode by default (clean install from usb)

  15. hi Nehal..
    I have Linux 7 that needs to be installed on Oracle x72 hardware .. UEFI boot usb creation seems impossible .. it wont detect .. any help there

  16. Thx for the info. Recently Microsoft came up with another command called MBR2GPT, which has made the process much simpler. On another related topic: after converting my SSD from MBR to GPT, and Win10 correctly booted via UEFI (and confirmed with msinfo command), the “UEFI Firmware Setting” option is still missing from Recovery -> [Restart Now], after mucking around for a whole day and managed to almost destroy the boot files, I am still none-wiser 😓

  17. im getting an error: Recovery your PC/Device needs to be repaired A required device isnt connected or can't be accessed. Error code: 0xc0000225

  18. IT WORKED!! Thanks so much.

  19. Just did it rebooting to see if I'm in uefi mode

  20. When i try to select the gdisk64.exe it shows.usage gdisk64.exe [-1] device file. Pls help me

  21. Thanks you so much..👌👌

  22. Helped a lot. Worked perfectly for me. Thanks

  23. What to do, if I dont have "system reserved" -partition at all? I need to leave my cmd prompt running until I get an answer 😀

  24. This works even though I got stuck on the last part creating a bcdboot start partition. I then contacted Nehal and he is great, he really help me to solve my problem. Thank You !!!

  25. Damn you is lost….i had to it again…😤😤😤😤😈

  26. I'm not able to download gdisk …will u plzz give me another link to download it

  27. Last wala work nai kar raha hai bro

  28. Thanks!! It worked for me for Windows Vista, 7, 8.1 and 10 and helped me a lot.
    Some people may have problems with Windows Vista or 7 in UEFI Class 3 for not supporting the INT10 video mode, supported by UEFI Class 2 in a hybrid mode between UEFI and CSM.

    There is a tutorial on some website explaining how to remove the basic adapter driver so that Windows 7 and Vista can start over pure UEFI Class 3, but it is for advanced users.

  29. Hi nice tutorial!!!!!!

    I need your opinion for my Boot problem.
    I clone my 250 SSD with Mbr Windows 10 + Win 8.1 Multiboot to a new 500GB SSD.
    After that i fix MBR to new 500GB SSD with Windows Recovery Command Prompt with —> bootrec /fixmbr , /fixboot , /rebuildbcd.

    But i use MiniTool Partition to convert MBR to GPT Table.
    So after that i could not boot nothing. To solve problem i try EasyUEFI Pro software to solve it.
    I make bootable only Win 10 or only Win8.1
    Let you know that is only one EFI fat32 Partition with 200MB

    My question is how to make multiboot Win10 + Win 8.1 for my EFI boot?
    I need to make another one EFI partition?
    Is there any free tool to manage Efi boot? Clover or Grub2 or Something Else?

  30. gptdisk downlink link is not seeing plzz give me the link

  31. Finally i'm success convert to uefi, thank you

  32. Bro, BRUUHH!!! YOU ARE F*CKIN AWESOME thx a lot

  33. backstory : I use clover to boot my macOS Sierra and windows 10 (which doesn't work due to legacy)
    can I do the UEFI 'conversion' even if my mainboard isn't UEFI ? (Asus p6x58d-e which has legacy bios)

  34. thanks a ton!!! works great

  35. This worked a charm for me! Many thanks bro!

  36. I have a problem. When I tried to make a new partition, it worked out. But when I tried to format the partition, it said there wasn’t enough space. Now I have 3 partitions, one is sys reserved, one is 180gb and one is 42gb. Please help! My computer no longer boots

  37. my hard drive is locked but don't setup windows and can not showing drive and don't open windows what do I do

  38. Bro Thanks For Your Tutorial Its Awesome..! Really Worked For Me..! Tysm..!

  39. Did all the steps (on Windows 7, with a Windows 10 Recovery USB), and everything went smooth. But, when i go to msinfo32, there's no BIOS MODE entry. I checked Google, and it was also suggested a .log file from C:/Windows/Panther (setupact.log). The Detected Boot Environment is BIOS, so i'm guessing i'm still, somehow, booting in Legacy. Can you help me out? Thank you for a great share 🙂

  40. Hello everyone.
    I have a problem here and if anyone could help me I'd be very happy.
    I went through all the steps including the part where you change the partition table to gpt. After that I tried to run diskpart but it gave me an error: "drive D is invalid" so I decided to restart the computer to try it again but at the very first windows recovery screen I get an error about some kind of incompatibility and when I can't boot to Windows either. If further windows recovery is impossible can you help me to get my data out of the hdd?

  41. A tip for everybody stuck on the last step: Check if you've exited DISKPART. If it still says DISKPART: on the beginning of the command, just type exit and continue.

  42. Hello, i want to install window 10 in uefi mode previously it was in legacy mode

    I have 3 partiton
    1 c(windows installed in it)
    other 2 have my personal data
    please help i want not to loose data from my other two partition

  43. This is so helpful !! when you think there's no way except redo your system to install optane and this guide shows up!
    I can't understand why there are people dont like it.

  44. Worked great, thanks for the instructions.

  45. Hi, will it work for one of the newer laptops meant to install only win10? I want to install Windows 7 on my Asus R558UQ

Leave a Reply