New
#11
X: is the Ramdisk drive letter.
run X:>
diskpart
sel disk #
list par
exit
# is the disk number with the OS
what do you get when you type
X:>bcdedit
X: is the Ramdisk drive letter.
run X:>
diskpart
sel disk #
list par
exit
# is the disk number with the OS
what do you get when you type
X:>bcdedit
Partitions:
partition — Postimages
Bcdedit:
bcdedit — Postimages
On the bcdedit screenshot you see:
Add installation to boot list? Yes(Y) ...
The operation completed successfully
C:\>bcdedit
What did you do to get this above question?
usually it's X:>
and device is:
device partition=\Device\HarddiskVolume1
Usually the SYSTEM Partition doesn't have a drive letter!
X:\Windows\System32>
diskpart
sel disk 0
sel par 1
format quick fs=ntfs label="System"
assign letter="S"
exit
bcdboot E:\Windows /l en-US /s S: /f BIOS
Your Recovery Environment is addressed in the BCD. Does it work?
sfc /scannow /offbootdir=E:\ /offwindir=E:\Windows
@Pentagon
The bcdedit was initially giving:
"The boot configuration data store could not be opened.
The system cannot find the file specified."
To get the previous screenshot, I had to run:
bootrec /fixboot
bootrec /fixmbr
bootrec /rebuildbcd
I just completed your "format" lines and upon running the bcdboot command, I am again getting "Failure when attempting to copy boot files."
As for the "sfc /scannow /offbootdir=E:\ /offwindir=E:\Windows" line, I get a
"Windows Resource Protection could not start the repair service."
I have definitely ran a sfc /scannow command before, without the additional parameters.
I don't really understand your question hereI'm not sure how to proceed from here? Any ideas?Your Recovery Environment is addressed in the BCD. Does it work?
Have you tried post #5.
This normally sorts most boot issues. There is even a tutorial on it because it is so effective.
Failed to copy boot files
Well for me it turned out that I'd tried everything but nothing worked. So today I was done with it and decided to reinstall Windows.
@YamiRaziel it is a good idea to try post #5 from cereberus. For me the program could not fix it but it did gave me the option to click on "continue to Windows 10". Before the program that option was totally gone.
Otherwise you can try the article from my approach #2. It won't mess up your system further atleast not for me. And I could run all the commands without any errors.
An extra tip in cmd you can type notepad.exe to open the explorer. In the explorer you can copy folders with something of a maximum size of 5 GB. I found it a lot less difficult this way than to use commands xcopy or robocopy. Be aware of the important users/AppData folder in your C: drive. This file was hidden for me but you can unhide the folder by switching to C: and using attrib -s -h -r /s /d *. * In this case drive C: is an example.
@YamiRaziel
You can't run sfc /scannow without the offline parameters!
In your case it doesn't make sense to check the
E:\Windows\Boot\Resources
E:\Windows\Boot\PCAT
directories for the bootfiles.
I would download explorer++
Explorer++ - Download
extract the zip and copy explorer++ to your USB boot stick
in command prompt type
X:> explorer++
and copy all files you want to save to your partition 4 (G:)
when finished
in X:> type exit
and run a clean installation.
When you are at the disk page delete the partitions 1-2-3 only
In less than 1 hour you are ready
Honestly I don't see how "Continue to Windows 10" will help me with anything. I get that option when I rebuild the bcd, but it still loops me back in diagnostics.
@Pentagon
This doesn't feel like fixing the issue but rather clean formatting all partitions, except the files I want to keep.
It is something I could've done from the start, but I'm more interested in exploring how to fix the issue, as I also want to ideally avoid reinstalling all programs and configs of my Windows, just because MS messed up my machine with their updates.
Thanks anyway.
Before I used this program I'd tried all sort of commands in cmd to fix the boot problem. None of them would give me the option "Continue to Windows 10". As I said it did not fixed the boot problem but maybe this program does something better instead of us when we insert all the commands manually.
The following may sound stupid but if you want to try everything it won't hurt. Somewhere I have read that you can try to click the option "start-up repair" 5 times in a row.
You could
1. backup your current C-Partition (2)
2. follow steps from #17
3. Run a Recovery and replace the C-Partition with the Backup from step 1
When the offline SFC-Command doesn't work it is much more than just a bootproblem!
mkdir E:\scratch
wpeutil InitializeNetwork
Wpeutil DisableFirewall
Dism /image:E:\ /Cleanup-Image /RestoreHealth /ScratchDir:E:\scratch
is the last trial,
Edit:
check the drive letter first. It might have changed
diskpart
list vol
Last edited by Pentagon; 08 Jan 2024 at 05:23.