Skip to content

Commit baddbb7

Browse files
committed
create_gpt_parts script including partitions for windows - add mandatory steps for recovery part.
1 parent 182b38c commit baddbb7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

win/create_gpt_parts_win.nu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ sudo parted /dev/nvme0n1 set 5 msftdata on
4242
# Windows Recovery Environment - 768 MiB, ending sector prevents gaps
4343
sudo parted --align optimal /dev/nvme0n1 'mkpart "Windows Recovery Env." 975986MiB 2000390831s'
4444
sudo parted /dev/nvme0n1 set 6 diag on
45+
sudo sgdisk --typecode=6:de94bba4-06d1-4d40-a16a-bfd50179d6ac /dev/nvme0n1
46+
# also need to format it using ntfs (do it from diskpart, so need to install more
47+
# windows stuff on my clean Unix system)
4548

4649
# Data partition - exFAT, uses remaining space with precise ending sector
4750
sudo parted /dev/nvme0n1 mkpart Data 417GiB 1998819327s

0 commit comments

Comments
 (0)