mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 13:20:56 +02:00
#2583 partions at 1024KiB & remove -a optimal
This commit is contained in:
parent
217c1766d2
commit
8d2eac4bec
@ -595,7 +595,7 @@ if [ "$1" = "format" ]; then
|
||||
if [ $ext4IsPartition -eq 0 ]; then
|
||||
# write new EXT4 partition
|
||||
>&2 echo "# Creating the one big partition"
|
||||
sudo parted /dev/${hdd} mkpart primary ext4 0% 100% 1>&2
|
||||
sudo parted -s /dev/${hdd} mkpart primary ext4 1024KiB 100% 1>&2
|
||||
sleep 6
|
||||
sync
|
||||
# loop until the partition gets available
|
||||
@ -667,7 +667,7 @@ if [ "$1" = "format" ]; then
|
||||
sudo mkdir -p /tmp/btrfs 1>/dev/null
|
||||
|
||||
>&2 echo "# Creating BLITZDATA (${hdd})"
|
||||
sudo parted -s -a optimal -- /dev/${hdd} mkpart primary btrfs 0% 30GiB 1>/dev/null
|
||||
sudo parted -s -- /dev/${hdd} mkpart primary btrfs 1024KiB 30GiB 1>/dev/null
|
||||
sync
|
||||
sleep 6
|
||||
win=$(lsblk -o NAME | grep -c ${hdd}1)
|
||||
@ -708,7 +708,7 @@ if [ "$1" = "format" ]; then
|
||||
cd && sudo umount /tmp/btrfs
|
||||
|
||||
>&2 echo "# Creating BLITZSTORAGE"
|
||||
sudo parted -s -a optimal -- /dev/${hdd} mkpart primary btrfs 30GiB -34GiB 1>/dev/null
|
||||
sudo parted -s -- /dev/${hdd} mkpart primary btrfs 30GiB -34GiB 1>/dev/null
|
||||
sync
|
||||
sleep 6
|
||||
win=$(lsblk -o NAME | grep -c ${hdd}2)
|
||||
@ -747,7 +747,7 @@ if [ "$1" = "format" ]; then
|
||||
cd && sudo umount /tmp/btrfs
|
||||
|
||||
>&2 echo "# Creating the FAT32 partition"
|
||||
sudo parted -s -a optimal -- /dev/${hdd} mkpart primary fat32 -34GiB 100% 1>/dev/null
|
||||
sudo parted -s -- /dev/${hdd} mkpart primary fat32 -34GiB 100% 1>/dev/null
|
||||
sync && sleep 3
|
||||
win=$(lsblk -o NAME | grep -c ${hdd}3)
|
||||
if [ ${win} -eq 0 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user