From 353a9e16d88bcb4afdab0fcb9b7a317a02e2803e Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Sun, 18 Feb 2018 17:10:37 +0100 Subject: [PATCH] Add script to remove all partitions --- remove-all-partitions | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 remove-all-partitions diff --git a/remove-all-partitions b/remove-all-partitions new file mode 100644 index 0000000..798d0a6 --- /dev/null +++ b/remove-all-partitions @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ $# -ne 1 ]; then + echo $0 disk-to-be-deleted + exit 1 +fi + +disk=$1 + +sgdisk -Z "$disk"