the topic actually says it all… im looking for a way to save the current state of my BBB to its sd card. im just tired of setting things up again every time i mess my BBB up and have to flash the eMMC again…
unfortunately im pretty new to linux as well so i would be really greatful for some tips of you guys!
Gerald, are you the best person to contact regarding this suggestion? (i.e. are you Gerald Coley referenced on the wiki? “If you have any questions or issues with the content on this Wiki, contact Gerald Coley”)
thx a lot for your fast help as always!
actually i did use the standard google search, but only found topics about how to flash the eMMC…
i dont know why but it didnt even come to my mind to use the search function in this forum
keep up your great support guys!
Gerald,
I can confirm that this works…note that I didn’t test by going back to the eMMC but that could be done by copying the backup image to a bootable SD card and dd’ing it to the eMMC.
This is my process:
1 - to backup (on BBB…takes about 10min):
I’ve used Robert Nelsons scripts for this - if you installed using his kernel and the steps outlined here: http://elinux.org/BeagleBoardUbuntu#Flasher then you’ll have /boot/uboot/scripts/tools/beaglebone-black-copy-eMMC-to-microSD.sh.
I ran this to backup my eMMC to SD, then verified the results by creating the file “/boot/uboot/flash-eMMC.txt” on the SD, then rebooting from that SD to reinstall the OS back to the eMMC.
From memory I did have to modify the script to swap source and destination in the script: source="/dev/mmcblk0" on my version. It’s pretty easy to identify which is which as the eMMC is 1.7GB on partition 2 - identify it with “df -kh”.
Nick,
I can’t remember if I tried this with the latest Angstrom version (09.04), but the mmcblk1 should represent the eMMC if you booted off of a SD card (typically the boot device is mmcblk0).
Also to state the obvious, you do need to be root in order to dd from the device.
-Dale
ps. I think that generally opinion on other posts was that this wasn’t probably the preferred way to backup, but I don’t recall what was advised. Definitely backing up a partition being actively used is risky, in other words, ensure the device/disk being backed up is unmounted.