Windows 7 boot drive corruption.

June 4, 2019 at 08:21:51
Specs: Windows 7, haswell 3.7
So I turned on my PC to day to a lovely can't boot issue. In this case I'm going to need to invest the time to fix it because I need this OS back up. My backup system failed me, so its really got me set back.

Main issue is when I try to boot I get a error about a bad \windows\system32\drivers\cng.sys driver.

Here is what I tried to fix it.

1) My first hope was an inplace upgrade but no go since I can not boot in to the OS.
2) I tried the repair options.
a)none of the automatic ones worked.
b)No restore points found
c) command prompt works and the files are all accessible. I than tried sfc/scannow option. This game me a error about a pending request and I followed a guide using "dism.exe /image:C:\ /cleanup-image /revertpendingactions" to fix that but it complained about no space. So I then used the scratch disc option on that and got an error 0x800F082F running the check. Needless to say this is not working.,
3) Trying to fix the issue, but 9 times out of 10 its not the issue being reported. What is a cng driver?

Not really sure what else to do here? Is there anyway to rig a usb stick to boot in to my os to do an inplace upgrade? Or anyway to fix this driver error? There should also be restore point on the computer, not sure why that didnt work.



See More: Windows 7 boot drive corruption.

Report •

#1
June 4, 2019 at 14:31:26
After some netting I was lead to this page
https://support.microsoft.com/en-us...
the advice here put me to another road block where I could not delete the packages.


Report •

#2
June 4, 2019 at 20:51:46
With the registry change done, does the "dism . . . /revertpendingactions" fix anything?

How To Ask Questions The Smart Way


Report •

#3
June 5, 2019 at 05:24:39
No I still get that ERROR 0x800F082F

Report •

Related Solutions

#4
June 5, 2019 at 10:30:19
Well, according to a guy who was trying to get a server to patch again, there's two keys you need to delete. They're "Exclusive" and "TotalSessionPhases", both in "HKLM\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending".

Scenario 3 from your link only tells you to delete the "Exclusive" entry, but the command to delete the other entry is simple enough:

reg delete “HKLM\temp\Microsoft\Windows\CurrentVersion\Component Based Servicing\SessionsPending” /v TotalSessionPhases

From there, I assume you can continue to follow the steps to list pending or recent packages, and remove them. To get that list, I'd suggest the following:

dism /format:table /image:C:\ /get-packages | findstr /i "Instal"

You'll have to manually go through the list you get, since there's no good way to sort by date in CMD and DISM doesn't do the sorting.

How To Ask Questions The Smart Way


Report •

#5
June 5, 2019 at 10:35:04
I already see the two pending in my list (I did a > file.txt and used notepad to find them) but I didnt know about the second delete, ill try it.

message edited by ulaoulao


Report •

#6
June 5, 2019 at 14:42:47
I was able to delete that and when I do the remove package is says errir 3017 a reboot is required. Rebooting does not help bot or allow me to redo this package removal.

the cleanup gives error 0x8000ffff

the delete says the same reboot is required error

message edited by ulaoulao


Report •

#7
June 5, 2019 at 16:13:29
Another blog, this time by a Microsoft guy, says there's a number of registry keys involved. He names anything under "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired". We can delete that easy enough with reg.
reg delete "hklm\temp\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired"

There's also the list of file moves Windows Update uses to know what files need to be replaced:

reg delete "hklm\temp\SYSTEM\CurrentControlSet\Control\Session Manager" /v PendingFileRenameOperations

Finally, a third key:

reg delete "hklm\temp\SOFTWARE\Microsoft\Updates\UpdateExeVolatile" /v Flags

A subset of these may be present, or there's something else holding dism back. I don't know; I've been lucky enough to never need to attempt a manual recovery from a failed Windows patch.

How To Ask Questions The Smart Way


Report •

#8
June 5, 2019 at 19:08:25
ok I got regedit to run and an only mount software, system was access denied ?

the rebootrequired was not there
updates only has two folders both ,net stuff no updatevalitile

message edited by ulaoulao


Report •

#9
June 5, 2019 at 19:20:06
Copy/Paste mistake. Sorry about that, remove the SOFTWARE part of the commands. For the SYSTEM line, you'll also have to "reg load" the "hklm\system" hive as well. Not sure what you'd load it as. "temp2"? In any case, you'd have to replace the "hklm\temp\system" with whatever you loaded it as.

How To Ask Questions The Smart Way


Report •

#10
June 5, 2019 at 19:34:48
oh sorry I editied all of that, I didnt know that you mount to the temp in the registery. I see how it works now.

and access denied was my bad. Looking for the one now.

message edited by ulaoulao


Report •

#11
June 5, 2019 at 19:40:30
so no luck in system aslo but interestingly a pending rename operation was found in control/.backuprestore/keynottorestore

message edited by ulaoulao


Report •

#12
June 5, 2019 at 20:09:39
What do you mean by "no luck in the system"? You couldn't get it to mount, or you didn't have a "PendingFileRenameOperations"?

How To Ask Questions The Smart Way


Report •

#13
June 6, 2019 at 05:55:55
I meant that non of the expected fields where in there. Though now that I get how this work I think I should be able to fix it. I just need to know what this driver is, can;t I just remove it from the registry start up and boot without? Seems like a stupid issue to have. I pretty much have all the tools I need, just missing the understanding of the problem.

message edited by ulaoulao


Report •

#14
June 6, 2019 at 13:29:44
It's what gives Windows encryption / decryption, and it's considered a critical driver. Without it, you can't get online, and Windows can't verify its kernel files. Considered critical to Windows' operation.

If you have a working version of Windows to compare against, look in your Windows\SoftwareDistribution for files that aren't on the working system, and move / delete them.

EDIT: Rereading the OP, and you didn't mention trying a repair install.Might give that a go, if you can.

How To Ask Questions The Smart Way

message edited by Razor2.3


Report •

#15
June 6, 2019 at 13:39:11
So I got further.

Apparently the recovery offers two options.A windows and a x64. Well I needed x64 as it appears x86 is "windows". So not that that is done I get the repair option. During this is says "setup can not repair...." and the details says the problem event name is startuiprepairoffline and some details about problem signatures. One that is badpatch.I guess I can take a picture of it if that is needed. I can send or dont send as options.

check disk find no errors.

also my restore point now shows up but when restoring it says it didnt complete successfully. . Claims the drive has errors or is corrupt. with an error 0x80070057

message edited by ulaoulao


Report •

#16
June 6, 2019 at 15:57:14
issue escalated. Hardware problem now?

I tried installing a os on another drive and got this

http://www.errorlive.com/error-code...

Swapped out ram
swapped out drive from SSD to platter Sata
Removed all but memory video and ram.


Guessing one my MB or CPU took a dump.

message edited by ulaoulao


Report •

#17
June 6, 2019 at 23:37:19
Could be. Did chkdsk fix anything? Did you run it with the /R switch? Long shot, but could be PSU. If you have a multimeter, you might want to make sure it's outputting the correct voltage when under load.

For reference, that error's fairly generic, but most of it wouldn't apply to the installer. Really, only the NTFS error makes sense:

C:\>err 0x80300024
# as an HRESULT: Severity: FAILURE (1), Facility: 0x30, Code 0x24
# for hex 0x24 / decimal 36 :
  BTH_ERROR_LMP_PDU_NOT_ALLOWED                                 bthdef.h
  NTFS_FILE_SYSTEM                                              bugcodes.h
  EVENT_SCEP_SERVER_SUPPORT                                     ceplog.mc
# SCEP Add-on cannot return the HTTP response.
# ServerSupportFunction failed (%2).  %3  Please find support
# information at <a href="http://%1/certsrv/mscep/mscephlp.htm." target="_blank" rel="nofollow">http://%1/certsrv/mscep/mscephlp.htm.</a>
  MSG_BAD_AUTHORITY_NAME                                        certlog.mc
# Certificate Services did not start: Could not convert the
# Unicode authority name to look up the Certification
# Authority certificate for %1.  %2.
  CR_DEVICE_NOT_THERE                                           cfgmgr32.h
  LLC_STATUS_UNAUTHORIZED_MAC                                   dlcapi.h
  KRB_AP_ERR_BADMATCH                                           kerberr.h
# Ticket and authenticator don't match
  POLICY_ERRV_GLOBAL_UNAUTH_USER_SUM_FLOW_RATE                  lpmapi.h
  MAPI_DIAG_MAIL_RECIPIENT_DECEASED                             mapidefs.h
  NRC_CANOCCR                                                   nb30.h
# /* command completed while cancel occurring   */
  NMERR_INVALID_PARSER_DLL                                      netmon.h
  OLE_ERROR_COMM,                                               ole.h
# Failed to communicate with server       */
  MSG_TIME_SOURCE_NONE                                          w32timemsg.mc
# The time service has not synchronized the system time for
# %1 seconds
# because none of the time service providers provided a
# usable time
# stamp. The time service is no longer synchronized and
# cannot provide
# the time to other clients or update the system clock.
# Monitor the
# system events displayed in the Event  Viewer to make sure
# that a more
# serious problem does not exist.
  ERROR_SHARING_BUFFER_EXCEEDED                                 winerror.h
# Too many files opened for sharing.
  LDAP_ALIAS_DEREF_PROBLEM                                      winldap.h
# 15 matches found for "0x80300024"

How To Ask Questions The Smart Way

message edited by Razor2.3


Report •

#18
June 7, 2019 at 04:43:27
yes /r

psu huh? Well that is a higher possibility as the power brownout occurred before this issue. I have a multi meter but a psu swap is easier at this moment.


Report •

#19
June 7, 2019 at 16:20:25
Got all brand new parts and my drive has the same issue


Installing windows gave me the same error but I was able to figure out by removing my other sata drives it installs windows ok

So my new OS is up and I'm looking for any suggestions on how to revitalize my old os. I do have 2 restore points on it but I'm not sure how to restore on a donor OS.

message edited by ulaoulao


Report •

#20
June 8, 2019 at 12:22:42
yay further!

So I backed up my system32/drive folder and put the fresh driver in its place, then copied all driver over that didnt already exist. No more error and we almost boot but I got a BSOD, thinking this will be easier to fix once I remember how to find what BSOD it was... Log file or something?

edit: looks to be a 7b

message edited by ulaoulao


Report •

#21
June 9, 2019 at 15:42:49
Your BSOD screen should show several numbers which could help diagnosis. The first set of numbers is the most important. Sometimes a file can be mentioned which might also be helpful.

Always pop back and let us know the outcome - thanks

message edited by Derek


Report •

#22
June 9, 2019 at 16:22:20
Bug Check 0x7B: INACCESSIBLE_BOOT_DEVICE

You didn't happen to overwrite anything when copying over the other system's drivers directory, did you?

How To Ask Questions The Smart Way


Report •

#23
June 10, 2019 at 07:07:52
I have the other numbers, ill add those tonight. The BS appears before the login page is about to come up, I do not think its a boot issue if it got that far.

Report •

Ask Question