Failed to copy boot files

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 701
    WIN 10 19045.4291
       #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
      My Computer


  2. Posts : 6
    Windows 10 Pro 64 Bit
       #12
      My Computer


  3. Posts : 701
    WIN 10 19045.4291
       #13

    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
      My Computer


  4. Posts : 6
    Windows 10 Pro 64 Bit
       #14

    @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 here
    Your Recovery Environment is addressed in the BCD. Does it work?
    I'm not sure how to proceed from here? Any ideas?
      My Computer


  5. Posts : 15,502
    Windows10
       #15

    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
      My Computer


  6. Posts : 4
    Windows 10
    Thread Starter
       #16

    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.
      My Computer


  7. Posts : 701
    WIN 10 19045.4291
       #17

    @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
      My Computer


  8. Posts : 6
    Windows 10 Pro 64 Bit
       #18

    Copy that said:

    @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.
    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.
      My Computer


  9. Posts : 4
    Windows 10
    Thread Starter
       #19

    YamiRaziel said:
    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.
    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.
      My Computer


  10. Posts : 701
    WIN 10 19045.4291
       #20

    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.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 14:53.
Find Us




Windows 10 Forums