Backup the EMMC
#1
hi all
I'm wondering if there is some way to backup the internal 64gb emmc to an sdcard
Raspberry pie uses a little app called SD card copier it would be nice if there is something like this for the pinebook pro
its very useful if we f*ck up the system just to restore it from the sd card would be amazing
and time consuming just copy back everything with all settings and stuff
hopefully somebody will come up with something
#2
The command "dd" can do that.
Code:
dd if=(input device) of=(output device)
#3
of can be a file which gives
dd if=(input device) of=save.img
so you can back up to any drive.
The image will be the size of the eemc
#4
(01-19-2020, 08:56 AM)agD0i7rY Wrote: of can be a file which gives
dd if=(input device) of=save.img
so you can back up to any drive.
The image will be the size of the eemc

something like this
dd if=/dev/mmcblk1 of=save.img  status=progress ?

save.img will be stored on the emmc which is stupid becouse it can't sizewise..
mmcblk1 should be the internal emmc
of= how ti find the path to the sdcard ?
#5
Err, you could cd to where you want the backup to be stored
And,, viz size, why would you not pipe it thru gzip?
cd wherever; dd if=/dev/mmcblk1|gzip - > backup{date}
and restore,,, zcat backup |dd of=/dev/mmcblk1 bs=1M
#6
The running system creates files on the fly such as /dev. A backup should not back up such files.

It's better to create the backup from a system booted off micro SD card. From there you can use dd or dd | gzip the emmc card and store it on an external usb drive or scp it over the network.

Before you create the backup, it's advised to first create and then delete a huge file on the emmc card consisting of zeros (dd if=/dev/zero of=zeros) so that gzip can nicely compress the dd'ed image.
#7
thanks to everyone it would be nice if somebody made a tutorial for that (so other new users like me benefit from it)
#8
Yes, a tutorial would be nice.

Using "dd" is less than ideal for backups. Meaning if you backup your 64GB eMMC and decide to restore it to a SD card, the card MUST be at least 64GB. And in some cases that I have experienced with SATA DOMs, you may have to go up 1 size. (Imagine trying to restore 64GBs to a 63.999GB SD card that calls it's self 64GB.)

I tend to use more advanced, and flexible methods of backup, (Rsync, EXT4 dump, etc...). But, those tend to be more complex that the simple example of "dd".
--
Arwen Evenstar
Princess of Rivendale
#9
(01-19-2020, 04:26 PM)Arwen Wrote: Yes, a tutorial would be nice.

Using "dd" is less than ideal for backups. Meaning if you backup your 64GB eMMC and decide to restore it to a SD card, the card MUST be at least 64GB. And in some cases that I have experienced with SATA DOMs, you may have to go up 1 size. (Imagine trying to restore 64GBs to a 63.999GB SD card that calls it's self 64GB.)

I tend to use more advanced, and flexible methods of backup, (Rsync, EXT4 dump, etc...). But, those tend to be more complex that the simple example of "dd".

On my windows PC's I use a program called Macrium Reflect - it takes shadow copies of a hard drive, only saving "active sectors" and applies some compression before saving to an external hard drive. The file it saves is later accessible for individual file retrieval or can rebuild a complete new drive from the saved image.

Is there anything vaguely like that in "ARM" land?

I have a 128GB eMMC in my Pinebook Pro would that otherwise need a 256GB external device to save it to?
#10
yep dd take me around 4 hours to make a backup


Possibly Related Threads…
Thread Author Replies Views Last Post
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 42 59,123 11-20-2023, 06:22 PM
Last Post: wdt
  I'm booting from NVME but I want to switch back to eMMC acruhl 4 1,384 04-23-2023, 06:58 AM
Last Post: acruhl
  Doesn’t power on after flashing emmc badguru 3 1,138 02-25-2023, 09:00 PM
Last Post: badguru
  eMMC problem with Tow-Boot/u-boot on SPI repa 3 1,615 02-21-2023, 01:49 AM
Last Post: repa
  Partial boot after installing Manjaro on emmc regivanx 11 2,961 02-06-2023, 09:11 AM
Last Post: wdt
  Unable to Boot anything (emmc or SDcard) line72 5 1,901 01-17-2023, 12:07 PM
Last Post: nfms
  What OS have you recently flashed onto PBP eMMC? jcun4128 6 2,246 11-26-2022, 09:39 AM
Last Post: KC9UDX
  Unable to boot from emmc after flashing it rfm83 3 1,682 11-08-2022, 10:59 PM
Last Post: rfm83
  Pinebook picky about which EMMC will boot flatulent_piney 8 2,885 11-05-2022, 06:03 PM
Last Post: ajtravis
  After Flashing eMMC, Will Not Boot Mossbot 5 2,229 09-28-2022, 06:22 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)