Skip to content

Instantly share code, notes, and snippets.

@pingud98
Created October 4, 2020 11:56
Show Gist options
  • Select an option

  • Save pingud98/6f413d2c034cdb213b650d305e94def0 to your computer and use it in GitHub Desktop.

Select an option

Save pingud98/6f413d2c034cdb213b650d305e94def0 to your computer and use it in GitHub Desktop.
script to copy 5 cosmid pi sd cards using pinebook pro and multiple card readers
#!/bin/bash
sudo dd bs=4M if=cosmicpi17dist.img of=/dev/sda status=progress
sudo dd bs=4M if=cosmicpi17dist.img of=/dev/sdb status=progress
sudo dd bs=4M if=cosmicpi17dist.img of=/dev/sdc status=progress
sudo dd bs=4M if=cosmicpi17dist.img of=/dev/sdd status=progress
sudo dd bs=4M if=cosmicpi17dist.img of=/dev/sde status=progress
sudo sync
@pingud98
Copy link
Author

pingud98 commented Oct 4, 2020

Turns out that running all the commands in parallel is slower; also couldn't find dcfldd readily available for arm64/arch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment