Sometimes you don't have re-install Windows to fix a boot problem

garlin

Moderator
Staff member
Last week I had to fix my dad's PC, which stopped booting after bad weather caused a power outage.

He likes to do video editing, and CHKDSK spent a long time scanning all the disks before failing on boot repairs. Win 7 would boot to the logo, before powering off. Booting to safe mode also powered off.

From a W7 ISO, I tried running boot repair and System Restore -- it didn't work. sfc /scannow reported some uncorrectable errors.

This point, some users expect to do a repair install. But you can't run Upgrade from WinPE, that only works on a live system. W7 is too old for DISM /cleanup-image /restorehealth, even if you use a W10 ISO.

What worked was using sfc, but logging the errors to a file. Normally WinPE doesn't allow you to write files since X: is a RAM disk.
Code:
sfc /scannow /offbootdir=E:\ /offwindir=E:\Windows /offlogfile=D:\log.txt

WinPE doesn't have findstr or other tools, so I read the file on my PC.
Code:
findstr /c:"[SR]" log.txt | findstr "file"

0000e8f8 [SR] Cannot repair member file [l:22{11}]"difxapi.dll" of Microsoft-Windows-difxapi, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
0000e8fa [SR] Cannot repair member file [l:22{11}]"difxapi.dll" of Microsoft-Windows-difxapi, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
0000e8fe [SR] Could not reproject corrupted file [ml:520{260},l:46{23}]"\??\C:\Windows\SysWOW64"\[l:22{11}]"difxapi.dll"; source file in store is also corrupted
0000e904 [SR] Cannot repair member file [l:22{11}]"difxapi.dll" of Microsoft-Windows-difxapi, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
0000e906 [SR] Cannot repair member file [l:22{11}]"difxapi.dll" of Microsoft-Windows-difxapi, Version = 6.1.7600.16385, pA = PROCESSOR_ARCHITECTURE_INTEL (0), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch
0000e90a [SR] Could not reproject corrupted file [ml:520{260},l:46{23}]"\??\C:\Windows\SysWOW64"\[l:22{11}]"difxapi.dll"; source file in store is also corrupted

difxapi.dll is a library used for driver signing. It lives in four folders: System32, SysWOW, and two WinSxS backup folders.
I didn't know which ones were corrupted, so I copied the same files from a working W7 system and sfc /scannow completed w/o errors.

Windows was fixed, and it booted again. The only problem was Firefox didn't launch, and I re-installed it. The lesson is sometimes you don't really need to re-install Windows if you have patience to try other repairs.
 
Last week I had to fix my dad's PC, which stopped booting after bad weather caused a power outage.

He likes to do video editing, and CHKDSK spent a long time scanning all the disks before failing on boot repairs. Win 7 would boot to the logo, before powering off. Booting to safe mode also powered off.

I know what that means, windows likes to break files scanning and "repairing"" when the system is shutdown unexpected.

How to avoid this (waste of time + drive wear + breaking files)?

Disable Autocheck drives on boot.

The bigger the drive is, the longer it takes.
 
I don't believe in urban folklore. The only time to disable filesystem checking on boot is if you know there's serious block corruption, and you need a professional to recover data. But if two decades of systems experience has taught you otherwise, OK.
 
I don't believe in urban folklore.
Nobody should & nobody tells you to do it but everyone es free to do whatever thinks is better.

I do it because it works great to me
and the only time when files get damaged:
  • A shutdown is done while saving changes.
  • Lots of fragmentation while keep copying and moving files whitout formatting, this happens on my microSD card when I forget to backup files, format & restore.

Other than that, a "safe unload bit" hasn't been saved to the boot record, if windows can't see that bit, the scan starts.

That fck'n bit triggered many times a windows 8/10 dual boot because I could access to the w10 drive and read/write files, now you can't access "a win 10/11 partition running some last w10/w11 partition.
 
Back
Top