Accidentally deleted partition table, got it back, but now can't boot Windows

1

I'm dual-booting Ubuntu 14.04 and Windows 10. I accidentally deleted the partition table for my main HDD, but was able to recover it. Now, I can't boot Windows. Thankfully, it was easy to reinstall Grub and boot Ubuntu.

When trying to boot Windows, there is an error message on a bright blue screen:

A required device isn't connected or can't be accessed.

Error code 0xc0000225

I tried pressing F8 for Startup Settings, but got this error:

The application or operating system couldn't be loaded because a required file is missing or contains errors.

File: \Windows\system32\winload.efi

Error code: 0xc0000225

I have already made a Windows install USB and tried using the recovery tools on it. Startup Repair didn't do anything at all. System Restore said to restart then select the OS but nothing happened after restart. Based on instructions here I went to CMD and ran bootrec /rebuildbcd, which found my Windows install, but when I confirmed to add it to the boot list, it said something like the drive was inaccessible.

Edit: Changed some details above. Also retried the install USB but now it won't even start. It errors:

Your PC/device needs to be repaired. The boot configuration data for your PC is missing or contains errors.

File: \EFI\Microsoft\Boot\BCD

Error code: 0xc000000f

Tomorrow, I will re-make the installation media then retry.

windows
boot
windows-10
multi-boot
asked on Super User May 3, 2016 by wjandrea • edited Jun 12, 2020 by Community

4 Answers

1

The solution was to boot an install disc, start a command prompt, then run bootrec /rebuildbcd

Edit (2016-06-16): Whoops, I forgot I had already tried that. I may have solved the problem by adding an msftdata flag to C: or by rebuilding the install disc, but I can't remember exactly what steps I took besides running bootrec /rebuildbcd

answered on Super User Jun 8, 2016 by wjandrea • edited Jun 16, 2016 by wjandrea
1

I had a similar experienced with my Asus ROG GL552VW. Originally I would dual-boot Ubuntu 16.04 LTS and Windows 10 and everything was working fine until I restarted my computer with my External USB 2.5 Drive plugged in to my laptop (it contained a backup Asus ROG Windows 10 System). I think that my laptop attempted to boot from the External USB Drive and that is when I tried to stop it by pressing the power button. This screwed up my dual-boot setup.

When I restarted my laptop again I chose Windows from GRUB but I encountered the horrific blue error screen:

Your PC/device needs to be repaired.

The boot configuration data for your PC is missing or contains errors.

When I selected option F8, I received the message:

The application or operating system couldn't be loaded because a required file is missing or contains errors.

File: \Windows\system32\winload.efi

I did some research and after reading at this post I figured how to modify my UEFI/BIOS settings and fix my Windows 10 boot issue.

I read this Asus support forum to access my laptop's firmware. I booted the laptop and as soon as I saw the Asus splash screen, I pressed Esc multiple times. Then a boot menu screen loaded and I selected Enter Setup

I noticed the current settings in my firmware:

Security

Secure Boot Control [Disabled]

Boot

Launch CSM [Enabled]

Launch PXE OpROM [Disabled]

Next, I modified these settings to :

Security

Secure Boot Control [Enabled]

Boot

Fast Boot [Enabled]

Launch CSM [Disabled]

Then I restarted my computer and I booted from a Windows 10 Installation DVD. I used the recovery tools from Startup Repair. I entered CMD.

After running bootrec /RebuildBcd:

1 Windows installation was identified

When asked Add installation to boot list? I chose Yes

Finally it said The operation completed successfully

Restarted computer

I did not need to reinstall GRUB2. My laptop is now back to normal and I am able to dual boot to Ubuntu 16 and Windows 10! I hope people find this helpful :)

answered on Super User Jan 22, 2018 by cocoder
0

Make a backup of your old config then try

sudo grub-mkconfig -o /boot/grub/grub.cfg

This will make a new config, and will probably add Windows back.

answered on Super User May 3, 2016 by Alex
0

I have had many similar problems with Windows 10 systems blue screening on startup, including the 0xc000000f, but not the 0x0000225.

The solution that will save you the most time will be to reinstall Windows 10 - this will take a few hours and help you avoid continually rebooting the system only to find the same problems.

Download the Media Creation Tool for free: https://www.microsoft.com/en-gb/software-download/windows10 - Use this to create the installation disk/usb.

Use Ubuntu to backup your Windows Partition (excluding windows files), then restart and use the installation disk/usb to install Windows 10 to your chosen Windows 10 partition, formatting the partition in the process.

Again, while this may seem like a drastic measure to solve a missing or corrupt boot file, it will save you countless hours in the long run.

answered on Super User May 3, 2016 by Matthew

User contributions licensed under CC BY-SA 3.0