PINE64
Way to Copy / Clone eMMC for Another Phone - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: Way to Copy / Clone eMMC for Another Phone (/showthread.php?tid=12888)



Way to Copy / Clone eMMC for Another Phone - Codenul - 01-24-2021

Hello,

Fairly new to the whole PinePhone experience (got my first phone about a week ago), but so far been really enjoying messing around with the phone. I have been customizing Mobian (Phosh) and currently have it on eMMC of a 2GB / 16GB Manjaro Pinephone. I went ahead and ordered another phone (3GB / 32GB Mobian version) and I was wondering what would be the easiest way to transfer this setup (if possible) of what I have currently over to the new phone, once it is shipped and delivered?

Make an image? using dd? Transfer over to SDCard? Another way? 


Thanks for any help!


RE: Way to Copy / Clone eMMC for Another Phone - hiimtye - 01-25-2021

dd would be the simplest way, or any other tool to create an iso

with dd it's as simple as
Code:
dd if=/dev/sd<your phone> of=/path/to/my.iso
and then zip it up if you wish to compress all the unused space.


RE: Way to Copy / Clone eMMC for Another Phone - nas - 01-25-2021

Is there any way of doing this without copying gigabytes of mostly empty space?


RE: Way to Copy / Clone eMMC for Another Phone - Maus - 01-25-2021

(01-25-2021, 11:41 AM)nas Wrote: Is there any way of doing this without copying gigabytes of mostly empty space?
Of course there is. You can dd to STDOUT (e.g. by omitting the of= parameter), piping to a compressor utility, then save to disk.


RE: Way to Copy / Clone eMMC for Another Phone - ThrillGates - 01-27-2021

You can use gzip to create a compressed image file.
Pinephone OS Backups (System Images)


RE: Way to Copy / Clone eMMC for Another Phone - wibble - 01-30-2021

(01-25-2021, 11:41 AM)nas Wrote: Is there any way of doing this without copying gigabytes of mostly empty space?
You'd need a tool that's aware of the filesystem, partitioning and possibly the bootloader. Partimage used to do that sort of thing, but doesn't support the more recent filesystems, and may not do the bootloader correctly. I don't know of anything else that does it, so you might have to write something that creates an image file, partitions it, formats the partitions to match, mounts source read-only and target read-write, and uses rsync or similar to transfer content. And the bootloader. I suppose another option would be to use one of the partition-shrinking tools so you can copy a nearly-full partition rather than a mostly empty one.


RE: Way to Copy / Clone eMMC for Another Phone - C0ffeeFreak - 01-30-2021

(01-24-2021, 04:48 PM)Codenul Wrote: Hello,

Fairly new to the whole PinePhone experience (got my first phone about a week ago), but so far been really enjoying messing around with the phone. I have been customizing Mobian (Phosh) and currently have it on eMMC of a 2GB / 16GB Manjaro Pinephone. I went ahead and ordered another phone (3GB / 32GB Mobian version) and I was wondering what would be the easiest way to transfer this setup (if possible) of what I have currently over to the new phone, once it is shipped and delivered?

Make an image? using dd? Transfer over to SDCard? Another way? 


Thanks for any help!

BalenaEtcher is pretty easy to use on a PC and can clone your drive


https://www.balena.io/etcher/