ungleich-tools/remove-all-partitions-from-all-disks

6 lines
120 B
Text
Raw Permalink Normal View History

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