sudo wipefs -a /dev/sdX
sudo sgdisk -Z /dev/sdX
sudo sgdisk /dev/sdX \
-n1:0:+512M -t1:ef00 \
-n2:0:-32G -t2:8300 \ # 32GB swap
-n3:0:0 -t3:8200
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
| // it's an example file | |
| use windows::{ | |
| core::PCWSTR, | |
| Win32::{ | |
| Foundation::{CloseHandle, HWND, HANDLE}, | |
| UI::Shell::{ | |
| ShellExecuteExW, SHELLEXECUTEINFOW, SEE_MASK_NOASYNC, SEE_MASK_NOCLOSEPROCESS, | |
| }, | |
| System::Threading::GetProcessId, | |
| UI::WindowsAndMessaging::SW_SHOWNORMAL, |