ungleich-tools/remove-all-partitions-from-all-disks
2018-02-18 17:36:30 +01:00

5 lines
120 B
Bash
Executable file

#!/bin/sh
for disk in $(fdisk -l | grep "^Disk /dev" | sed -e 's/Disk //' -e 's/:.*//'); do
sgdisk -Z "$disk"
done