Skip to content

Instantly share code, notes, and snippets.

@rjcorwin
Forked from treehouse-su/cloneRPI.sh
Last active August 29, 2015 13:59
Show Gist options
  • Select an option

  • Save rjcorwin/10666212 to your computer and use it in GitHub Desktop.

Select an option

Save rjcorwin/10666212 to your computer and use it in GitHub Desktop.
#copy your ssh key to root@raspberrypi
ssh root@raspberrypi.local 'aptitude install screen iotop'
ssh root@raspberrypi.local 'screen -d -m -S clone'
ssh root@raspberrypi.local 'echo u > /proc/sysrq-trigger'
ssh root@raspberrypi.local 'screen -x clone'
dd if=/dev/mmcblk0 bs=1M of=/dev/sda
#detach with "CRTL-a d"
iotop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment