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".

bbb::/boot/uboot/tools/scripts> df -kh
Filesystem      Size  Used Avail Use% Mounted on
*/dev/mmcblk0p2  1.7G  1.1G  520M  68% /*
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            247M  4.0K  247M   1% /dev
tmpfs            50M  284K   50M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            249M     0  249M   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/mmcblk0p1   64M   35M   30M  54% /boot/uboot

Useful if you're testing this and lose track of what you've booted from.




On 17 November 2013 04:11, <[email protected]> wrote:

> The steps below result in a *permission denied* error with accessing the
> device file (/dev/mmcblk1). Does the device file represent the eMMC?
>
>
> On Saturday, 7 September 2013 09:12:56 UTC+12, Dale Schaafsma wrote:
>>
>> 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):
>>
>> boot via SD card
>>
>> dd if=/dev/mmcblk1 bs=1M | ssh user@ip 'dd of=/home/user/backup.img
>> bs=1M'
>>
>> 2 - to restore to a SD card (on Linux laptop...takes about 10-20min)
>>
>> dd if=/home/user/backup.img of=/dev/<sdcard device> bs=1M
>>
>>
>> Also note that you can save just one partition and then it can be mounted
>> on a Linux machine...for example:
>> 1 - on BBB
>>
>> boot via SD card
>>
>> dd if=/dev/mmcblk1p2 bs=1M | ssh user@ip 'dd of=/home/user/backup.img
>> bs=1M'
>>
>> 2 - on Linux machine
>>
>> sudo mount backup.img /mnt
>>
>>
>>
>> -Dale
>>
>>
>> On Wednesday, September 4, 2013 1:41:51 PM UTC-5, Gerald wrote:
>>>
>>> I will add it to my long list of things. After you confirm that it works.
>>>
>>> Gerald
>>>
>>>
>>>
>>> On Wed, Sep 4, 2013 at 1:40 PM, Anewbie <[email protected]> wrote:
>>>
>>>> I had this exact same question as well.  Thanks for posting.
>>>>
>>>> I found this link using Gerald Google search link.  Look like a
>>>> reasonable approach to back up the image:  http://www.berriman.co.uk/
>>>> how-to-backup-bbb-emmc-card/ .
>>>>
>>>> Perhaps this should be added to the BeableBone FAQ?  (
>>>> http://circuitco.com/support/index.php?title=BeagleBone_Black_FAQ )
>>>> also might make sense to add the info here as well
>>>> ( http://circuitco.com/support/index.php?title=Updating_The_Software )
>>>>
>>>> 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")
>>>>
>>>> On Wednesday, September 4, 2013 12:42:01 PM UTC-4, Nik wrote:
>>>>>
>>>>> hey guys!
>>>>>
>>>>> 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!
>>>>>
>>>>> thx
>>>>> nik
>>>>>
>>>>  --
>>>> For more options, visit http://beagleboard.org/discuss
>>>> ---
>>>> You received this message because you are subscribed to the Google
>>>> Groups "BeagleBoard" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>
>>>
>>>  --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to