Uploaded November 2015 | Updated November 2026, 3 hours ago
How to convert Legacy to UEFI Without Data Loss (Simpler Method)
I previously had a tutorial for this at youtube.com/watch?v=Qk6_K9hVu_k 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: microsoft.com/en-in/software-download/windows10ISO
- Create a bootable USB by following youtube.com/watch?v=Q8gQuYekACU 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.
diskpart
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:
diskpart
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 :D
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:
exit
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 drive.google.com/file/d/0B8d4Lb_KJbfdNHdtUWE4eUhZOG8/view?usp=sharing&resourcekey=0-IkPL8Xv84cVEuseMDrh3_A
Music: 00:00 - 05:16
Daily Beetle by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Source: incompetech.com/music/royalty-free/index.html?isrc=USUAN1500025
Artist: incompetech.com
Music: 05:17 - 11:53
Cryin In My Beer by Audionautix is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Artist: audionautix.com
Music: 11:54 - 14.25
'Calypso Beach Walk' By 'Doug Maxwell/Media Right Production'
Wanna support me? Visit: patreon.com/nehaljwani
How to convert Legacy to UEFI Without Data Loss (Simpler Method)
I previously had a tutorial for this at youtube.com/watch?v=Qk6_K9hVu_k 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: microsoft.com/en-in/software-download/windows10ISO
- Create a bootable USB by following youtube.com/watch?v=Q8gQuYekACU 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.
diskpart
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:
diskpart
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 :D
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:
exit
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 drive.google.com/file/d/0B8d4Lb_KJbfdNHdtUWE4eUhZOG8/view?usp=sharing&resourcekey=0-IkPL8Xv84cVEuseMDrh3_A
Music: 00:00 - 05:16
Daily Beetle by Kevin MacLeod is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Source: incompetech.com/music/royalty-free/index.html?isrc=USUAN1500025
Artist: incompetech.com
Music: 05:17 - 11:53
Cryin In My Beer by Audionautix is licensed under a Creative Commons Attribution license (creativecommons.org/licenses/by/4.0/)
Artist: audionautix.com
Music: 11:54 - 14.25
'Calypso Beach Walk' By 'Doug Maxwell/Media Right Production'
Wanna support me? Visit: patreon.com/nehaljwani



![Install Fedora 23 in UEFI Mode (Dual Boot Windows 7/8/10)
This is a tiny tutorial for dual booting Fedora 23 with Windows 7/8/10 in UEFI Mode.
After creating some space in Windows, follow:
0. Check if you have booted the installation media in UEFI mode or not.
- Fire up a terminal and type the command:
[ -d /sys/firmware/efi ] && echo UEFI || echo Legacy
1. Click on Install on Hard Drive
2. Select Language and clik on Continue
3. Wait for sometime and then click on Installation Destination
4. Now you either click on Automatically configure partitioning and then click Done
OR:
Click on I will configure partitioning and then click on Done
5. Now you can either select a predefined partitioning scheme out of Btrfs/LVM/Standard Partitioning and then click on Click here to create them automatically
OR:
5.1 Select Standard Partition
5.2 Choose existing EFI partition and set the mount point to /boot/efi and click on Update Settings
5.3 Click on + to create a new partition and select swap as the mount point.
5.4 Click on + to create a new partition and select / as the mount point and choose the desired space to be 999999 so that this one takes up the entire remaining space.
6. Click on Done and then click on Accept Changes
7. Click on Begin Installation
8. Click on Root Password and set the root password.
9. Click on User Creation to create a user. Tick on Make this user administrator only if you want this user to have sudo access.
10. Click on Quit and then reboot to check if you are able to boot into the newly installed Fedora 23
Music: 0:00-7:17
Brandenburg Concerto No4-1 BWV1049 - Classical Whimsical by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/)
Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100303
Artist: http://incompetech.com/
Music 7:17-9:34
Scapes By Silent Partner
Wanna support me? Visit: https://www.patreon.com/nehaljwani Install Fedora 23 in UEFI Mode (Dual Boot Windows 7/8/10)](https://i.ytimg.com/vi/gOP_FtP1e9U/mqdefault.jpg)




![Solution to Drive where windows is installed is locked (UEFI Mode)
Music Track: Trips By Topher Mohr and Alex Elena
A simple video showing how to tackle with the problem Drive where windows is installed is locked or A required drive partition is missing or The requested system device cannot be found when Windows is installed in UEFI Mode.
Wanna support me? Visit: https://paypal.me/nehaljwani
Win8_Image: https://onedrive.live.com/redir?resid=513066133E61F6FA!142&authkey=!AL48G3xvY8yyRQU&ithint=file%2ciso
https://drive.google.com/file/d/0B8gx 8z_Gq_NU9kZlAxaU52MGc/view?usp=sharing
[List of Standard Replies]
Please watch my video with annotations turned on. You have to shrink an existing windows partition to create space for creating an EFI partition. Example: https://www.youtube.com/watch?v=lfv9UYjrPhQ
In order for me to help you, Please share the output for the commands:
diskpart
list disk
sel disk 0
list vol
list partition
Take a picture of the output using your smartphone / camera and upload them on pasteboard.co and share the link.
For RAW guys:
Your C: is being shown as RAW. It should be shown as NTFS. Somehow you seem to have screwed up your partition file system. Type the command:
chkdsk /f /r C:
If you get the error stating chkdsk not allowed for RAW..., then do the following:
Download system rescue disk from http://www.sysresccd.org/ create a bootable usb using the method mentioned in http://www.sysresccd.org/Sysresccd-manual-en_How_to_install_SystemRescueCd_on_an_USB-stick (you can also follow https://www.youtube.com/watch?v=8iqZuCmM2fg), and use the tutorial http://www.cgsecurity.org/wiki/TestDisk_Step_By_Step to recover back your partition or recover data from it.
diskpart
sel disk 0
sel partition X
shrink desired = 200 minimum = 200
create partition efi
format fs = fat32
assign letter = b:
exit
md b:EFI
md b:EFIMicrosoft
cd /d b:EFIMicrosoft
bootrec /fixboot
bcdboot Y:Windows /l en-us /s b: /f ALL
Download https://onedrive.live.com/redir?resid=513066133E61F6FA!142&authkey=!AL48G3xvY8yyRQU&ithint=file%2ciso and follow https://www.youtube.com/watch?v=Q8gQuYekACU to create a bootable USB, boot from it, and then share the output for the commands:
diskpart
list disk
sel disk 0
list vol
list partition
Take a picture of the output using your smartphone / camera and upload them on imgur.com or picpaste.com and share the link.
For fixed disks guys:
Check your connecting cables attached the HDD to the computer. Make sure they are not loose. When you start your computer, you need to press some key to enter Setup which are your BIOS settings. In that, there is an option to choose SATA mode. What is the value that you have set? Is it AHCI? Solution to Drive where windows is installed is locked (UEFI Mode)](https://i.ytimg.com/vi/kyBrjDpsXGc/mqdefault.jpg)

