Try Last Known Good Configuration from Windows 7’s Advanced Boot Options first, because it can restore the most recent working driver and registry configuration without repeating the System Restore attempts that already fail.
1. Start with Last Known Good Configuration
- Restart the computer.
- Immediately press F8 repeatedly, before the Windows logo appears.
- On Advanced Boot Options, select Last Known Good Configuration (advanced).
- Press Enter and allow Windows to start.
Microsoft’s startup guidance specifically recommends Safe Mode or Last Known Good Configuration for failures occurring during the driver-loading phase.^1^
2. If that fails, enter Safe Mode and roll back the drivers
Return to F8 → Advanced Boot Options, select Safe Mode, and sign in with an administrator account. Safe Mode loads only a limited set of drivers, which can allow Windows to start when an optional driver is preventing normal startup.^2^
If Safe Mode opens:
- Select Start, right-click Computer, and select Manage.
- Open Device Manager.
- For each device whose driver Avast updated:
- Expand its device category.
- Right-click the device and select Properties.
- Open the Driver tab.
- Select Roll Back Driver.
- Restart normally after rolling back the recently changed drivers.
Driver rollback is the supported way to return a recently updated device to its previous driver.^3^
Do not uninstall storage-controller or chipset drivers unless the exact faulty package has been identified; removing a boot-critical driver can leave Windows unbootable.^4^
3. Run CHKDSK offline without manually forcing a dismount
Since Windows is not starting, use the Command Prompt from the Windows 7 repair environment or installation DVD:
- Boot from the Windows 7 installation or repair disc.
- Select Repair your computer → Command Prompt.
- Identify the actual Windows partition:
bcdedit
Under Windows Boot Loader, note the drive shown beside osdevice. Recovery environments frequently assign Windows a letter other than C:.
- Assuming
osdeviceshowsD:, run:
chkdsk D: /f
Microsoft’s WinRE procedure uses BCDEdit to identify the system volume and then runs CHKDSK against that explicit drive letter.^5^
/f requires the target volume to be locked. A forced dismount with /x invalidates open handles, so it is better not to use /x here unless necessary. Running from repair media should normally make the Windows partition available for an offline check.^6^
If CHKDSK reports physical-disk errors or cannot repair the volume, back up important files before proceeding further.
4. Check the offline Windows system files
Using the same Windows drive letter, run:
sfc /scannow /offbootdir=D:\ /offwindir=D:\Windows
Replace D: if BCDEdit showed a different letter. The /offbootdir and /offwindir options direct SFC to the non-running Windows installation.^7^
Restart after CHKDSK and SFC finish.
5. If Windows still will not start
Do not keep retrying the same restore points. Error 0x80070005 means access was denied, but the available information does not establish that Avast Antivirus caused this particular restore failure.
At that stage:
- Back up personal files to an external drive from repair media or another computer.
- If a system-image backup exists, use System Image Recovery.
- Otherwise, reinstall Windows 7 from appropriate installation or manufacturer recovery media. When Startup Repair, System Restore, and command-line repairs all fail, backup followed by a clean installation is the remaining recovery path.^8^
References
- Advanced troubleshooting for Windows startup issues
- Windows startup settings | Microsoft Support
- Update drivers through Device Manager in Windows | Microsoft Support
- DISM Driver Servicing (.inf) Command-Line Options
- Use Windows Recovery Environment (WinRE) to troubleshoot common startup issues
- chkdsk
- sfc
- cannot boot 'Insert system disk in drive...' and bootrec commands don't work - Microsoft Q&A