From f281489a3686119a2605ec0f94d20d628a0ac367 Mon Sep 17 00:00:00 2001 From: openoms Date: Wed, 12 Jun 2019 18:46:09 +0100 Subject: [PATCH] mklabel msdos if there is no partition --- home.admin/00raspiblitz.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/home.admin/00raspiblitz.sh b/home.admin/00raspiblitz.sh index 27d7c46..2ac8435 100755 --- a/home.admin/00raspiblitz.sh +++ b/home.admin/00raspiblitz.sh @@ -20,6 +20,7 @@ if [ ${hddExists} -eq 0 ]; then echo "Press ENTER to create a Partition - or CTRL+C to abort" read key echo "Creating Partition ..." + sudo parted -s /dev/sda mklabel msdos sudo parted -s /dev/sda unit s mkpart primary `sudo parted /dev/sda unit s print free | grep 'Free Space' | tail -n 1` echo "DONE." sleep 3