SFC Fails within Recovery Enviroment

Page 1 of 2 12 LastLast

  1. Posts : 32
    windows 10 Pro Insider Fast ring
       #1

    SFC Fails within Recovery Enviroment


    I started getting the dreaded startup repair loop, and am unable too boot in Win 10 Insider build 16199. I have a multiboot, with Win 7, which works fine.
    I went to the command line within WinRE and ran chkdsk on the Win 10 partition, which found no errors. I then ran SFC /SCANNOW. First step ran fine. It then ends with the message "Windows resource protection could not perform the requested operation." Then back to the command line. Any ideas? Many thanks for the help.

    Jon
      My Computer


  2. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #2

    Yes, you'll get that if you just type SFC /SCANNOW. Without any options you're trying to run it on the online system (currently WinRE) not on your installed Windows - that's an offline system at present.

    From the recovery environment command prompt you need to use SFC's /OFFWINDIR option (and perhaps /OFFBOOTDIR) to tell it the system you want it to check. If from the WinRE command prompt your Windows system appear to be on the D: drive and installed in the \Windows folder then the command is:

    SFC /SCANNOW /OFFWINDIR=D:\WINDOWS

    I`d be careful with the /OFFBOOTDIR option as you have a dual boot system, I`m not sure what the effect could be. I don`t have a dual-boot system to test it on. On a single-boot system this runs successfully:

    SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\WINDOWS

    Code:
    /OFFBOOTDIR     For offline repair specify the location of the offline boot directory
    /OFFWINDIR      For offline repair specify the location of the offline windows directory
    Type SFC /? for the full Help

    Edit: There's more on using SFC at boot in Options One and Two here...

    Run SFC Command in Windows 10

    ...and on using it with dual-boot systems in Method Two here:

    SevenForums - SFC /SCANNOW : Run in Command Prompt at Boot
    Last edited by Bree; 09 Jun 2017 at 21:33. Reason: more info
      My Computers


  3. Posts : 32
    windows 10 Pro Insider Fast ring
    Thread Starter
       #3

    Bree, thank you for your response. I will try your advice and let you know the results.
      My Computer


  4. Posts : 32
    windows 10 Pro Insider Fast ring
    Thread Starter
       #4

    I finally got around to running SFC from WinRE with the additional parms pointing to the Win10 partition. After completing the message was it found corrupted files, but was unable to to repair all of them. Logging not available in offline mode. Any ideas are greatly appreciated. Thanks.
      My Computer


  5. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #5

    Good. Now try sfc again. From the tutorial...

    Note
    If SFC could not fix something, then run the command again to see if it may be able to the next time. Sometimes it may take running the sfc /scannow command up to 3 times with Fast Startup turned off and restarting the computer after each time to completely fix everything that it's able to.

    If not, then run the Dism /Online /Cleanup-Image /RestoreHealth command to repair any component store corruption, restart the PC afterwards, and try the sfc /scannow command again.
    Run SFC Command in Windows 10

    Like SFC, DISM can be run offline at boot. See this post for an example of the parameters required.

    Use DISM to Repair Windows 10 Image - post #400
      My Computers


  6. Posts : 32
    windows 10 Pro Insider Fast ring
    Thread Starter
       #6

    Bree, I'll check it out. One of the perks of retirement is time isn't much of factor 😁 Many thanks for the heads up.
      My Computer


  7. Posts : 32
    windows 10 Pro Insider Fast ring
    Thread Starter
       #7

    Ok, I created a WinPE Khly (sp) boot USB drive. Neither SFC or DISM will run. Are they not supported in that environment? Also, I got past the automatic repair loop by using Macrim to repair the MBR. Now I'm now getting an error about a Malwarebytes driver corruption. It happens both regular and safe boot. Is there any way to uninstall an app without booting the Win10 partition? Thanks for any advice.
    Jon
      My Computer


  8. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #8

    w1mnk said:
    Ok, I created a WinPE Khly (sp) boot USB drive. Neither SFC or DISM will run. Are they not supported in that environment?
    You'd have to ask @Kyhi that. The usual way to boot to a command prompt would be to boot from Windows 10 install media (not sure how you'd make that for your Insider build 16199) or a Recovery Drive USB (Control Panel\All Control Panel Items\Recovery > Create a recovery drive).
      My Computers


  9. Posts : 32
    windows 10 Pro Insider Fast ring
    Thread Starter
       #9

    I have an ISO for 16193. If I burn that to USB, I should be able too use that, right? Thanks.
    Jon
      My Computer


  10. Posts : 31,651
    10 Home x64 (22H2) (10 Pro on 2nd pc)
       #10

    Not being an Insider I can't say, but it sounds like it's worth a try.
      My Computers


 

  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 23:28.
Find Us




Windows 10 Forums