rlev
Posts: 54
Joined: Sat Dec 15, 2018 2:20 pm

eMMC Backup

Sun Jan 19, 2020 3:17 am

How to backup a Compute Module 3 Plus eMMC to a .img file in an external USB stick to be reuse in other CM3 modules for production?

Is this possible?

Thanks

rlev
Posts: 54
Joined: Sat Dec 15, 2018 2:20 pm

Re: eMMC Backup

Sat Jan 25, 2020 2:39 am

Anyone?

Thanks

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2588
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: eMMC Backup

Sat Jan 25, 2020 11:22 am

Use dd? Something like:

Code: Select all

$ sudo dd if=/dev/whatever of=backup.img bs=128k

rlev
Posts: 54
Joined: Sat Dec 15, 2018 2:20 pm

Re: eMMC Backup

Mon Jan 27, 2020 1:46 pm

Thanks PhilE

Will try that.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2588
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: eMMC Backup

Mon Jan 27, 2020 2:11 pm

The "<whatever>" is likely to be "/dev/mmblk0" for the whole EMMC.

wariswala
Posts: 1
Joined: Fri Feb 14, 2020 6:30 am

Re: eMMC Backup

Fri Feb 14, 2020 11:39 am

rlev wrote:
Sun Jan 19, 2020 3:17 am
How to backup a Compute Module 3 Plus eMMC to a .img file in an external USB stick to be reuse in other CM3 modules for production?

Is this possible?

Thanks
There are a few ways of making a backup of your EMMC/SD card. The simplest to implement is to make a 1:1 binary copy of your data to an image file. For this task you can use a tool such as dd or Win32diskImager. Note that all the commands that follow expect to have the variable $backupDir replaced by the path to your desired backup directory (which can't be on the same partition you're trying to backup for obvious reasons).
CODE: SELECT ALL

$ sudo dd if=/dev/mmcblk0 of=$backupDir/backup.img bs=1M

Return to “Compute Module”