Browse Source

mklabel msdos if there is no partition

master
openoms 6 years ago
parent
commit
f281489a36
  1. 1
      home.admin/00raspiblitz.sh

1
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

Loading…
Cancel
Save