- (Setup-dependent) Run
blkdiscard
ornvme format -s [1/2] -r
(followed byblkdiscard
) for the disk. - EFI:
- Size: 100MiB
- Type: EF00 (EFI System Partition) (Type may be optional depending on modern UEFI firmware)
- MSR (Microsoft Reserved):
- Size: 16MiB
- Type: 0C01 (Microsoft Reserved Partition)
- Always discard/zero the MSR after creation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
file=$2 | |
if [ ! -f "$file" ]; then | |
echo "File '$file' not found" | |
exit 1 | |
fi | |
secret="2EB38F7EC41D4B8E1422805BCD5F740BC3B95BE163E39D67579EB344427F7836" |
OlderNewer