Adapted block sizeand added hint

This commit is contained in:
Kevin Veen-Birkenbach 2020-04-30 00:20:38 +02:00
parent 2f30c4b67c
commit 7a4f700f0f

View File

@ -196,7 +196,7 @@ case "$os" in
echo "" #and then press ENTER twice to accept the default first and last sector. echo "" #and then press ENTER twice to accept the default first and last sector.
echo "" echo ""
echo "w" #Write the partition table and exit by typing w. echo "w" #Write the partition table and exit by typing w.
)| fdisk "$sd_card_path" || error "Creating partitions failed." )| fdisk "$sd_card_path" || error "Creating partitions failed. Try \"sudo dd if=/dev/zero of=$sd_card_path bs=1M\""
echo "Format boot partition..." echo "Format boot partition..."
mkfs.vfat "$boot_partition_path" || error "Format boot is not possible." mkfs.vfat "$boot_partition_path" || error "Format boot is not possible."
@ -215,13 +215,13 @@ case "$os" in
;; ;;
"moode") "moode")
unzip -p "$image_path" | sudo dd of="$sd_card_path" bs=4M conv=fsync || error "DD to $sd_card_path failed." unzip -p "$image_path" | sudo dd of="$sd_card_path" bs=1M conv=fsync || error "DD to $sd_card_path failed."
sync sync
mount_partitions; mount_partitions;
;; ;;
"retropie") "retropie")
gunzip -c "$image_path" | sudo dd of="$sd_card_path" bs=4M conv=fsync gunzip -c "$image_path" | sudo dd of="$sd_card_path" bs=1M conv=fsync
sync sync
mount_partitions; mount_partitions;