A close friend's machine was blue screening on boot so he had me take a look at it. The error in the BSOD indicated Windows was having trouble reading from the drive. Although the drive wasn't clicking, based on what I was seeing, it seemed pretty clear the drive was on its way out. I ran chkdsk, several times, and it found plenty of bad sectors but wasn't able to really fix anything. Fortunately I was able to
- clone the drive using gparted
- run chkdsk
- fix the master boot record, boot sector and boot configuration data store
- run chkdsk again
- Now all is well
Upon booting I noticed the system was dreadfully out of date: Firefox, Java, Reader, Flash - the works - so I updated all that. I also noticed it was missing something like 50-70 Windows updates so I had to straight that right away. It managed to install 15-20 before failing with 80070057. This to me isn't too uncommon so I rebooted thinking it wouldn't choke next time. Much to my chagrin, any subsequent attempts fail with error 80070057. I even tried installing just a few updates at a time, even just 1, and the error persists. My assumption is that one or more files are maybe damaged and need to be fixed.
I ran sfc /scannow and it gets to about 27%, then fails with "Windows Resource Protection could not perform the requested operation." I did the following:
- backed up the existing CBS log
- ran sfc /scannow again
- watched the log in powershell via Get-Content C:\Windows\Logs\CBS\CBS.log -Wait
It started out strong
PS C:\Windows\Logs\CBS> Get-Content C:\Windows\Logs\CBS\CBS.log -Wait 2014-03-06 18:48:33, Info CBS Loaded Servicing Stack v6.0.6002.18005 with Core: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.0.6 002.18005_none_676975d87cc9b6e6\cbscore.dll 2014-03-06 18:48:33, Info CSI 00000001@2014/3/6:23:48:33.027 WcpInitialize (wcp.dll version 0.0.0.5) called (stack @0x7fef0cf8c85 @0x7feff3f53ae @0x7feff3c3ed1 @0xffa949a8 @0xffa930c9 @0xffa93578) 2014-03-06 18:48:33, Info CSI 00000002@2014/3/6:23:48:33.045 WcpInitialize (wcp.dll version 0.0.0.5) called (stack @0x7fef0cf8c85 @0x7feff4386cf @0x7feff4125d9 @0x7feff3c3feb @0xffa949a8 @0xffa930c9) 2014-03-06 18:48:33, Info CSI 00000003@2014/3/6:23:48:33.048 WcpInitialize (wcp.dll version 0.0.0.5) called (stack @0x7fef0cf8c85 @0x7feff21838d @0x7feff2184ba @0xffa94207 @0xffa93125 @0xffa93578) 2014-03-06 18:48:33, Info CBS NonStart: Checking to ensure startup processing was not required. 2014-03-06 18:48:33, Info CSI 00000004 IAdvancedInstallerAwareStore_ResolvePendingTransactions (call 1) (flags = 00000004, progress = NULL, phase = 0, pdwDispo sition = @0xb8fad0 2014-03-06 18:48:33, Info CBS NonStart: Success, startup processing not required as expected. 2014-03-06 18:48:33, Info CSI 00000005 CSI Store 4751600 (0x00000000004880f0) initialized 2014-03-06 18:48:38, Info CSI 00000006 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:38, Info CSI 00000007 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:39, Info CSI 00000008 Repair results created: POQ 0 starts: POQ 0 ends. 2014-03-06 18:48:39, Info CSI 00000009 [SR] Verify complete 2014-03-06 18:48:39, Info CSI 0000000a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:39, Info CSI 0000000b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:40, Info CSI 0000000c Repair results created: POQ 1 starts: POQ 1 ends. 2014-03-06 18:48:40, Info CSI 0000000d [SR] Verify complete 2014-03-06 18:48:40, Info CSI 0000000e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:40, Info CSI 0000000f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:41, Info CSI 00000010 Repair results created: POQ 2 starts: POQ 2 ends. 2014-03-06 18:48:41, Info CSI 00000011 [SR] Verify complete 2014-03-06 18:48:41, Info CSI 00000012 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:41, Info CSI 00000013 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:41, Info CSI 00000014 Repair results created: POQ 3 starts:
..... and so on
Until it hit a problem
POQ 34 ends. 2014-03-06 18:49:08, Info CSI 00000091 [SR] Verify complete 2014-03-06 18:49:08, Info CSI 00000092 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:08, Info CSI 00000093 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:09, Info CSI 00000094 Repair results created: POQ 35 starts: POQ 35 ends. 2014-03-06 18:49:09, Info CSI 00000095 [SR] Verify complete 2014-03-06 18:49:09, Info CSI 00000096 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:09, Info CSI 00000097 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:10, Info CSI 00000098 Repair results created: POQ 36 starts: POQ 36 ends. 2014-03-06 18:49:10, Info CSI 00000099 [SR] Verify complete 2014-03-06 18:49:11, Info CSI 0000009a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:11, Info CSI 0000009b [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:12, Error CSI 0000009c@2014/3/6:23:49:12.802 (F) d:\longhorn\base\wcp\primitiveinstallers\filehierarchy.cpp(1939): Error STATUS_INVALID_PARAMETER originated in fun ction FileInstaller::CFileInstallerHierarchy::PortFileInformationBetweenCdfs expression: TmpBlob.Length == sizeof(LUACDF_FILE_ENTRY) [gle=0x80004005] 2014-03-06 18:49:16, Error CSI 0000009d (F) STATUS_INVALID_PARAMETER #2119209# from CFileInstaller::CommitChanges(...)[gle=0xd000000d] 2014-03-06 18:49:16, Error CSI 0000009e (F) STATUS_INVALID_PARAMETER #2119208# from PrimitiveInstaller::CCoordinator::FinalizeChanges(...)[gle=0xd000000d] 2014-03-06 18:58:33, Info CBS Scavenge: Package store indicates there is no component to scavenge, skipping.
I searched for "[SR]" but I didn't see anything of great interest
C:\Windows\system32>findstr /c:"[SR]" %windir%\logs\cbs\cbs.log 2014-03-06 18:48:38, Info CSI 00000006 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:38, Info CSI 00000007 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:39, Info CSI 00000009 [SR] Verify complete 2014-03-06 18:48:39, Info CSI 0000000a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:39, Info CSI 0000000b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:40, Info CSI 0000000d [SR] Verify complete 2014-03-06 18:48:40, Info CSI 0000000e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:40, Info CSI 0000000f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:41, Info CSI 00000011 [SR] Verify complete 2014-03-06 18:48:41, Info CSI 00000012 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:41, Info CSI 00000013 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:41, Info CSI 00000015 [SR] Verify complete 2014-03-06 18:48:42, Info CSI 00000016 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:42, Info CSI 00000017 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:42, Info CSI 00000019 [SR] Verify complete 2014-03-06 18:48:42, Info CSI 0000001a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:42, Info CSI 0000001b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:44, Info CSI 0000001d [SR] Verify complete 2014-03-06 18:48:44, Info CSI 0000001e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:44, Info CSI 0000001f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:45, Info CSI 00000021 [SR] Verify complete 2014-03-06 18:48:45, Info CSI 00000022 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:45, Info CSI 00000023 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:45, Info CSI 00000025 [SR] Verify complete 2014-03-06 18:48:46, Info CSI 00000026 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:46, Info CSI 00000027 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:46, Info CSI 00000029 [SR] Verify complete 2014-03-06 18:48:47, Info CSI 0000002a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:47, Info CSI 0000002b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:47, Info CSI 0000002d [SR] Verify complete 2014-03-06 18:48:48, Info CSI 0000002e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:48, Info CSI 0000002f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:48, Info CSI 00000031 [SR] Verify complete 2014-03-06 18:48:48, Info CSI 00000032 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:48, Info CSI 00000033 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:49, Info CSI 00000035 [SR] Verify complete 2014-03-06 18:48:49, Info CSI 00000036 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:49, Info CSI 00000037 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:50, Info CSI 00000039 [SR] Verify complete 2014-03-06 18:48:50, Info CSI 0000003a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:50, Info CSI 0000003b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:50, Info CSI 0000003d [SR] Verify complete 2014-03-06 18:48:51, Info CSI 0000003e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:51, Info CSI 0000003f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:51, Info CSI 00000041 [SR] Verify complete 2014-03-06 18:48:51, Info CSI 00000042 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:51, Info CSI 00000043 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:52, Info CSI 00000045 [SR] Verify complete 2014-03-06 18:48:52, Info CSI 00000046 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:52, Info CSI 00000047 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:52, Info CSI 00000049 [SR] Verify complete 2014-03-06 18:48:53, Info CSI 0000004a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:53, Info CSI 0000004b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:53, Info CSI 0000004d [SR] Verify complete 2014-03-06 18:48:54, Info CSI 0000004e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:54, Info CSI 0000004f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:54, Info CSI 00000051 [SR] Verify complete 2014-03-06 18:48:54, Info CSI 00000052 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:54, Info CSI 00000053 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:55, Info CSI 00000055 [SR] Verify complete 2014-03-06 18:48:55, Info CSI 00000056 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:55, Info CSI 00000057 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:55, Info CSI 00000059 [SR] Verify complete 2014-03-06 18:48:56, Info CSI 0000005a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:56, Info CSI 0000005b [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:56, Info CSI 0000005d [SR] Verify complete 2014-03-06 18:48:56, Info CSI 0000005e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:56, Info CSI 0000005f [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:57, Info CSI 00000061 [SR] Verify complete 2014-03-06 18:48:57, Info CSI 00000062 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:57, Info CSI 00000063 [SR] Beginning Verify and Repair transaction 2014-03-06 18:48:58, Info CSI 00000065 [SR] Verify complete 2014-03-06 18:48:58, Info CSI 00000066 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:48:58, Info CSI 00000067 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:00, Info CSI 00000069 [SR] Verify complete 2014-03-06 18:49:00, Info CSI 0000006a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:00, Info CSI 0000006b [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:00, Info CSI 0000006d [SR] Verify complete 2014-03-06 18:49:01, Info CSI 0000006e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:01, Info CSI 0000006f [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:01, Info CSI 00000071 [SR] Verify complete 2014-03-06 18:49:02, Info CSI 00000072 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:02, Info CSI 00000073 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:02, Info CSI 00000075 [SR] Verify complete 2014-03-06 18:49:02, Info CSI 00000076 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:02, Info CSI 00000077 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:03, Info CSI 00000079 [SR] Verify complete 2014-03-06 18:49:03, Info CSI 0000007a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:03, Info CSI 0000007b [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:04, Info CSI 0000007d [SR] Verify complete 2014-03-06 18:49:04, Info CSI 0000007e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:04, Info CSI 0000007f [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:05, Info CSI 00000081 [SR] Verify complete 2014-03-06 18:49:05, Info CSI 00000082 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:05, Info CSI 00000083 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:06, Info CSI 00000085 [SR] Verify complete 2014-03-06 18:49:06, Info CSI 00000086 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:06, Info CSI 00000087 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:06, Info CSI 00000089 [SR] Verify complete 2014-03-06 18:49:07, Info CSI 0000008a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:07, Info CSI 0000008b [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:07, Info CSI 0000008d [SR] Verify complete 2014-03-06 18:49:08, Info CSI 0000008e [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:08, Info CSI 0000008f [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:08, Info CSI 00000091 [SR] Verify complete 2014-03-06 18:49:08, Info CSI 00000092 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:08, Info CSI 00000093 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:09, Info CSI 00000095 [SR] Verify complete 2014-03-06 18:49:09, Info CSI 00000096 [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:09, Info CSI 00000097 [SR] Beginning Verify and Repair transaction 2014-03-06 18:49:10, Info CSI 00000099 [SR] Verify complete 2014-03-06 18:49:11, Info CSI 0000009a [SR] Verifying 100 (0x0000000000000064) components 2014-03-06 18:49:11, Info CSI 0000009b [SR] Beginning Verify and Repair transaction C:\Windows\system32>
I've run into sfc issues in the past, and in one instance, booting the OS install DVD, and running sfc /scannow /offbootdir=c:\ /offwindir=c:\windows did fix the issue. But I have to ask
Is there no way to do that while in Windows? Can't I mount some WIM and do it that way instead of booting the DVD?
Is that the right course of action, or is/are there some other options I should explore?
Thanks for your time & guidance.