[Replicant] I9300 backup of /efs not yielding usable image

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Wed Mar 24 23:11:03 UTC 2021


On Sun, 21 Mar 2021 14:15:08 -0400
Tad <tad at spotco.us> wrote:

> That is a very weird way to backup a partition.
> 
> Please instead try the following:
> 
> $ adb shell
> $ su
> $ dd if=/dev/block/platform/dw_mmc/by-name/EFS of=/sdcard/efs.img
> $ exit
> $ adb pull /sdcard/efs.img
> 
> To restore use Heimdall or Fastboot.
> You can maybe do it running by:
> $ adb push efs.img /sdcard/
> $ adb shell
> $ su
> $ dd if=/sdcard/efs.img of=/dev/block/platform/dw_mmc/by-name/EFS
> $ reboot
> 
> You can also use adb root instead of su if not available.
Thanks, I should really use dd instead. It was in my TODO list but I
never took the time to try it and update the documentation.

I used cat to have a single command to get the block device in the past
but that command turned out to be very problematic. That is probably why
there is still a 'cat' here.

As for the '*' they are used to minimize the number of instructions.

Having the files in addition to the block device is also very useful as
we have 2 different backups done in 2 different ways. It also validates
that people can really access the files when the backup is done.

Denis.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osuosl.org/pipermail/replicant/attachments/20210325/5abd56fa/attachment.asc>


More information about the Replicant mailing list