sudo sgdisk -Z -n 0:0:0 /dev/sdb
Creating new GPT entries in memory.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
The operation has completed successfully.
The -Z
flag zaps any existing MBR and GPT partition tables into oblivion.
Then, the -n
flag creates a new partition given the partition number, starting sector, and ending sector separated by colons.
Zeros used here represent default values.
The first zero sets the partition number to the next available number, which is one since this is the first partition on the flash drive.
The next two zeros designate the starting sector of the largest block and the last sector of that same block, creating a single partition which effectively takes up the entirety of the flash drive.
|
The program deceptively prints out what it does in the wrong order.
Just know that it does indeed wipe the existing MBR and GPT partitions before creating the new one.
|