{"id":39066,"date":"2023-04-17T11:52:57","date_gmt":"2023-04-17T06:22:57","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=39066"},"modified":"2023-04-17T11:57:25","modified_gmt":"2023-04-17T06:27:25","slug":"error-0x80070002-0x20009-windows-setup","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/error-0x80070002-0x20009-windows-setup\/","title":{"rendered":"Error 0x80070002 &#8211; 0x20009 During Windows 10\/11 Setup"},"content":{"rendered":"<p>When you install Windows 10 or 11, the setup may fail with the error 0x80070002-0x20009.<\/p>\n<pre class=\"err\">0x80070002 \u2013 0x20009\r\nThe installation failed in SAFE_OS phase with an error during PREPARE_ROLLBACK operation.<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/setup-error-0x80070002-0x20009-1.png\" alt=\"0x80070002 - 0x20009 error\" width=\"701\" height=\"277\" class=\"alignnone size-full wp-image-39071\" \/><\/p>\n<p>When you run the SetupDiag tool, the\u00a0SetupDiagResults.log may show the following:<!--more--><\/p>\n<pre>Error: SetupDiag reports rollback failure found.\r\nLast Phase = Safe OS\r\nLast Operation = Set SafeOS boot entry as the default boot entry\r\nError = 0x80070002-0x20009\r\nLogEntry: Error SP Operation failed: Set SafeOS boot entry as the default boot entry. Error: 0x80070002[gle=0x000000b7]\r\n<\/pre>\n<p>Setupact.log may contain the following entries:<\/p>\n<pre>Info SP DISKSPACEQUERY: Final disk space needed estimate: 0\r\nInfo SP Executing operation: Set SafeOS boot entry as the default boot entry\r\nInfo SP MEMORYTRACK: Total : 4217761792\r\nInfo SP MEMORYTRACK: Load : 20\r\nInfo SP MEMORYTRACK: Available for op : 3380043776\r\nInfo SP DISKSPACETRACK: Available : 30762819584\r\nInfo SP DISKSPACETRACK: Needed total : 0\r\nInfo SP DISKSPACETRACK: Needed for op : 0\r\nError SP CSetDefaultBootEntry: Failed to set the default boot entry. Error: 0x00000002\r\nInfo SP SetupPlatform: Global progress: 1, Phase progress: 5\r\n<strong>Error SP Operation failed: Set SafeOS boot entry as the default boot entry. Error: 0x80070002[gle=0x000000b7]<\/strong>\r\nError SP Operation execution failed: 9. hr = 0x80070002\r\nError SP ExecuteOperations: Failed execution phase Safe OS. Error: 0x80070002\r\nError SP CSetupPlatformPrivate::Execute: Execution of operations queue failed, abandoning. Error: 0x80070002\r\nInfo Persisting diagnostics data to G:\\$WINDOWS.~BT\\Sources\\Diagnostics\\diagnostics.dat\r\nInfo Diagnostics data saved successfully\r\nInfo SP Execution phase [Safe OS] exiting with HRESULT [0x80070002]\r\n<\/pre>\n<h2>Cause<\/h2>\n<p>These errors occur during partition analysis and validation, and can be caused by the presence of multiple system partitions. For example, if you installed a new system drive but left the previous system drive connected, this can cause a conflict.<\/p>\n<p>The system has a SATA drive and one SSD connected. As the system performance was poor, the user added an SSD (250 GB) and installed Windows on it.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-39069\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/diskpart_list_disk.png\" alt=\"diskpart list disk\" width=\"523\" height=\"260\" \/><\/p>\n<p>When the setup tried to update the BCD, it encountered error 0x80070002 (&#8220;ERROR_FILE_NOT_FOUND&#8221;). The setup process was unable to locate the correct EFI boot partition. The additional EFI partition (one on Disk 0 and another EFI partition on Disk 1) has confused the setup process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-39070\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/04\/diskpart_list_vol.png\" alt=\"diskpart list volume\" width=\"767\" height=\"244\" \/><\/p>\n<p>As you can see from the above screenshot, there are two EFI partitions (FAT32) &#8212; i.e., Volume 4 and Volume 8 on disk 0 and disk 1, respectively.<\/p>\n<h2>Resolution<\/h2>\n<p>To resolve the errors, disconnect or temporarily disable drives that contain the unused system partition. You can reconnect the drive after the upgrade has been completed. Alternatively, you can delete the unused EFI system partition using diskpart or a third-party partition manager.<\/p>\n<p>Another workaround is to enter the UEFI settings, disable the secondary hard drive, and rerun the setup. You can reenable it in the UEFI settings after finishing the setup.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you install Windows 10 or 11, the setup may fail with the error 0x80070002-0x20009. 0x80070002 \u2013 0x20009 The installation failed in SAFE_OS phase with an error during PREPARE_ROLLBACK operation. When you run the SetupDiag tool, the\u00a0SetupDiagResults.log may show the following:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[8,869],"tags":[191,781],"class_list":["post-39066","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","tag-error-messages","tag-windows-setup"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":29438,"url":"https:\/\/www.winhelponline.com\/blog\/dism-error-2-start-servicing-process\/","url_meta":{"origin":39066,"position":0},"title":"DISM Error 2 While Attempting to Start the Servicing Process","author":"Ramesh","date":"October 23, 2022","format":false,"excerpt":"When you run the DISM utility in Windows to clean up the component store or repair Windows system files, error 2 (0x80070002 - ERROR_FILE_NOT_FOUND) may appear: Deployment Image Servicing and Management tool Version: 10.0.22621.1 Error: 2 An error occurred while attempting to start the servicing process for the image located\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"80070002 dism error 2","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/10\/dism-error-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/10\/dism-error-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/10\/dism-error-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":17854,"url":"https:\/\/www.winhelponline.com\/blog\/we-cant-create-a-recovery-drive-on-this-pc-error-windows-10\/","url_meta":{"origin":39066,"position":1},"title":"&#8220;We can&#8217;t create a recovery drive on this PC&#8221; Error","author":"Ramesh","date":"August 12, 2020","format":false,"excerpt":"Windows allows you to create USB recovery media using the RecoveryDrive.exe (\"Create a recovery drive\") utility. When you attempt to create the recovery drive in Windows 10 or 11, the following error appears, and the process stalls: We can't create a recovery drive on this PC Some required files are\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"We can't create a recovery drive on this PC","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/cant-create-recovery-drive-2.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/cant-create-recovery-drive-2.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2020\/08\/cant-create-recovery-drive-2.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":31936,"url":"https:\/\/www.winhelponline.com\/blog\/80070002-failed-determine-source-edition-type\/","url_meta":{"origin":39066,"position":2},"title":"[0x80070002 &#8211; 0x4000B] Failed to determine source edition type!","author":"Ramesh","date":"January 14, 2023","format":false,"excerpt":"When you run Windows Setup to repair or upgrade your Windows 10 or 11 computer, the Setup fails with the following error: We can't tell if your PC is ready to continue installing Windows 10. Try restarting Setup. The setupact.log shows the Installation Type is 'unknown' and the Edition Type\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":74926,"url":"https:\/\/www.winhelponline.com\/blog\/reagentc-exe-operation-failed-2\/","url_meta":{"origin":39066,"position":3},"title":"REAGENTC.EXE: Operation failed: Error 2 or Error 3bc3","author":"Ramesh","date":"April 24, 2024","format":false,"excerpt":"When you attempt to enable Windows RE by running the reagentc \/enable command, the following error may be shown: REAGENTC.EXE: Operation failed: 2 REAGENTC.EXE: An error has occurred. (or) REAGENTC.EXE: Operation failed: 3bc3 or REAGENTC.EXE: Unable to update Boot Configuration Data. The ReAgent.log may record the following error: Info [ReAgentc.exe]\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":63725,"url":"https:\/\/www.winhelponline.com\/blog\/error-0xc1420121-feature-update\/","url_meta":{"origin":39066,"position":4},"title":"Error 0xc1420121 when installing a Feature Update","author":"Ramesh","date":"October 25, 2023","format":false,"excerpt":"When you attempt to install a feature update, the error 0xc1420121 may appear. The setupact.log may show the following entries: Info SP Mounting WIM file C:\\$WINDOWS.~BT\\Sources\\SafeOS\\winre.wim to C:\\$WINDOWS.~BT\\Sources\\SafeOS\\SafeOS.Mount Info SP WIM index 1 Info SP Working directory C:\\$WINDOWS.~BT\\Work Warning SP Failed to get WimMount ImagePath, 0x80070002 [12592] OpenFilterPort:(408) [12592] FltCommVerifyFilterPresent:(502)\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9422,"url":"https:\/\/www.winhelponline.com\/blog\/windows-10-feature-update-error-0xc1900101\/","url_meta":{"origin":39066,"position":5},"title":"Error 0xC1900101 Installing Windows 10 Feature Update","author":"Ramesh","date":"May 20, 2019","format":false,"excerpt":"When you install a Windows 10 feature update (eg., v1809 on a computer running v1803) via Windows Update, the error 0xC1900101 occurs and the installation fails. Error 0xC1900101 is a rollback code that indicates that an incompatible driver is present on the computer. Microsoft stated in its blog post that\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"0xc1900101 windows 10 1809","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/0xc1900101-error.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/39066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=39066"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/39066\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=39066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=39066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=39066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}