Code: shrink minimum=1000 What they're doing is first create a System partition (extended to end of disk), then shrink it to allow Recovery to exist in the unassigned space.
If your time allows, and sorry if it is not inappropriate to ask, is it possible to tell me about each line? I am still learning, and this will help me a lot. I do understand few of them: Spoiler Code: 01. DiskPart................................................................ [Start DiskPart tool] 02. select disk 0...........................................................[Select the 1st disk in the previous result] 03. clean......................................................................[Format it] 04. convert gpt.............................................................[convert it to GPT] 05. create partition efi size=260...................................[create the 1st partition in the drive using the EFI, for boot] 06. format quick fs=fat32 label="System" ....................... ????? 07. assign letter="S" ....................................................[assign a drive letter for the previous step] 08. create partition msr size=16...................................????? 09. create partition primary...........................................??? this mean to set a partition as a primary, but which one? I do not know 10. shrink minimum=500..............................................[you mean disk 0 will be shrinked by 500? 11. format quick fs=ntfs label="Windows"....................[no idea?????] 12. assign letter="W"....................................................[ seems to assign a letter W to a drive]. 13. create partition primary...........................................[which one!? I mean set which one?] 14. format quick fs=ntfs label="Recovery"....................[seems related to the recovery partition, but not sure]. 15. assign letter="R".....................................................[ no idea???? but maybe assign a letter to the recovery partition?] 16. set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"......................????? 17. gpt attributes=0x8000000000000001.............................................????? 18. remove ...........................................................................................????? 19. list volume..............................................................[list all partitions]. 20. exit 21. exit
It's better to move the diskpart commands to a separate commands file. commands.txt Code: select disk 0 clean convert gpt create partition efi size=260 format quick fs=fat32 label="System" assign letter="S" create partition msr size=16 create partition primary shrink minimum=500 format quick fs=ntfs label="Windows" assign letter="W" create partition primary format quick fs=ntfs label="Recovery" assign letter="R" set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" gpt attributes=0x8000000000000001 exit Code: diskpart /s commands.txt select disk 0 # Select disk clean # Wipe partition data (but doesn't erase disk), by default the disk is MBR style convert gpt # Force to GPT style create partition efi size=260 # Make EFI partition type format quick fs=fat32 label="System" # Quick format as FAT32, make the volume label "System" assign letter="S" # Drive letter S: create partition msr size=16 # Make MSR partition type, MSR doesn't get a drive letter create partition primary # Make Primary partition type, no size= means extend to end of disk (use all unassigned space) shrink minimum=500 # Return 500 to unassigned space, so Recovery can use leftover storage format quick fs=ntfs label="Windows" # Quick format "Windows" volume as NTFS assign letter="W" # Drive letter W: create partition primary # Make another Primary partition, no size= means extend to end disk (500 remaining from previous shrink) format quick fs=ntfs label="Recovery" # Quick format "Recovery" volume as NTFS assign letter="R" # Drive letter R: set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" # Special attributes for Recovery gpt attributes=0x8000000000000001 # Special attributes for Recovery
Those are really old sample scripts where Microsoft set recovery to 500mb. I saw somewhere else they'd increased it to 650mb. If you install the latest win11 ISO, it's now 768mb. I gave in and have set mine to create a 1024mb partition. Microsoft is meant to be working on an automated fix for this...
The recovery partitions just a useless waste of space. Delete it altogether and enlarge your main partition to recover the wasted space. Then, for emergency purposes, just rely on WinPE media, or (better) install a second OS in a native VHD
Yeah that's fine for us but if we get a call from a friend/family that can't boot into the os but boots into winre, at least then we can get them to perform a pc reset. I've also been including MS DaRT which has been helpful too...
A family member/friend is supposed to have the recovery image or partition, until someone replaces it with something better, so where's the problem?
Couldn't agree anymore, always used "diskpart" to manually partionning windows before install, and of course never created the WinRe one, just the efi, msr and the primary, so KB5034441 installed successfully on several machines.
You're looking in the wrong place the problem reason and none of the suggestions here will fix it. But of course you can continue if you think that's what you have a problem with and this is the correct way to fix it. It is your choice and your decision.
For bitlocker you need to have the separate boot partition, here people are talking about the recovery, it's another thing.
I tried the script but there was an error so I tried manually. I screwed up so my laptop won't boot now. I noticed the OS is now the last partition. Is there an easy fix? I tried most of the repairs from the install disk but none seem to work. I get a couple error codes at different times such as 0xc0000225 and.. **Edit - Hiren's bootCD worked.