Skip to content

Instantly share code, notes, and snippets.

@garrydzeng
Last active December 29, 2024 09:09
Show Gist options
  • Save garrydzeng/e04d31b8cf94fe5363a18dc87dd83842 to your computer and use it in GitHub Desktop.
Save garrydzeng/e04d31b8cf94fe5363a18dc87dd83842 to your computer and use it in GitHub Desktop.
; [warnning] select your disk first
clean
convert gpt
create partition efi size=100 offset=20 ; start at LBA-40 for 4K aligned (the first sector that is divisible by 8 (after LBA-33))
format quick fs=fat32
create partition msr size=16 ; required by windows
create partition primary size=81920 ; seperate system to a partiton (make reinstall system earier)
format quick fs=ntfs label=Windows
assign letter=C
create partition primary ; remaining spaces
format quick fs=ntfs
assign letter=D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment