Created
January 5, 2015 02:37
-
-
Save hak8or/13e8fe213c8b67ed9cf5 to your computer and use it in GitHub Desktop.
Copies an image to the SD card.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Clear the SD card partition first" | |
dd if=/dev/zero of=/dev/sdb1 | |
echo "And now we write it to the SD card." | |
dd if=bootstream-factory.raw of=/dev/sdb1 | |
echo "Sync things up to make sure we are right" | |
sync | |
echo "Dumping the image to check if things went back" | |
mkdir verification_dumps | |
cd verification_dumps | |
rm part1_dump | |
rm part3_dump | |
dd if=/dev/sdb1 of=part1_dump | |
dd if=/dev/sdb3 of=part3_dump | |
sync | |
# echo "=============Contents of BCD=============" | |
hd part3_dump | |
echo "Done, take out the card" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment