<html><head></head><body><div class="ydp84dab92ayahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
        <div dir="ltr" data-setdir="false">Hi,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I'm really glad this got acknowledged. The efs partition got corrupted a few days ago and was restored just fine with this method<br></div><div><br></div>
        
        </div><div id="yahoo_quoted_8566049530" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Wednesday, 24 March 2021, 23:11:29 GMT, Denis 'GNUtoo' Carikli <gnutoo@cyberdimension.org> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div dir="ltr">On Sun, 21 Mar 2021 14:15:08 -0400<div class="yqt6882155735" id="yqtfd67084"><br clear="none">Tad <<a shape="rect" ymailto="mailto:tad@spotco.us" href="mailto:tad@spotco.us">tad@spotco.us</a>> wrote:<br clear="none"><br clear="none">> That is a very weird way to backup a partition.<br clear="none">> <br clear="none">> Please instead try the following:<br clear="none">> <br clear="none">> $ adb shell<br clear="none">> $ su<br clear="none">> $ dd if=/dev/block/platform/dw_mmc/by-name/EFS of=/sdcard/efs.img<br clear="none">> $ exit<br clear="none">> $ adb pull /sdcard/efs.img<br clear="none">> <br clear="none">> To restore use Heimdall or Fastboot.<br clear="none">> You can maybe do it running by:<br clear="none">> $ adb push efs.img /sdcard/<br clear="none">> $ adb shell<br clear="none">> $ su<br clear="none">> $ dd if=/sdcard/efs.img of=/dev/block/platform/dw_mmc/by-name/EFS<br clear="none">> $ reboot<br clear="none">> <br clear="none">> You can also use adb root instead of su if not available.</div><br clear="none">Thanks, I should really use dd instead. It was in my TODO list but I<br clear="none">never took the time to try it and update the documentation.<br clear="none"><br clear="none">I used cat to have a single command to get the block device in the past<br clear="none">but that command turned out to be very problematic. That is probably why<br clear="none">there is still a 'cat' here.<br clear="none"><br clear="none">As for the '*' they are used to minimize the number of instructions.<br clear="none"><br clear="none">Having the files in addition to the block device is also very useful as<br clear="none">we have 2 different backups done in 2 different ways. It also validates<br clear="none">that people can really access the files when the backup is done.<br clear="none"><br clear="none">Denis.<div class="yqt6882155735" id="yqtfd56500"><br clear="none"></div></div><div class="yqt6882155735" id="yqtfd75232">_______________________________________________<br clear="none">Replicant mailing list<br clear="none"><a shape="rect" ymailto="mailto:Replicant@osuosl.org" href="mailto:Replicant@osuosl.org">Replicant@osuosl.org</a><br clear="none"><a shape="rect" href="https://lists.osuosl.org/mailman/listinfo/replicant" target="_blank">https://lists.osuosl.org/mailman/listinfo/replicant</a><br clear="none"></div></div>
            </div>
        </div></body></html>