Windows OS Hub
  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange
  • Home
  • About

Windows OS Hub

  • Windows Server
    • Windows Server 2016
    • Windows Server 2012 R2
    • Windows Server 2012
    • Windows Server 2008 R2
    • SCCM
  • Active Directory
    • Group Policies
  • Windows Clients
    • Windows 10
    • Windows 8
    • Windows 7
    • MS Office
    • Outlook
  • Virtualization
    • VMWare
    • Hyper-V
  • PowerShell
  • Exchange

 Windows OS Hub / Windows 10 / How to Restore Deleted EFI System Partition in Windows 10?

July 29, 2020 Windows 10Windows 7Windows 8

How to Restore Deleted EFI System Partition in Windows 10?

In this article we’ll show you how to manually restore an accidentally deleted Windows EFI boot partition on a UEFI computer. We’ll look at an easy way to manually recreate system EFI and MSR partitions in Windows, which will allow you to boot the OS after accidentally formatting or deleting an EFI partition. The instructions in this article are relevant for all versions of Windows, from Win 7 to Windows 10.

Suppose that the EFI boot partition on your UEFI (non-BIOS) computer was accidentally deleted or formatted (for example, when you tried to remove an OEM recovery partition). As a result Windows 10/8.1/ 7 doesn’t boot correctly, cyclically prompting you to select the boot device (Reboot and select proper boot device or insert boot media in selected boot device and press a key). Let’s figure out if it is possible to start Windows properly after deleting the EFI partition (with a Boot Manager and BCD configuration) without reinstalling the OS.

Warning. This guide implements working with disk partitions and is not recommended for beginners. If you interpret the commands wrongly, you can accidentally delete all data on your hard disk. It is also strongly recommended to backup important data on a separate media.

Contents:
  • GPT Hard Disk Partition Structure in Windows
  • Missing EFI Partition in Windows
  • How to Manually Create EFI and MSR Partitions on GPT Drive?
  • Repair the EFI bootloader and Windows BCD

GPT Hard Disk Partition Structure in Windows

Consider how the default partition table of a bootable hard drive with GUID partition table (GPT) on the UEFI computer should look like. You should have at least the following partitions:

  • EFI System Partition (ESP – Extensible Firmware Interface) — 100 MB (partition type — EFI);
  • Microsoft Reserved partition — 128 MB (partition type — MSR);
  • Primary Windows partition (the partition containing Windows).

Default efi partitoions

This is the minimum configuration. These partitions are created by the Windows Installer when you perform a clean OS install on an unformatted drive. Computer manufacturers or users can create their own partitions containing, for example, Windows Recovery Environment (Windows RE) in the winre.wim file, a partition with the system image backup provided by the OEM (allows to roll back to the original state of the computer), user partitions, etc.

The EFI partition with the FAT32 file system is a mandatory partition on GPT disks on UEFI computers and has the GUID c12a7328-f81f-11d2-ba4b-00a0c93ec93b. The default size of the EFI partition is 100MB (on advanced format disks with 4KB sectors the size of the EFI partition is 260MB).

The MSR partition (Microsoft System Reserved) on the GPT disk is used to simplify partition management and is used for service operations (for example, when converting a disk from basic to dynamic). This is a backup partition with the GUID label e3c9e316-0b5c-4db8-817d-f92df00215ae. The MSR partition doesn’t receive a drive letter. This partition can’t store user data. In Windows 10, the size of the MSR partition is only 16 MB (in Windows 8.1 the size of the MSR partition is 128 MB), the file system is NTFS. The MSR partition must be  located between the EFI partitions (ESP) and the primary Windows operating system partition.

The main partition contains the installed Windows, programs and user data. Additional data partitions may be present.

Tip. To install Windows on computers with UEFI you will need an original DVD or a specially prepared bootable USB flash drive with Windows 10 for UEFI computers (or with Windows Server).

Missing EFI Partition in Windows

The EFI partition (similar to the System Reserved partition on drives with the MBR partition table), stores the boot configuration store (BCD) and a number of files required to boot Windows. When the computer boots, the UEFI environment loads the bootloader (EFI\Microsoft\Boot\bootmgfw.efi) from the EFI (ESP) partition and transfers control to it. The bootmgfw.efi executable launches the Windows Boot Manager, which loads configuration data from the BCD. Once the BCD is loaded, Windows starts booting via winload.efi.

If the EFI partition is deleted or damaged, you won’t be able to boot Windows from that drive. UEFI error “could not locate \efi\boot\bootx64.efi – not found” appears , or an empty UEFI Shell prompting you to specify a boot device.

Also, you will not be able to boot Windows if the EFI partition is formatted with the NTFS file system. Even then performing a clean Windows installation, you will receive an error:

Windows detected that the EFI system partition was formatted as NTFS. Format the EFI system partition as FAT32, and restart the installation.

How to Manually Create EFI and MSR Partitions on GPT Drive?

Since the system doesn’t boot correctly, we’ll need Windows installation media with Windows 10 (Win 8 or 7) image or any other boot/rescue media. Boot from the installation media and on the first installation screen press the Shift+F10 key combination. The command prompt window opens.

Shift+F10 - command prompt

Run the disk and partition management tool:

Diskpart

Diskpart

List the hard disks connected to the computer (in our example, there is only one disk, disk 0. The asterisk (*) in the GPT column means that it uses the GUID partition table).

If there is no * in the GPT column, then the disk partition table is MBR. You need to make sure that you previously booted your computer in the native UEFI mode (otherwise, following this instructions is pointless). If you are sure that the partition table type has changed, it may be worth converting drive from MBR to GPT.
list disk

list disk

Select this disk:

Select disk 0

Select disk 0

Display the list of partitions on the disk:

List partition

List partition

In our example, only two partitions are left on the drive:

  • MSR partition — 128 MB;
  • Windows system partition — 9 GB.

As you can see, the EFI partition is missing (it has been deleted).

diskpart list partition

Tip. If only EFI files were damaged on the EFI partition and the partition itself was not deleted, you can skip the process of recreating partitions using diskpart. Although in most cases it is enough to repair the EFI bootloader in Windows. You can manually recreate the BCD on an MBR+BIOS computer using this article.

Our task is to remove the remaining MSR partition so that we have at least 228 MB of unallocated space on the drive (for MSR and EFI partitions). You can remove this partition using the graphical Gparted or directly from the command prompt (that’s exactly what we’ll do).

Important! Please, be extremely attentive here and do not accidentally delete Windows partition or partitions containing user data (if there are any).

Select the partition to remove:

Select partition 1

Select partition 1

And delete it:

Delete partition override

Delete partition override

Make sure that there is only 9GB Windows partition left (in our case):

List partition

List partition

delete msr partition

Now you can re-create EFI and MSR partitions manually. To do it, run these commands in diskpart context one by one.

Select the disk:

select disk 0

select disk 0

Create a 100MB EFI partition, format it with FAT32 file system and assign a drive letter to it:

create partition efi size=100

create partition efi size=100

Make sure that the 100 MB partition (an asterisk in front of the Partition 1) is selected:

list partition
select partition 1
format quick fs=fat32 label="System"
assign letter=G

list partition select partition 1 format quick fs=fat32 label="System" assign letter=G

Now you need to create an MSR partition with a size of 128 MB (in Windows 10, it is enough to create 16 MB MSR partition).

create partition msr size=128
list partition
list vol

create partition msr size=128 list partition list vol

In our case, the drive letter C: is already assigned to main Windows partition. Otherwise, assign the drive letter to it as follows:

select vol 1
assign letter=C
exit

select vol 1 assign letter=C exit

recreate efi and msr partitions

Repair the EFI bootloader and Windows BCD

After you have created a minimal disk partition structure for the GPT drive on the UEFI computer, you can proceed to copy the EFI boot files to the new partition and create a bootloader configuration file (BCD).

Copy the EFI environment boot files from the directory of your drive where your Windows is installed:

mkdir G:\EFI\Microsoft\Boot
 
xcopy /s C:\Windows\Boot\EFI\*.* G:\EFI\Microsoft\Boot

mkdir G:\EFI\Microsoft\Boot xcopy /s C:\Windows\Boot\EFI\*.* G:\EFI\Microsoft\Boot

copy efi files

Rebuild the Window BCD bootloader configuration:

g:
cd EFI\Microsoft\Boot
bcdedit /createstore BCD
bcdedit /store BCD  /create {bootmgr} /d “Windows Boot Manager”
bcdedit /store BCD /create /d “My Windows 10” /application osloader

g: cd EFI\Microsoft\Boot bcdedit /createstore BCD bcdedit /store BCD /create {bootmgr} /d “Windows Boot Manager” bcdedit /store BCD /create /d “My Windows 10” /application osloader

You can replace the caption “My Windows 10” for any other.

The command returns the GUID of the created entry.Iin the next command put this GUID instead of {your_guid}.

create bcd store

bcdedit /store BCD /set {bootmgr} default {your_guid}
bcdedit /store BCD /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi
bcdedit /store BCD /set {bootmgr} displayorder {default}

bcdedit /store BCD /set {bootmgr} default {your_guid} bcdedit /store BCD /set {bootmgr} path \EFI\Microsoft\Boot\bootmgfw.efi bcdedit /store BCD /set {bootmgr} displayorder {default}

bcdedit bootmgr

The following bcdedit commands are run in the {default} context:

bcdedit /store BCD /set {default} device partition=c:
bcdedit /store BCD /set {default} osdevice partition=c:
bcdedit /store BCD /set {default} path \Windows\System32\winload.efi
bcdedit /store BCD /set {default} systemroot \Windows
exit

bcdedit /store BCD /set {default} device partition=c: bcdedit /store BCD /set {default} osdevice partition=c: bcdedit /store BCD /set {default} path \Windows\System32\winload.efi bcdedit /store BCD /set {default} systemroot \Windows exit

bcdedit winload efi

Restart your computer… In our case it didn’t boot from the first time. Try the following:

  1. Turn your PC off;
  2. Unplug (physically)your hard drive;
  3. Turn your PC on, wait till the boot error window appears (An Operating System not found) and turn it off again;
  4. Plug your drive back.

Then in our case (the test took place on the VMWare virtual machine with UEFI firmware) we had to add a new item to the boot menu by selecting the EFI\Microsoft\Boot\bootmgrfw.efi file on the EFI partition.

In some UEFI menus, by analogy, you need to change the boot priority of partitions.

efi boot option FI\Microsoft\Boot\bootmgrfw.efi

After all these actions, your Windows should boot correctly.

setup is starting services

Tip. If something doesn’t work, it is recommended to make sure that only EFI partition has the boot flag. You can do it using GParted LiveCD.

 

131 comments
41
Facebook Twitter Google + Pinterest
previous post
Configuring SSH Key-Based Authentication on Windows 10/ Server 2019
next post
Adding Users to the Local Admin Group via Group Policy

Related Reading

How to Sign a PowerShell Script (PS1) with...

February 25, 2021

How to Shadow (Remote Control) a User’s RDP...

February 22, 2021

Configuring PowerShell Script Execution Policy

February 18, 2021

Configuring Proxy Settings on Windows Using Group Policy...

February 17, 2021

Updating Group Policy Settings on Windows Domain Computers

February 16, 2021

131 comments

Caio May 10, 2016 - 2:05 pm

Thank you very much!!!!!! Thats the only solution for me in the entire internet!!!!

Reply
Louise January 18, 2020 - 5:19 pm

I’m on a laptop. It didn’t work. The last step is difficult because my screen is broke so I don’t know where or how I can select it.

I’ve been viewing my screen on linux via my tv. I need windows 10 unfortunately. I think I’m screwed. I’ll have to save up for a new version because i can’t find the product key as chntpw doesn’t work. I have a dying iphone and that’s it. I’m struggking with health issues and only just got myself together to do this. I’m saddened. It’s my fault for accidentally deleting the bootloader in the 1st place (archlinux accident).

I tried my best and I learned something though. So thanks for the educational experience.

Reply
Crosspol May 12, 2020 - 4:16 pm

Fantastic, after hours of fannying around with various other “how to” guides, this is THE one that WORKED!! Fixed SSD after Windows update somehow wiped the boot sector. Many, many thanks

Reply
Albert Goodman May 18, 2016 - 8:06 pm

Usually I almost never comment on guides, but this time, you just saved my Windows! It was very detailed, telling you each and every step you have to take. I was installing Arch and I accidentally formatted my EFI partition of Windows 10. I used up the whole day trying to find out how to fix this, and after I almost gave up, I saw your article, followed it and it worked like a charm!
Thank you so much for the help, and please keep making guides like these

Reply
admin May 19, 2016 - 7:31 am

You are welcome 🙂

Reply
Jurn Wubben November 3, 2020 - 9:50 am

For me the same, i was uninstalling refind but instead of removing the refind folder i deleted the whole efi folder. All works now except the hibernate function. Does anyone knows an fix???

Reply
Samy Ateia December 2, 2020 - 1:44 pm

I have the same problem. I was able to boot back into windows but hibernation is now broken, the pc restarts instead.

Reply
Danny June 22, 2016 - 7:41 pm

Thank you very much!!! This saved me a lot of time, because a reinstall isn’t necessary anymore!
This is also working perfect for Win10.

Reply
lechup July 11, 2016 - 5:14 pm

Thanks man!

I’ve moved partitions from mbr to gpt (from 500GB to 3TB hard drive) and needed to recreate UEFI/GPT boot partitions – only way that worked for me (just leave some space at the beginning of drive).
Just thinking if I just create those two partitions and xcopy files to boot partition, won’t it be enought to run “startup” repair from Windows 7/8 cd and just remove that bcdedit hassle?

I’ll check it next time I will have those problems. Thanks again!

Reply
jah_lah@hotmail.com August 27, 2016 - 12:20 pm

Hi, and thanks for your patience in writing such a detailed solution. I’ve messed up my UEFI Win 10 partition when migraating to a SSD disk and trying to restore dual boot. To make short a long story, I decided to delet and rebuild UEFI partition, and I’ve got stuck at the copying files step. Whenever I try to use the {xcopy /s C:\Windows\Boot\EFI\*.*  G:\EFI\Microsoft\Boot} command, I receive a message like “failure to copy files from source”. Everytime. This is driving me crazy. The files are there, I can see them, but I just can’t copy them. Any thoughts will be appreciated. Thanks again.

   

Reply
InternetPerson September 6, 2016 - 5:40 am

Jal_lah, if you’re still having trouble, you could try creating a Linux live CD or USB and boot into it. You can then mount both the EFI partition and your Windows partition, and copy the files over.

Reply
InternetPerson September 6, 2016 - 5:52 am

Thank you for the detailed guide!  Exactly what I’m looking for. Do you know if there are any differences for applying this guide to restoring a Windows 10 EFI partition? Can I just replace the third ‘bcdedit’ command with the following?
bcdedit /store BCD /create /d “Windows 10” /application osloader
Any help would be appreciated!

Reply
Steve September 29, 2016 - 7:53 pm

I myself had to restore a Windows 10 UEFI partition and had no issues with changing the “Windows 7” part to “Windows 10”.
As far as I can tell, it’s really just a label so what goes in the quotes probably doesn’t matter too much.

Reply
Steve September 29, 2016 - 7:51 pm

After a few days of frustration, I’m happy to say this guide finally resolved the issue. I had 2 UEFI partitions, 4 recovery partitions, and then 2 partitions for my OSes (Win10 and Ubuntu). After messing around with getting rid of grub and returning the partition space back to windows, I ended up screwing up my entire boot.
And after about 2 days of scouring the internet and trying all solutions available, this is thankfully the first one that got me back to a usable system. Great thanks to the writer(s) of this article for getting me out of a bind.

Reply
Naturelover November 21, 2016 - 8:32 pm

Thanks for the detailed and thorough description of the recovery process.
In the case of a dual boot system, with Windows 7 and Fedora (installed on a newly added hard disk), and where only the Windows 7 boot is failing, would there be any concerns with following this method to recover the Windows 7 EFI boot partition?
 
 

Reply
George February 2, 2017 - 11:57 am

Thank you very much!
A restored the win10 Pro boot after installing ubuntu and accidentally deleting the Windows Boot Manager partition.

Reply
Ferran February 11, 2017 - 5:41 pm

Thanks a lot for this guide, saved my day!

Reply
m sagheer February 15, 2017 - 7:39 pm

hey man its really helpfull thank you so much for sharing this at least it show me a efi disk but after applying delete Partition override cmnd i get an error saying “virtual disk server error” and delete is not allowed on current boot, system.pagefile crashdamp or hibernation volume ……can i get a solution for that please thanks in advance <3

Reply
vms4ever February 26, 2017 - 5:52 pm

A big thank you! Your write-up saved me this weekend. HP Workstation Z440, shrank windows partition and tried with Acronis True Image (comes free with new SSD Crucial MX300) to clone HDD to SSD. But upon reboot nothing, no OS can be found. Your method saved me.

One point. If the windows partition does not extend to the end, then upon remaking EFI and MSR partitions, they are placed after the windows partition which I am not sure if it would work. One has to add the OFFSET flag to create partition. For MSR the offset should be 101*1024 = 103424.

Hope this is helpful to someone else…

Reply
TJ March 19, 2017 - 3:40 am

I accidentally nuked the MSR & EFI partitions on a notebook I brought home to help a friend fix over St. Patrick’s weekend. Almost gave up on a startup repair versus a wipe and reload after countless hours on the internet before stumbling on your site.

My feedback based on your prescribed solution boils down to five words: Meticulous Guide with Amazing Results.

Reply
Young Pharaoh June 18, 2017 - 3:52 am

Thank You so much bro
I impressed and I love you so much
I don’t know how can I thank you

Reply
Nicholas Gooding November 6, 2017 - 4:05 am

Thank you so much, very informative and helpful.

Reply
Nicholas Gooding November 6, 2017 - 4:12 am

Also works for Win10 if you stop at the boot loader instruction and then follow http://woshub.com/how-to-repair-uefi-bootloader-in-windows-8/

Reply
Pawel July 10, 2018 - 4:24 pm

This was amazing. I didn’t believe it could help, but you’re genious. This realy save my day.

Reply
RJRH July 30, 2018 - 11:08 pm

Awsome…!!!! Work very well Thank You… Detail Solution…!!!!

Reply
Caesar July 31, 2018 - 9:30 pm

God would bless you for this fix saved me a lot of time I just had to convert to gpt before creating efi

Reply
Nicolas Wicki September 22, 2018 - 11:40 pm

Feel unbelievable happy right now. You know what you are doing. Thanks a lot, will have some good sleep now.

Reply
RJ December 3, 2018 - 4:54 am

Thanks a lot.

Reply
Cole December 6, 2018 - 7:23 am

You sir, just saved my butt. Week before exams, all my papers are almost done and windows decided to shit the bed tonight. I had everything backed up to my server but it was all compressed and would take too much effort to reinstall everything to my laptop. Excellent explanations and the only thing I can add to this guide is that everything has to be in order, it most likely will not move on if you try something too early (I missed the creation of the {bootmgr} and it took me a bit to trace my steps). Thank you so much!

Reply
Martin January 6, 2019 - 7:30 pm

Can i do this from another PC ?

Reply
Ibrar Khan January 25, 2019 - 7:00 am

Oh my God! You saved sooo much headache and worry!! Thank you so much! I deleted the EFI partition on my computer 2 times and both times, your article came to the rescue!

Reply
Moko February 1, 2019 - 3:07 am

Thank you very much. It’s work!

Reply
vipin February 7, 2019 - 7:07 pm

thank you so much…..thankyou thank you….

Reply
Soeptcu February 13, 2019 - 7:14 pm

Wow thank you man, you rock!!!

Reply
Yaki Forto March 13, 2019 - 5:17 am

Worked perfectly. Best guide in the world. Thank you.

Reply
Yaki Forto March 13, 2019 - 5:18 am

Well, one thing doesn’t seem to work. The computer won’t shutdown properly and will just go to the sign out screen instead. Oh well.

Reply
admin March 14, 2019 - 11:24 am

Move your mouse to the lower left-hand corner of the screen and right-click the Start button or press Windows logo key + X on your keyboard. Tap or click Shut down or sign out and choose Shut down

Reply
Adrien Foulon April 4, 2019 - 10:19 am

Amazing guide, the only one I could find that worked. It’s a life saver, nothing in the install CD was working (couldn’t repair because of mismatched version) but opening the command line and rebuilding the boot from scratch is genius
Thank you!

Reply
Stephen April 11, 2019 - 1:03 pm

Thank you for this. I removed a Ubuntu installation off of one of my secondary drives and for some reason windows didnt have an efi partition or even room for one. I had to shrink my boot drive before doing this. Thhhhannnkkkkk you so much for this easy to follow tutorial! One extra step I had to do. I had to do start up repair as it said originally something was messed up on the efi partiition I created and that fixed that issue.

Reply
Osama Alwash April 27, 2019 - 2:58 pm

Thank you.. Saved my day!

Reply
Rama May 2, 2019 - 2:50 am

Thanks ! Your guide worked 🙂

PS: Instead of removing the hard disk , you can also force UEFI device detection by turning off the UEFI boot mode in your bios and rebooting it.
On the first boot it will say no boot devices found.
Then reboot again and enable UEFI, save settings and try again. This time your PC should redetect the new UEFI sector.
..At least it worked for me.. I was using a Intel Hades Canyon NUC.

Reply
Scott May 2, 2019 - 3:04 am

All I can say is THANK YOU!

Reply
Marcelo May 12, 2019 - 4:51 pm

Thank you! Works perfectly!

Reply
Anonymous May 15, 2019 - 2:42 pm

Thank you! And google search leading to this article.

Fixed a windows 7 and now it boots.

Reply
Luke May 16, 2019 - 10:31 am

Someone said in the earlier comments, “I don’t typically comment on guides”. Well I am usually the same. All I can say is THANK YOU!!! You just saved me rebuilding a domain controller after the backup failed to restore the EFI partition correctly. Awesome!

Reply
Cezar Augusto Mezzalira June 16, 2019 - 3:24 pm

Thank you! You save my data with this tutorial!
I installed a fresh copy of Windows 10 1903, but after install everything i need to work, my boot partition doesn’t appears on BIOS settings.
Following entire steps above, i restore the EFI partition and voila! Windows boot again!
Thank you Guy!

Reply
Kyaw SI June 21, 2019 - 11:18 am

This is the only one right solution in whole internet when it comes to this EFI. Awesome

Reply
Amine June 30, 2019 - 4:25 pm

God bless you. You have just saved me a lot of time and also my data because i was planning to reinstall my windows. I think this solution you have provided is the only one i could find in the internet except from reinstalling your windows. Thank you so much.

Reply
Dominik July 16, 2019 - 3:18 pm

Great writeup! One of my coworkers borked his Windows 10 install beyond repair and all he had left was the naked VHDX file from a recent Windows Image backup he took a few days ago.
I created a naked HyperV VM, attached the VHDX and using your howto, was able to boot into his Windows 10 installation successfully.
Thanks alot!

Reply
Jonathon Blues July 30, 2019 - 12:09 pm

You are a super star!! That saved my hair and my sanity!.

Reply
Brad August 18, 2019 - 8:48 pm

Hi I just went thru days trying to switch a 500 gig SSD drive to a Larger one. Clone copy, well apparently clone the Windows 10 OS, but not the EFI partition. I then went back to the small to try and salvage the mistake and it ran out of disk space trying to fix my the EFI issue. It snowballed from there and I ended up here. I was fooled a bit when you took those 2 dos command windows and combined them. lol. I just kept comparing and realized what you did. I like to add that at the end you had a couple problems booting and had to disconnect a drive and restart and then add a EFI boot line. This is confusing to me since I am not clear about why, but I am just about ready to restart the system that I used your great tutorial and crossing fingers. Everything went perfect entering commands with not one error. Thank You for taking the time to create this post and letting it remain in public. †

Reply
Peter August 25, 2019 - 1:25 pm

Not all heroes wear capes

Reply
wiliextreme September 1, 2019 - 9:16 pm

Thanks for this guide. Finally someone who can provide solution with proper explanation. All other guides are just a bunch of console commands without any justification why we’re using them.

Reply
Laurence September 28, 2019 - 5:42 am

Thanks so much! This guide was literally the only one that helped me, because I accidentally deleted my EFI while hackintoshing D:

Reply
racerx October 1, 2019 - 4:30 am

Dude you saved my ass big time. This was THE only solution on the whole internet i could find. Thats what i get for trying a dua boot windows 10/kali dual boot. note to self: DONT DUAL BOOT GET A SEPARATE DRIVE (yes im yelling at myself)

Reply
Shambhu K. October 2, 2019 - 5:02 pm

Awesome it worked perfectly for windows 10 without a single problem…Thanks you so much.

Reply
Lostphysicist11 October 14, 2019 - 8:18 am

I love you. Thank you soooo much.

Reply
DG October 16, 2019 - 1:17 am

Thank you so much! It worked perfectly!

Reply
J October 19, 2019 - 9:07 pm

Thousand thanks!
I worked charms. Great tutorial =)

Reply
Danial October 24, 2019 - 6:13 am

I was totally worried after accidentally deleting my boot files. Hats off to you for creating such a precise and simple guide with screenshots! You have saved my time and data bro. Kudos & Cheers to you!

Reply
Leo October 26, 2019 - 10:06 pm

best guide for EFI / GPT / Win corrupted bootloader ever! Thank you very much. I am doing for ages the PC repairs with MBR – classic BIOS but this is kinda new to me. When my favourite bootrec.exe /fixboot says acess denied it started to be funny. Also the command “bootsect/nt60 sys” saves lives but that did not helped me. I´ve done stupid thing. I make space on my drive. (EFI,MSR.Win, space, recovery) the HDD was bitlocker encrypted and I let linux mint to do automatic intall to the empty space. It was ok. Then nothing booted and all my traditional skills using gparted, windows recovery cmd went to dead end. Only this restored my Win. Now about to add Linux boot line. And thats it.

Thank you once more!

Reply
Jaap van Putten November 1, 2019 - 12:30 pm

Fantastic guide!!! Saved my day.

Reply
Cristian November 4, 2019 - 3:12 am

Than you so much my bro!Tou helped me to restore my windows.God bless u man

Reply
Prasanth November 21, 2019 - 7:22 am

THANKS

Reply
Omar Jabbi December 14, 2019 - 12:16 am

Thank you very much

Reply
John F December 23, 2019 - 3:56 am

Thank you for the detailed guide it helped me fix my boot problem which occurred after I cloned my drive to an SSD with clonezilla but then booted with both drives in the machine not work sure what step it was but somehow the EFI partition got messed up. I tried many things but this is the only guide that worked. I really appreciate you making the information available. John F.

Reply
Rusj December 26, 2019 - 1:06 pm

Wondering to know, what about using bcdboot command, it is look simpler than bcdedit ?! Is bcdboot can used too in this case ?
Do you have article about it ?

Reply
Mirko December 27, 2019 - 6:15 pm

You are my hero, thank you!!!!

Reply
Rahul December 28, 2019 - 10:35 am

Great job with the document! I had one such a PC with a broken EFI partition due an interrupted Ubuntu installation. This was the only guide that helped me get the whole thing back to life. That’s some good info on the GPT partition table structure but I managed to get my PC running without the MSR partition.

Thanks and you guys rock!

Reply
J January 2, 2020 - 3:13 am

The best guide on the internet ever!!! It saved my PC!!

Reply
Carl Chauvette January 8, 2020 - 7:25 pm

Woaw my hero.
Very good guide well detailed and solve mostly every boot errors

Reply
Louise January 18, 2020 - 5:27 pm

Sorry I replied to someone with this but can’t delete it. Repeat it here. I’m on a laptop. It didn’t work. The last step is difficult because my screen is broke so I don’t know where or how I can select it.
I’ve been viewing my screen on linux via my tv. I need windows 10 unfortunately. I think I’m screwed. I’ll have to save up for a new version because i can’t find the product key as chntpw doesn’t work. I have a dying iphone and that’s it. I’m struggking with health issues and only just got myself together to do this. I’m saddened. It’s my fault for accidentally deleting the bootloader in the 1st place (archlinux accident).
I tried my best and I learned something though. So thanks for the educational experience.

I can’t find my boot options.

Gah I used to be good at IT.

Hope you can help with this boot options part and where I can find it. I’m on a HP Pavillion. I’d have to pay for recovery software and I’m broke. Please help. I’m at my wits end.

Reply
Alberto February 4, 2020 - 4:13 pm

THANK YOU VERY MUCH! YOU SAVED MY DAY!
I was trying to install archlinux as second OS but it turned out to messing up with some windows partitions. After about 10 hours I found this amazing guide that saved my laptop. You were very, very helpful!

Reply
Roger Cimon February 17, 2020 - 4:35 am

Why is there a x:\Sources> before the mkdir G:\EFI\Microsoft\Boot in the console when we are supposed to type only mkdir G:\EFI\Microsoft\Boot at that step?

Reply
Danilo February 17, 2020 - 1:04 pm

Thank you, you saved my pc!

Reply
Goran March 23, 2020 - 6:15 pm

Thank you very much, you save me from reinstalling windows 10, best regards from Croatia.

Reply
Sumayya March 30, 2020 - 5:40 am

PLEASE PLEASE HELP! I’ve change id of (set id =…) of FAT32 partition which was successful and did exit. But now I can’t see FAT32 in my volume list, what to do please??! I really really need help! How can I bring it back to the list?

Reply
admin March 31, 2020 - 8:45 am

I think it will be easier for you to recreate the EFI partiotion from scratch according to this guide.

Reply
Mike March 30, 2020 - 10:36 pm

Thanks for the guide! This helped me successfully recreate my EFI partition for Windows 10.

I installed Windows 10 education on a new SSD, but the EFI partition was not created on it during install due to it already existing on my old SSD with the previous Windows 10 installation! When I formatted the old SSD and installed Linux, the partition with Windows boot loader was obviously deleted.

In my case, I was only missing the 100 MB EFI partition. I did not need to create the 16 MB MSR partition, it was already there. Before creating the EFI partition I had to shrink down the primary volume. Select the primary volume and shrink desired=100.

I also had 2 SSD and 1 HDD, and diskpart labeled my drives differently than what I expected. My C: drive on Windows was represented as volume D in diskpart, my E: drive represented as C, so it was confusing to identify the correct one for the bcdedit commands. Once I did, everything worked flawlessly.

Reply
CAC April 3, 2020 - 1:26 am

I was hoping this would work. I followed the direction but still no luck. The only thing I didn’t do was disconnect my harddrive. I was hoping I didn’t have to. I have two hardrives and I can’t disconnect one of them. HDD2. I put all of my BIOS settings back to how they originally were but I saw in the boot configuration page that their are two windows boot drives that I can choose. when I reboot I get the 0000255 error code. I’m gonna try the disconnect the harddrive option and see what happens. I gotta be doing something wrong on my end. Any advice?

Reply
CAC April 3, 2020 - 1:28 am

Forgot to click on the notify followup option below so I’m leaving another comment.

Reply
Dan Movilianu April 9, 2020 - 9:21 pm

Anyone stuvk at mkdir not pivking up the line, just close cmd and reopen. As you can see it has X:/ in front

Reply
Ron January 14, 2021 - 4:51 pm

Hi there. I’m having this problem. I’ve tried closing cmd and reopening but still can’t seem to get past it. Any advice you can give me?

Thanks a lot

Reply
Edu April 15, 2020 - 5:13 pm

Great stuff. Works fantastically after I spent days trying to fix my laptop.
Still relevant. Took me back to my DOS days lol..thanks

Reply
shoaib April 16, 2020 - 7:14 am

Great Stuff. Works superb

Reply
Tibor April 21, 2020 - 7:48 pm

This saved my laptop! Thanks a million!

Reply
Bontakun May 11, 2020 - 12:39 pm

Great Mister, Thank you so much.
You’ve saved me

Reply
Mr. Problemo May 16, 2020 - 8:51 pm

Thanks a Million!
I worked. This is a real guide with reference image.
Wow!

Reply
Alberto May 24, 2020 - 2:55 am

Thank you very much!!!

Reply
Konner May 26, 2020 - 5:45 am

Thank you 1000%!
While partitioning my computer when I was installing linux for a dual boot, I formatted /dev/sda1, the windows EFI partition, instead of /dev/sda8. Thanks for this amazing guide!

Reply
Felix Hall June 22, 2020 - 2:05 pm

I recently did an update on a windows 10 computer which multi-booted with a bunch of Linux distributions, and for reasons I am still trying to figure out, I lost access every OS except Manjaro, Mint and Zorin. I spent the last week or so wondering how I was going to re-create my efi partitions (which I messed up reinstalling grub2) in order to access my windows installations and then I happened on this article. Whew!! Thank you!! :).

Reply
Les July 5, 2020 - 12:09 pm

Thank you so much. Very concise instructions really saved me!

Reply
Bobin July 5, 2020 - 7:31 pm

Thanks a lot…

Reply
Helen July 13, 2020 - 4:07 am

I fucked up my partitions trying to make a hackintosh and this brought my laptop back to life! Thank you so, so much.

Reply
glnz July 30, 2020 - 2:44 pm

This explanation looks great. I’m not a tech, but on two occasions when a disk clone (via Macrium Reflect) didn’t boot, Macrium Reflect has a procedure for fixing the boot problem, using the “Recovery Media” USB stick it creates. Just FYI.

Reply
Mack August 25, 2020 - 9:23 am

Thanks, this guide was amazing to help fix an accidental deletion. Really Appreciate it

Reply
Marcin Marski September 1, 2020 - 8:02 pm

Thanks! It worked like a charm, great tutorial!

Reply
Marcin Marski September 1, 2020 - 8:05 pm

Just one more thing – for whatever reason my disk was non-gpt so I had to convert it to gpt. Without loosing data you can use windows mbr2gpt executable, maybe you could update your tutorial with that?

Reply
Peter September 21, 2020 - 6:23 pm

If you have the same problem as me I will let you know that this worked.

I bought a computer with Linux on the HDD and it also had an empty SSD. I installed windows on the SSD but the EFI was still on HDD. My PC would work normally but once I turned it off i would get the error 0xc000000e. I had to use my bootable and enter the Recovery Environment to make it work all the time. Then I decided to move the HDD EFI to the SSD using EasyUEFI but it still didnt work. Then I deleted the HDD EFI and the windows was over at this point. Thanks to this very detailed tutorial I managed to create the EFI in the SSD.

Thanks a lot to the admin.

Reply
Alex September 28, 2020 - 10:27 am

Thanks you so much… You saved my 2 Day time… Good bless

Reply
Raneshz September 30, 2020 - 5:19 pm

Whoever you are, you are a legend man! Didnt really expect it to work but your steps were so detailed i couldn’t even believe that it worked on the first try. Really respect the work you did helping us all from recovering our lost OS. Almost reinstalled windows but thanks to you it’s saved. Thank you from the bottom of my heart!

Reply
Jamie Burgess October 5, 2020 - 12:39 am

THANKS SO MUCH. I’m sure so many people have issues when cloning larger HDD to smaller SSD using software like EASEUS and others I’m sure.

Saved my bacon.

Thank you so much.

Reply
Shafique Jilanipasha Mohammad October 5, 2020 - 9:25 am

Thank you so much. You saved a lot of my time.

Reply
Thisguy October 16, 2020 - 7:34 pm

I would just repeat all what has been said. Thank you very much, reality great material.

Reply
Tulpa October 23, 2020 - 10:27 am

works and its free 🙂

Reply
Mario October 25, 2020 - 1:39 am

My god this post saved my whole network degree. You rock. Thankkk you very much

Reply
Nicole October 26, 2020 - 9:51 pm

THANK YOU!!!

Reply
shaun October 27, 2020 - 6:25 pm

Brilliant job of describing how to get a non booting laptop working. Could see the drive but the EFI partition was toast. Your guide helped me to rebuild the partition and get it booting. Thank you 🙂

Reply
Stavros October 29, 2020 - 12:10 am

I followed all the instructions step by step and my windows returned back to life. At first I thought that it would probably come to another dead-end but it worked fine. Thank you so much.

Reply
Jaro October 30, 2020 - 6:46 pm

Thank you very much!!!!!! It is working!!!! Yeaaaaahhhhhh! You are life saver, Big thanks again!!!!!!!

Reply
Sebastian November 10, 2020 - 2:29 am

Thank you very much!!! You are “THE BEST”.

Reply
Jurn November 10, 2020 - 5:07 pm

Thanks, it works, but i cant use fast startup and hybernate option anymore.

Reply
Stephen November 23, 2020 - 5:40 pm

Your steps worked perfectly.
From the bottom of my heart, “thank you”

Reply
CT Al December 1, 2020 - 3:08 pm

Does the “Unplug physically harddrive” means internal HDD?

Reply
Ali December 6, 2020 - 4:21 pm

This is the best way I could find after almost spending a whole daytime for: “completely erased boot partition of windows.”.
This is the perfect and most clean solution. Just carefully do whatever written above.

In my case, no reboot after reboot required; just simply worked and my system is back again like nothing ever happened.

This usually happens when I feel like to try new linux distros and gave me a real hard time this time, because googling is also difficult between all mess on internet. Here is what happened, for users who might have a similar problem:
– I have erased everything on the drive but the windows partition. I mean, there is a “C:” drive, but nothnig else.
– I had a bootable ubuntu usb. started ubuntu live with selecting usb in bios
– ubuntu has “gparted” within. so I have started it.
– copied the windows partition to another harddrive by creating another partition a little bigger than windows had (in my case windows had 80gb, I created a 100gb). This was just for anything accidental, have a backup somewhere else; in any case.
a) on an external hdd, if there is enough empty space: right click, “move-resize”. than shrink it to create and empty space enough to backup windows drive. (there is a chance of losing your data in your external drive, so, be very carefull)
b) on the external hdd: create an ntfs partition enough to copy the whole original partition. (there is a chance of losing your data in your external drive, so, be very carefull)
c) choose the windows hdd and right click on original windows partition and select “copy”
d) choose the external hdd and right click on the new partition created for backup and “paste) (there is a chance of losing your data in your external drive, so, be very carefull)
e) select the hdd of windows again and select windows partition and right clisk “move-resize” and push it at the end of the drive.
f) reboot into windows usb drive and did what the guy said on this page.
g) you may consider widenin up your external hdd again by using minitools free if you continue in windows.

Thanks A Lot!

Reply
Pasi Talliniemi December 14, 2020 - 3:24 pm

Thank you, this was extremely helpful guide!
I was using Acronis True Image HD to clone an old bootable MBR drive to a GPT data drive as Acronis did not support making it bootable after MBR2GPT conversion. (I had tried also MBR2GPT tool to convert the old drive to GPT before cloning but it didnt work at all.)
With your help and clear step-by-step instructions, I was able to make this new drive bootable.

Reply
Roland Foster December 17, 2020 - 12:50 am

Thank you !!! Converted from MBR to GUID (GPR) using MBR2GPT MS app to support a Win 10 update and possible did something wrong. Had to dive deep into the article. Only had a EFI partition. Deleted the EFI partition and created new EFI and MSR partition per the instructions and it worked. Great work.

Reply
Afghan Eka Pangestu December 25, 2020 - 10:29 am

I dont know what to say but THANK YOU VERY MUCH, this guide works very well dude!

I was no hope when i accidently deleted wrong EFI but this guide SAVED ME!

Reply
Michal Poterek December 31, 2020 - 3:02 pm

Cool you are great!

Reply
Dion January 3, 2021 - 8:29 am

Extremely helpful! you have to be aware of some concepts before attempting this, in order to adapt some of the commands if necessary –specially if the assigned letters are not the same– but this surely works! Thanks a lot, you’ve really saved my installation.
Regards.

Reply
Peter January 9, 2021 - 6:16 pm

Worked perfectly! Thanks for sharing this. I went to trouble after rescaling harddrive partitions on a windows system using GParted live. A very good and stable tool – but not the first time i had to work on booting issues after using.
Thank You again and take care. Regards Peter

Reply
Max January 12, 2021 - 5:00 pm

Thank you so much! You saved me, the only guide on the internet to do this! Thanks!!

Reply
Ron January 14, 2021 - 4:49 pm

Hi there, can anyone help me out please? I’m stuck at the mkdir command. Whenever I type it, all I get is “Microsoft Diskpart version….” and the list of commands. I can’t seem to get past that point. Any help would be greatly appreciated.

Reply
Ron January 14, 2021 - 5:01 pm

Not to worry, I just needed to open into cmd through automatic repair and it worked.

Reply
Ron January 18, 2021 - 9:43 pm

Hi there, can anyone offer me some assistance? I’ve gone through this process twice but get the same result each time: “stop code: INACCESSIBLE BOOT DEVICE”

Reply
glnz January 18, 2021 - 11:08 pm

Ron – Although this is one of the best tech articles I have ever read, and I am NOT a tech but just a real estate lawyer, I have solved similar issues twice in the past by using Macrium Reflect to make a disk clone bootable. Find the related instructions in the Macrium Reflect user guides. (Obviously, first make a backup of whatever you need to save in case all heck blows loose.)

Reply
Ron January 18, 2021 - 11:21 pm

Thanks for the reply 🙂 I may give that a go and see if it helps. I’m at a slightly different stage now, with a different error, but having more options is always helpful. Thanks a lot for taking the time to reply

Reply
Albert C. January 30, 2021 - 2:07 am

Thank you, very well explained!

Reply
Evaldas February 7, 2021 - 11:04 pm

THANK YOU THANK YOU THANK YOU! I deleted the EFI partition that was on my secondary drive when I was expanding my partitions, didn’t realise they were needed after all! Thank you, thank you!!!!

Reply
hossam February 14, 2021 - 2:44 pm

thank you very much that’s help me

Reply
Agung Prakasya February 14, 2021 - 2:55 pm

I moved the EFI partition and nothing worked then. This is the ultimate guide for the case, can’t find in any other place. Must save this!
Thank You very much!

Reply

Leave a Comment Cancel Reply

Categories

  • Active Directory
  • Group Policies
  • Exchange
  • Windows 10
  • Windows 8
  • Windows 7
  • Windows Server 2016
  • Windows Server 2012 R2
  • Windows Server 2008 R2
  • PowerShell
  • VMWare
  • MS Office

Recent Posts

  • Accessing USB Flash Drive from VMWare ESXi

    February 26, 2021
  • How to Sign a PowerShell Script (PS1) with a Code Signing Certificate?

    February 25, 2021
  • Change the Default Port Number (TCP/1433) for a MS SQL Server Instance

    February 24, 2021
  • How to Shadow (Remote Control) a User’s RDP session on RDS Windows Server 2016/2019?

    February 22, 2021
  • Configuring PowerShell Script Execution Policy

    February 18, 2021
  • Configuring Proxy Settings on Windows Using Group Policy Preferences

    February 17, 2021
  • Updating Group Policy Settings on Windows Domain Computers

    February 16, 2021
  • Managing Administrative Shares (Admin$, IPC$, C$, D$) in Windows 10

    February 11, 2021
  • Packet Monitor (PktMon) – Built-in Packet Sniffer in Windows 10

    February 10, 2021
  • Fixing “Winload.efi is Missing or Contains Errors” in Windows 10

    February 5, 2021

Follow us

woshub.com
  • Facebook
  • Twitter
  • RSS
Popular Posts
  • How to Allow Multiple RDP Sessions in Windows 10?
  • How to Repair EFI/GPT Bootloader on Windows 10?
  • Network Computers are not Showing Up in Windows 10
  • How to Run Program without Admin Privileges and to Bypass UAC Prompt?
  • Error Code: 0x80070035 “The Network Path was not found” after Windows 10 Update
  • How to Configure Google Chrome Using Group Policy ADMX Templates?
  • Updating List of Trusted Root Certificates in Windows 10/8.1/7
Footer Logo

@2014 - 2018 - Windows OS Hub. All about operating systems for sysadmins


Back To Top