Skip to content

Commit

Permalink
Add growpart & resize2fs commands to the SD card-flashing script to e…
Browse files Browse the repository at this point in the history
…xpand the partition to use up the whole SD card
  • Loading branch information
civerachb-cpr committed Oct 4, 2024
1 parent bed7558 commit 10aa4ee
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/sd_flash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,9 @@ do
done

sudo dcfldd if=$1 sizeprobe=if bs=1M$of

for device in $device_names
do
sudo growpart /dev/$device 2
sudo resize2fs /dev/${device}p2
done

0 comments on commit 10aa4ee

Please sign in to comment.