exit safe mode windows 11
Windows 11

How to Fix Windows Installation Failed with Error code 0x80070002 0x20009

Solving the Windows Installation Dilemma: Troubleshooting Error Code 0x80070002 0x20009


The error 0x80070002 0x20009 indicates that an issue occurred with the setup. The system is having problems finding the installation files. The associated message reads, “The installation failed in the Safe_OS with an error during PREPARE_ROLLBACK operation.”

This error usually occurs during a Windows upgrade. The possible causes of this error include corrupted or missing system files, incompatible drivers, insufficient disk space, hardware problems, or external storage devices. This article provides the best solution for this problem.

Unplug Any Secondary Hard Drive

Sometimes, the cause of this error could be external storage devices like secondary hard drives and optical drives. During the Windows installation process, these devices may be accessed even if they aren’t essential, which can lead to errors.

We recommend unplugging any secondary and optical hard drives before installing Windows to avoid this. This workaround has proven effective for many users, but it’s important to remember that it’s not a guaranteed solution and may not work for everyone.

Fix 0x80070002 0x20009 by performing an SFC scan

Performing the SFC scan with the built-in System File Checker (SFC) tool can help to keep your Windows system running smoothly. It scans for corrupted files causing issues, like the 0x80070002 0x20009 error. After the scan, reboot before installing the latest Windows version.

To perform an SFC scan, use the following steps:

  1. Press the Windows and S keys together and type cmd in the text field.
  2. Then, choose the Run as administrator option on the right side to start the Command Prompt with administrator privileges.
    error 2001-0123
  3. Once the User Account Control prompts you, select Yes to continue.
    error 2001-0123
  4. When the Command Prompt displays, enter the following command into the prompt and tap the Enter key to start an SFC scan:
    sfc /scannow
    error 2001-0123
  5. Once the scan is complete, copy and paste the command below and press the Enter key to run the command:
    DISM.exe /Online /Cleanup-image /Restorehealth
    error 2001-0123
  6. Finally, it would be best to restart your computer to implement repairs.

Repair 0x80070002 0x20009 by performing system drivers update

Performing a system driver update can assist you in fixing the 0x80070002 0x20009 error by confirming that your computer’s drivers are compatible with the new version of Windows. Windows checks for driver compatibility during installation. Windows will not install new updates if any driver is not compatible.

Here is how to do it:

  1. Hold the Windows and I keys simultaneously to launch the Settings window.
    eax dll
  2. Then, click the Windows Update option next.
  3. Afterward, select Advanced Options.
    eax dll
  4. Then, tap the Optional updates option next.
    eax dll
  5. Once in the options, expand the Driver Updates section, select the appropriate drive, Download, and Install all the available updates.
  6. Lastly, restart your computer.

Perform clean boot to fix 0x80070002 0x20009

Performing a clean boot can help to fish out conflicts. This process temporarily disables all non-essential startup programs and services. This process can help to detect and resolve programs and Windows conflicts, which can sometimes cause installation errors. Here is how to do it:

  1. Hold the Windows and R keys to open the Run dialog box, type msconfig in the Run entry field, and press Enter.
  2. Then, locate the Services tab, click on it, and check the Hide all Microsoft services box.
    windows 11 notepad crashing
  3.  Click on the Disable all button and then click Apply.
    windows 11 notepad crashing
  4. Select the Startup tab and then click Open Task Manager.
    windows 11 notepad crashing
  5. Now right-click on the first enabled app on the Task Manager tab and click Disable.
  6. Finally, follow step 6 to disable all enabled applications one after the other.
  7. After disabling the apps, close Task Manager.
  8. Restart your PC.

Install Windows Update in Safe Mode

Installing Windows Update in Safe Mode can help to fix error 0x80070002 0x20009 by temporarily deactivating any third-party software or services that may be causing the error. This process can also help detect and fix any corrupted system files that may prevent the update from being installed successfully.

To install Windows Update in Safe Mode, follow these steps:

  1. Click the Power icon on the login screen, hold Shift, and select Restart.
    Error code 0x8024000c
  2. Choose Troubleshoot from the menu options.
    Error code 0x8024000c
  3. Select Advanced options.
  4. Afterward, click Advanced options to access other options. Now click Startup Settings.
    Error code 0x8024000c
  5. After that, click Restart.
    Error code 0x8024000c
  6. Press 5 on your keyboard to start Enable Safe Mode with Networking.
    Install error - 0x80070643
  7. Once Windows starts in Safe Mode, open Settings, open Updates & Security, and click Update now.

Run the Windows Update troubleshooter

The Windows Update troubleshooter tool helps to fix problems with Windows Update. It can scan for and fix common problems like missing or corrupted files, incorrect settings, and network connection issues. Use the following steps to complete troubleshooting:

  1. Firstly, open the computer’s Settings by pressing the Windows key + I together.
    error code 0x80240030
  2. Then, click on System on the left pane.
    error code 0x80240030
  3. After that, click on Troubleshoot and select Other troubleshooters.
    error code 0x80240030
  4. When you see the list, select Windows Update from the available options and click the Run button.
    error code 0x80240030
  5. Finally, allow the Windows Update troubleshooter to run for a while to scan and detect the issues in your computer.
  6. Finally, select the appropriate response when prompted.

In conclusion, we explored the essence of checking system requirements and tackling potential software conflicts. Additionally, we examined the benefit of using built-in Windows tools like the Windows Update Troubleshooter and SFC to fix underlying issues.

Following our guide diligently can significantly enhance your opportunities of a successful Windows installation, free from the constraints of error code 0x80070002 0x20009. Don’t hesitate to seek further assistance from Microsoft support or online communities if you experience issues.

Leave a Response

Richard Omachona
Richard is a techie in providing fixes and solutions for computer issues of various kinds. Among his contemporaries, he is a preferred choice. His experiences are vast in Windows operating systems, and several other skills in programming such as Python, Web Frontend designing implementing at industry standards, best practices in HTML, CSS and JavaScript. and basics in Web Backend. He also loves traveling, gaming and music.