mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-18 19:50:35 +02:00
mklabel msdos if there is no partition
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user