mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 04:37:19 +02:00
#2583 partions at 1024KiB & remove -a optimal
This commit is contained in:
@@ -595,7 +595,7 @@ if [ "$1" = "format" ]; then
|
|||||||
if [ $ext4IsPartition -eq 0 ]; then
|
if [ $ext4IsPartition -eq 0 ]; then
|
||||||
# write new EXT4 partition
|
# write new EXT4 partition
|
||||||
>&2 echo "# Creating the one big 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
|
sleep 6
|
||||||
sync
|
sync
|
||||||
# loop until the partition gets available
|
# loop until the partition gets available
|
||||||
@@ -667,7 +667,7 @@ if [ "$1" = "format" ]; then
|
|||||||
sudo mkdir -p /tmp/btrfs 1>/dev/null
|
sudo mkdir -p /tmp/btrfs 1>/dev/null
|
||||||
|
|
||||||
>&2 echo "# Creating BLITZDATA (${hdd})"
|
>&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
|
sync
|
||||||
sleep 6
|
sleep 6
|
||||||
win=$(lsblk -o NAME | grep -c ${hdd}1)
|
win=$(lsblk -o NAME | grep -c ${hdd}1)
|
||||||
@@ -708,7 +708,7 @@ if [ "$1" = "format" ]; then
|
|||||||
cd && sudo umount /tmp/btrfs
|
cd && sudo umount /tmp/btrfs
|
||||||
|
|
||||||
>&2 echo "# Creating BLITZSTORAGE"
|
>&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
|
sync
|
||||||
sleep 6
|
sleep 6
|
||||||
win=$(lsblk -o NAME | grep -c ${hdd}2)
|
win=$(lsblk -o NAME | grep -c ${hdd}2)
|
||||||
@@ -747,7 +747,7 @@ if [ "$1" = "format" ]; then
|
|||||||
cd && sudo umount /tmp/btrfs
|
cd && sudo umount /tmp/btrfs
|
||||||
|
|
||||||
>&2 echo "# Creating the FAT32 partition"
|
>&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
|
sync && sleep 3
|
||||||
win=$(lsblk -o NAME | grep -c ${hdd}3)
|
win=$(lsblk -o NAME | grep -c ${hdd}3)
|
||||||
if [ ${win} -eq 0 ]; then
|
if [ ${win} -eq 0 ]; then
|
||||||
|
Reference in New Issue
Block a user