Advertisement
FocusedWolf

Windows 10: Fix update fails with 0x80070643 for KB5034441

Jan 19th, 2024 (edited)
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | Help | 0 0
  1. SOURCE: https://support.microsoft.com/en-us/topic/kb5028997-instructions-to-manually-resize-your-partition-to-install-the-winre-update-400faa27-9343-461c-ada9-24c8229763bf
  2. SOURCE: https://www.bleepingcomputer.com/news/microsoft/windows-10-kb5034441-security-update-fails-with-0x80070643-errors/
  3. SOURCE: https://www.tenforums.com/tutorials/106215-factory-recovery-create-custom-recovery-partition-8.html
  4. Online Post: https://pastebin.com/4z64XKeg
  5.  
  6. NOTE: Its useful to have [Start > Create and format hard disk partitions] open in a side window for a visual representation of what is happening to the drive while issuing commands.
  7.  
  8. Manually resize the Recovery Partition to be 250 MB larger to fix error 0x80070643 for KB5034441:
  9. 1. Open a Command Prompt window (cmd) as admin.
  10.  
  11. 2. Check the WinRE status: $ reagentc /info
  12.  
  13. If the WinRE is installed, there should be a "Windows RE location" with a path to the WinRE directory.
  14. For example: "Windows RE location: [file://%3f/GLOBALROOT/device/harddisk0/partition4/Recovery/WindowsRE]\\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE."
  15. Examining "\\?\GLOBALROOT\device\harddisk0\partition4\Recovery\WindowsRE", the number after "harddisk" and "partition" is the index of the disk and the partition WinRE is on.
  16.  
  17. 3. Disable the WinRE: $ reagentc /disable
  18.  
  19. WARNING: If you fail to do this then you will get "REAGENTC.EXE: The Windows RE image was not found."
  20. later when you try to run $ reagentc /enable.
  21. I don't even know how to fix this, neither do these ppl: https://www.tenforums.com/backup-restore/204223-recreate-recovery-partition-reagentc-exe-operation-failed-2-a.html
  22. I do know that deleting the recovery partition without first disabling it will lead to this problem though.
  23.  
  24. 4. Shrink the OS partition and prepare the disk for a new recovery partition.
  25.  
  26. A. Shrink the OS: $ diskpart
  27.  
  28. B. Run $ list disk
  29.  
  30. C. Select the OS disk: $ sel disk<OS disk index>
  31. This should be the same disk index with the recovery partition.
  32.  
  33. D. Select the WinRE partition: $ sel part<WinRE partition index>
  34.  
  35. -----
  36.  
  37. E. Note the type of the parition before we delete it: detail partition
  38.  
  39. F. Delete the WinRE partition: $ delete partition override
  40.  
  41. -----
  42.  
  43. G. Check the partition under the OS disk and find the OS partition: $ list part
  44. It will be the partition before the recovery partition on a standard Windows install.
  45.  
  46. H. Select the OS partition: $ sel part<OS partition index>
  47.  
  48. I. Shrink the OS partition by 250 MB run $ shrink desired=250 minimum=250
  49.  
  50. -----
  51.  
  52. J. For SSDs you should have unallocated space after the recovery partition for wear leveling.
  53. I like to use 50 GB (51200 MB) but the amount is up to you.
  54. To shrink the OS partition by an additional 50 GB run $ shrink desired=51200 minimum=51200
  55.  
  56. K. Check if the drive is GPT (GUID Partition Table) or MBR (Master Boot Record):
  57. $ list disk <-- If you see '*' in in the "Gpt" column then its GPT, otherwise its MBR.
  58.  
  59. NOTE: The default recovery partition size for Windows 10 is 522 MB.
  60. For Windows 11 its size is 768 MB (+246 MB larger).
  61. Microsoft instructions suggest making a +250 MB larger partition,
  62. so the new recovery partition size will be: 522 MB + 250 MB = 772 MB.
  63.  
  64. NOTE: Microsoft instructions do not specify a size, but we will because it prevents
  65. the new recovery partition from taking up all the unallocated space at the end of the drive,
  66. which we want to keep unallocated for SSD wear leveling reasons.
  67.  
  68. L. Create a new recovery partition:
  69.  
  70. For GPT drives:
  71.  
  72. $ create partition primary id=de94bba4-06d1-4d40-a16a-bfd50179d6ac size=772
  73.  
  74. $ gpt attributes=0x8000000000000001 <-- WARNING: Do not forget to do this.
  75. This changes "Required: No" to "Required: Yes" in [$ detail partition].
  76. If you skip this step then [Start > Create and format hard disk partitions]
  77. will ONLY display the size of the Recovery partition,
  78. and will NOT display "Healthy (Recovery Parititon)".
  79. WARNING: ^-- Do not forget to do this.
  80.  
  81. NOTE: If "Healthy (Recovery Parititon)" isn't shown in Start > Create and format hard disk partitions
  82. then try this to mark the selected partition as a recovery partition:
  83.  
  84. $ detail partition <-- What does the type indicate that is causing this issue?
  85. $ set id=de94bba4-06d1-4d40-a16a-bfd50179d6ac
  86. $ detail partition <-- Should see type: de94bba4-06d1-4d40-a16a-bfd50179d6ac
  87.  
  88. You should now see "Healthy (Recovery Parititon)" in Start > Create and format hard disk partitions.
  89.  
  90. Or
  91.  
  92. For MBR drives:
  93.  
  94. $ create partition primary id=27 size=772
  95.  
  96. NOTE: If "Healthy (Recovery Parititon)" isn't shown in Start > Create and format hard disk partitions
  97. then try this to mark the selected partition as a recovery partition:
  98.  
  99. $ detail partition <-- What does the type indicate that is causing this issue? NOTE: I got "type: 07" every time i tried this on a MBR system for some reason:
  100. 07 = Windows NT NTFS
  101. 17 = Hidden
  102. 27 = OEM Recovery
  103. $ set id=27
  104. $ detail partition <-- Should see type: 27
  105.  
  106. You should now see "Healthy (Recovery Parititon)" in Start > Create and format hard disk partitions.
  107.  
  108. M. Format the recovery partition:
  109.  
  110. $ format fs=ntfs quick <-- TODO: Not sure why M$ instructions added [label="Windows RE tools"] here when the original recovery partition had no label.
  111.  
  112. 5. Exit from diskpart: $ exit
  113.  
  114. 6. Enable WinRE: $ reagentc /enable
  115.  
  116. 7. Confirm WinRE is enabled: $ reagentc /info
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement