From 7a4f700f0f714b2f0713c3142c12721105c66833 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Thu, 30 Apr 2020 00:20:38 +0200 Subject: [PATCH] Adapted block sizeand added hint --- sd_setup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sd_setup.sh b/sd_setup.sh index 235fbe3..c5c28d7 100644 --- a/sd_setup.sh +++ b/sd_setup.sh @@ -196,7 +196,7 @@ case "$os" in echo "" #and then press ENTER twice to accept the default first and last sector. echo "" 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..." mkfs.vfat "$boot_partition_path" || error "Format boot is not possible." @@ -215,13 +215,13 @@ case "$os" in ;; "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 mount_partitions; ;; "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 mount_partitions;