good-arrow’s blog

https://good-arrow.net/

Windows 10/11 の回復パーティションが邪魔でボリューム拡張ができない対策

とりあえずパクリました。

Windows Server 2022 で回復パーティションを前方に作成する at SE の雑記

select disk 0
clean
convert gpt
 
create partition msr size=16
 
create partition primary size=500
format quick fs=ntfs label="Recovery"
assign letter="R"
set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
gpt attributes=0x8000000000000001
 
create partition efi size=100
format quick fs=fat32 label="System"
assign letter="S"
 
create partition primary 
format quick fs=ntfs label="Windows"
assign letter="W"
 
list volume
exit



マイクロソフトのサンプルスクリプト「CreatePartitions-UEFI.txt」など。

UEFI/GPT ベースのハード ドライブ パーティション | Microsoft Learn

サンプルのスクリプト | Microsoft Learn