Update 2022.09.29 - Summary of Partitions. EFI needs to be larger to hold more firmware updates, and larger updates.
- EFI: 496MB
- MSR: 128MB
- Windows (Primary): Remaining
- Recovery: 984MB
If you download the Import at the end, adjust the EFI to match the new guidance.
Original Post below which explains how to set the Windows Partition to use the Remaining space while setting a fixed size after it.
I recently rebuilt my TS and due to my habit of pasting pictures and results on twitter, it gets scrutinized, mocked, and maybe at times even a bit of praise. The nice thing is, I have hundreds of eyes looking it over and, lets just say, offering helpful suggestions.
In my new TS, I tried to implement a better Partitioning step than the default ConfigMgr provided partition step. Not that anything is wrong with the default step, but it could be better.
Ok, so now I’ve changed that to 260MB. But now I have a Recovery Partition that is 1% of the disk size, this can be bad for two reasons… too small or too big. We had a discussion on Twitter about the size of the recovery partition, and the old recommendation is 499MB, but the new one is 984MB, as WinRE can grow over 500MB now…and something about VSS… bla bla.. ask David Segura.. @SeguraOSD
Ok, so if you have a 100GB drive or larger, then you’re just wasting part of your disk on that recovery partition, so why not force it to be a certain size. Well, how do you do that? Mike to the rescue again..
Mike explains how to do it in this blog post: https://miketerrill.net/2017/07/12/configuration-manager-osd-recovery-partitions-and-mbr2gpt/
However, he explains how to do it for the older MBR (BIOS) formatting, and not the GPT (UEFI) formatting. But then recently he filled in the blanks on Twitter:
*Note, he posted this before our discussion about changing the Recovery Partition size from 499 to 984.
- Partition Disk 0 – UEFI
- Run Command Line: This step creates the diskpart file used to automate the partitioning process. It’s basically copied identically from Mike’s Twitter post, but instead of creating a text file, and using a package, I use a trick I’ve used before to build scripts / files on the fly without requiring content.. echo >>
cmd.exe /c echo select disk 0 >> %temp%\diskpartUEFI.txt && cmd.exe /c echo list partition >> %temp%\diskpartUEFI.txt && cmd.exe /c echo select partition 3 >> %temp%\diskpartUEFI.txt && cmd.exe /c echo shrink desired=986 minimum=986 >> %temp%\diskpartUEFI.txt && cmd.exe /c echo create partition primary >> %temp%\diskpartUEFI.txt && cmd.exe /c echo format quick fs=ntfs label=Recovery >> %temp%\diskpartUEFI.txt && cmd.exe /c echo set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac" >> %temp%\diskpartUEFI.txt && cmd.exe /c echo gpt attributes=0x8000000000000001 >> %temp%\diskpartUEFI.txt && cmd.exe /c echo list partition >> %temp%\diskpartUEFI.txt && cmd.exe /c echo exit >> %temp%\diskpartUEFI.txt
- Run Command Line: This step calls diskpart and applies the txt file you created in the last step.
diskpart.exe /s %temp%\DiskPartUEFI.txt
You’ll see your diskpartUEFI.txt file created in the temp folder, you’ll see the log show that it ran the diskpart process using your diskpartUEFI file. The smsts.log also shows the OS partition being shrunk and the Recovery Partition being created. Then gives you a list of your 4 partitions, with the sizes you specified.
Now you know the optimized way to partition your drive and this is all documented in one place, so you don’t have to search twitter, which is like impossible to find that one tweet you were looking for.
Special Thanks to Mike Terrill, who came up with this entire process, and David Segura for the guidance on the EFI partition size.Format OSD TS Group Steps - Mike Terrill Ed. - DOWNLOAD HERE (2830 downloads)
Posted on GARYTOWN.COM