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
  Pinebook Pro not powering on when eMMC hardware switch is off vgrimaldi 2 270 06-29-2021, 05:19 AM
Last Post: KC9UDX
  U-Boot with direct NVMe boot support for eMMC/SPI Flash pcm720 119 103,891 06-24-2021, 11:59 AM
Last Post: sepp
  UK Pinebook Pro for sale (UK buyers only, 64GB, eMMC reader, NVME add-on) Z0rua 0 334 06-01-2021, 12:51 PM
Last Post: Z0rua
  I am ready to accept that there may be a problem with my emmc. djhnsn 4 712 05-18-2021, 12:25 AM
Last Post: djhnsn
  Wiped EMMC, forgot do write new image, won't recognize EMMC zeno 4 707 05-11-2021, 01:53 PM
Last Post: wdt
  Need Advice for Wiping eMMC on Dead LCD Pinebook Pro calinb 9 1,233 05-10-2021, 12:49 PM
Last Post: calinb
  eMMC not gets detected by initramfs? overlisted 6 1,894 05-09-2021, 09:08 PM
Last Post: djhnsn
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 40 22,101 02-27-2021, 11:01 AM
Last Post: wdt
  Pinebook Pro 128GB EMMC for sale **sold** dgkPBP 7 2,011 01-15-2021, 08:48 AM
Last Post: dgkPBP
  Booting to sdcard stopped working after emmc flash techiedog 3 1,268 12-31-2020, 06:30 PM
Last Post: Anarethos

Forum Jump:


Users browsing this thread: 1 Guest(s)