Failed boot after system recovery


I have Windows 10 Home on a Lenovo Yoga 720, the authentic copy that came with the laptop. I also needed an ubuntu installation (with GrubLoader) for work and that required me to change in my BIOS the hard drive from RAID to AHCI. I followed an online tutorial and successfuly dual booted both systems 5 months ago.


Currently, I tried to perform a system restore to a point that was automatically created last week due to issues with firefox and windows has refused to boot since. It tries to diagnose a problem, fails, and directs me to the recovery optons menu. Safe Mode is inaccessible as well.


 Here's the full timeline of my recent action:

- I continually face issues with Geforce Experience, which I use to update my drivers, crashing and a workaround I found online (method 2 in this link: https://www.****/knowledge/solved-something-went-wrong-try-restarting-geforce-experience/) is to review some settings in Nvidia services. I did that and installed the most recent drivers and then restarted my computer.


-Windows booted successfully but firefox refused to open, showing a message that it failed to load XPCOM, and any solution I found did not help. After uninstalling, deleting folders, and reinstalling several times, I gave up and decided to restore to an earlier point to ensure the system is back to a point before my tinkering with it.


-I found a restore point from earlier this week, which was very convenient, and it ran successfully but windows refused to boot since.


I am now considering reseting (not my favourite option if another solution exists) but I am worried about the hard drive settings that were changed earlier to accomodate to Ubuntu. If a system reset is in anyway similar to restoring the system to an earlier point, it will certainly fail and crash after returning the drivers to their original RAID setting while the BIOS remain in AHCI.

Is there a possible solution I have not tried?
Will a system restore work or do I need a fresh installtion from an external drive?

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

Begin with a bootable Windows 10 install media on a USB stick. If you download the Windows ISO, you can use a utility called Rufus to create the UEFI-bootable USB stick. If you don't already have the Windows ISO file, you can run the Media Creation Tool from the link below to create the ISO file.  https://www.microsoft.com/en-us/software-download/windows10
 

The same link under Ubuntu will download the ISO file without running the Media Creation Tool, but you would also need some way to create the bootable USB stick.

 

Once you have booted your PC from this USB stick, Windows setup will load. Use SHIFT-F10 to get a Command Prompt.  From there, check what drive letter has Windows and your Users folder on it.  If it is on C:, use the command below to attempt to rebuild the BCD:

bcdboot C:\Windows

You can also check Windows:

sfc /scannow /OFFBOOTDIR=C:\ /OFFWINDIR=C:\Windows

If sfc finds but cannot fix some errors, try this DISM command:

DISM /Image:C:\ /Cleanup-Image /RestoreHealth

If you find Windows is on some other drive letter, adjust the commands above to replace C: with that drive letter. The letter does not matter in this mode, as long as you use the letter that has Windows and Users folders on it.

Don

2012 Alienware Aurora R4 ALX
Intel i7-3960X, 32GB RAM, 250GB NVMe SSD, NVIDIA GeForce GTX 690

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Mariam. I'm Greg, an installation specialist and 10 year Windows MVP here to help you.

ACHI is also the suggested and optimal SATA setting for Windows 10, never RAID which is nothing but trouble.

What I suggest is to recover the Windows bootloader, reinstall GRUB to the Linux partition, then add it to a Windows Boot Menu using EasyBCD.

To recover the Windows bootloader for UEFI you need to create the UEFI System partition:

- Boot the computer using the Windows 7/8/8.1/10 installation media.
- On the first screen, press SHIFT+F10 to bring up the command prompt.
- Run the following commands at the command prompt.

diskpart
list disk
select disk # Note: Select the disk where you want to add the EFI System partition.
list partition
select partition # Note: Select the Windows OS partition (# number) or your data partition.
shrink desired=100
create partition efi size=100
format quick fs=fat32
assign letter=s
list partition
list volume Note: Note the volume letter where the Windows OS is installed.
exit

bcdboot X:\windows /s S:
Note: Replace "X" with the volume letter of the Windows OS partition.

BCDBoot copies the boot files from the Windows partition to the EFI System partition and creates the BCD store in the same partition.

(Source Kyhi Guru)

For Legacy MBR mark the System Reserved or Windows partition Active first:
http://www.sevenforums.com/tutorials/71432-part...

Then for either run Startup Repair up to 3 separate times until Windows starts.

See here for how to add GRUB on Linux partition to the Windows Boot Menu:
http://neosmart.net/wiki/display/EBCD/Ubuntu
http://neosmart.net/wiki/display/EBCD/EasyBCD+B...
EasyBCD download (no email or name needed) http://neosmart.net/Download/Register/1

If you want to reinstall wipe all partitions down to Unallocated Space doing this gold standard Clean Install which compiles the best possible Install of Windows which will stay that way as long as you stick with the tools and methods given, has zero reported problems, and is better than any amount of money could buy: http://answers.microsoft.com/en-us/windows/wiki...

I hope this helps. Feel free to ask back any questions and keep me posted. I will keep working with you until it's resolved.

________________________________________________________

Standard Disclaimer: There are links to non-Microsoft websites. The pages appear to be providing accurate, safe information. Watch out for ads on the sites that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the sites before you decide to download and install it.
____________________________
Retired 2023, thirteen year daily forums volunteer, Windows MVP 2010-2020

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

The first command seemed to work, the second found some errors it could not resolve, and the third hit some snags. First it said the scratch directory size is insufficient so I made a scratch folder and then stopped at 84% and said some resources were not found. I made a scratch folder and added it into the command, but the sources not found error still showed up(error 0x800f081f). I tried the /StartComponentCleanup and /AnalyzeComponentStore, both of which ran successfully, but rerunning the original command still yielded the same error.

Now booting windows does not give me the recovery menu but fails completly.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

As my previous reply to Don, the bcdboot command seems to make things worse by stopping windows from being able to diagnose a problem at all and it stop showing the recovery menu at all.

This problem occured previosuly when a solution online had me change my BCD file to BCD.old and copy a fresh one to the same directory. Windows was able to boot again to the recovery menu after I returned the BCD.old to BCD.

Is there a possible way to undo the bcdboot command os is the only option left a clean install?

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

HI Mariam. I 'm
____________________________
Retired 2023, thirteen year daily forums volunteer, Windows MVP 2010-2020

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Mariam, the problem with rebuilding the BCD on C is that it almost never is on C but instead on the EFI System or System Reserved partition. So the proper BCD Commands are in my tutorial here which includes everything possible is here for Troubleshooting Windows 10 Failure to Start: http://answers.microsoft.com/en-us/windows/wiki...
____________________________
Retired 2023, thirteen year daily forums volunteer, Windows MVP 2010-2020

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

How can I check which drive it is on?

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Included in the tutorial I gave you which tells how to find the boot drive:

"Note that it is often necessary to export the BCD first as detailed in the link, and the drive letter referenced may not be C. To determine the boot partition's drive letter run:

DISKPART
LIST VOLUME

Now look for the System partition. If it doesn't have a letter run:

SELECT VOL # (replace # with Volume number for System Partition)

ASSIGN (to assign a drive letter, now detected by List Volume)."

But I would start at the top because these repairs are all sequenced in that tutorial in order of priority. It is based on ten years daily in forums troubleshooting tens of thousands of boot failures.
____________________________
Retired 2023, thirteen year daily forums volunteer, Windows MVP 2010-2020

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Sorry, I was not available earlier to reply here. I apologize, as I always forget the Scratch portion for offline DISM until I try it and get the warning, as you did.

The bcdboot command by default updates the System partition identified by the firmware.  Sometimes, I have found that totally deleting and replacing the System partition works best. This is fairly easy to do on a UEFI-enabled install and I believe Greg has documented repair steps very well in his links.

If your install media matches the Version of Windows 10 installed, you may be able to use the \sources\install.wim, or install.esd as the source for DISM repair. You would need to determine the correct Index number in the install.wim file that matches your installed Windows Edition.

To check to see which Index matches your Edition:

DISM /Get-WimInfo /WimFile:D:\sources\install.wim

You would have to use the corresponding Index number in the DISM command to repair Windows. I have one that has install.esd with 7 Editions and Home Edition is in Index:1.  The DISM command to attempt repair, including the Source (and Scratch) would be:

DISM /Image:C:\ /Cleanup-Image /ScratchDir:C:\Recycler\Scratch /RestoreHealth /Source:ESD:D:\sources\install.esd /Index:1

(Sometimes getting a valid source to work with DISM is difficult.  For example, with a WIM file it must be, at most, compression "max".)

To restore Recovery functions during bootup:

If you replace your System partition, you also need to redirect Windows to the Recovery image, in order to restore the auto-Repair function during boot. It can be a bit complex, as you need the GUID of the Windows from the new BCD that you created. However, you can copy and paste that using the mouse in the Command Prompt. Highlighting text and then right-clicking the Command window copies the selected text. Your next right-click will paste what you copied.

run C:\Windows\system32\ReAgentc.exe /info /target C:\Windows

bcdedit /enum /v  <-- this will give you the GUID for your Windows (similar to below):

Windows Boot Loader

-------------------

identifier              {3334a397-7c23-11e9-8f6d-5cf370840b24}

device                  partition=C:

To enable Windows Repair Environment, it helps to have a drive letter assigned to the Recovery volume. You can do this in diskpart.

list volume

assuming Recovery shows as volume 4, the command to give it letter R: would be:

select volume 4

assign letter=R

Once you exit diskpart, use these commands to get Windows Repair Environment working:

C:\Windows\system32\ReAgentc.exe /setreimage /path R:\Recovery\WindowsRE /target C:\Windows

C:\Windows\system32\ReAgentc.exe /enable /osguid {3334a397-7c23-11e9-8f6d-5cf370840b24}  <-- use your own GUID from the bcdedit /enum /v command

C:\Windows\system32\ReAgentc.exe /info /target C:\Windows  <-- this should now show Windows RE status: Enabled

Don

2012 Alienware Aurora R4 ALX
Intel i7-3960X, 32GB RAM, 250GB NVMe SSD, NVIDIA GeForce GTX 690

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

An alternative Repair menu is available by booting with Windows 10 install media (such as on USB) and selecting Repair your computer from the second screen of Windows setup.
Don

2012 Alienware Aurora R4 ALX
Intel i7-3960X, 32GB RAM, 250GB NVMe SSD, NVIDIA GeForce GTX 690

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 
 

Question Info


Last updated October 25, 2019 Views 107 Applies to: