Cant unzip recovery file to get files for flashing partitions

Hello…

Its my first post. Im trying to install eOS but cannot even start…

Which tool I can use to extract recovery image to get dtbo.img and Vendor_boot.img?

(Maybe my post should be moved somwhere else)

Thanks.

Hello, maybe try to explain for which device and maybe version. I guess you want T if you are looking for dtbo.img…

This is the links for payload dumper

Device is Mi 11 lite 5G. It’s still Andoroid S.

Thank you I will try to use that payloads

Is there any more simple tool for windows? Im sory Im not advanced usser.

You might try this advice, in post #7 https://xdaforums.com/t/windows-payload-dumper-gui-dump-boot-img-and-other-img-files-from-payload-bin.4442149/post-87041993. This quote is about Payload-Windows-GO the method of my first reply to you.

There is a tool called Payload-Windows-GO. Basically you just hover over the payload file over the EXE file of the tool and it extracts it. No commands or terminal needed. It’s been there for ages.


There is secondly payload-dumper.py

which is supported by the thread I have just mentioned:

All my extracted folders are empty.

I now think and assume your title asks a much more simple different question, than I assumed by

extract recovery image to get dtbo.img and Vendor_boot.img?

My apologies.

Start again !

You are stuck at this point ?

First unzip the /e/OS Recovery file linked in the section marked Downloads for renoir . The following files would show up in the location where you unzipped the contents of the eRecovery zip file
dtbo.img
vendor_boot.img

This is not as easy as I thought. What is available is NOT an “eRecovery zip” but the latest file is recovery-e-1.14-s-20230819321663-dev-renoir.img.

This link describes GUI methods to open an .img file, but untested by me https://www.wikihow.com/Open-an-Img-File-on-PC-or-Mac.

Please let us know how you get on, there are others facing this issue which seems to me new to our documentation.

Im just trying to install first clean instalation of eOS.

I will try again at night. Thank You for help.

If you try clean installation you might not need the dtbo.img. I tried on a spare Moto G7 Plus from v1.14-s via sideload to T. I did install recovery when I bumped from q to s. Others also installed before the workaround was available. Aboht further implications I don’t know.

Hello,
try these steps on windows, as you need.
Download the rom you want to flash, e os rom s zip file.
Unzip it with winrar, 7zip, windows itself. You will get a new folder with payload.bin file inside.
Dowload now this tool, last release https://github.com/libxzr/FastbootEnhance/releases
Unzip it as before, and will get a new folder.
Inside this folder there is the application, FastbootEnhance.exe, open it as administrator.
Open Payload Dumper tab, click on browse and search the rom folder extracted at the beginning, double click on payload.bin file.
Open then partitions tab.
You will find all the partitions inside.
Highlight what you need and click on Extract Image.
You did the job !

Month ago I found a simple tool (on Youtube) to unpack that recovery.img

I just had to drag that image on exe file.

It was not payload windows go because it doesnt work.

Ext4 UnpackerExt2explore and many others doesnt work too.

I wanted to find and show you that tool. Ive spend hours on searching but just cannot.

Im anoyed and tired but will continue.

1 Like

A similar method is shown, but without the drag an drop:

https://www.wikihow.com/Open-an-Img-File-on-PC-or-Mac

You notice how there are several methods to extract the bits you need

  • payload dumper from the main ROM .zip
  • extract from e-recovery img Edit, not possible, not yet published !
  • via fastboot enhance from ROM.zip as @LilBeth

Good luck.

1 Like

Hello,
I suggested to use fastboot enhance tool cause it works on windows, as requested.
Cause it’ s lightweight and doesn’ t need an installation on the pc.
You just run it in its folder.
Moreover, unlike payload dumper, it doesn’ t need additional software, on windows, to run it; see python for payload dumper.
Fastboot enhance, according to me, is a useful tool, coming with some interesting features.
Finally, to unzip archives, rom and fastboot enhance files, you can easily use windows, as pointed.
Give it a chance, you will be pleased.

1 Like

Ok. Ive tryed all of those solutions.

  • extract from e-recovery.img
    It was impossible to mount recovery image or to simply unzip it using winzip, 7zip or windows tool.
    I was trying to do this on 3 different PCs.

  • payload dumper from the main ROM .zip
    That method works but it took me some time to manage it.

  • via fastboot enhance from ROM.zip as @LilBeth
    That was most inuitive and noob friendly method. :slight_smile: Thank You :slight_smile:

Still it’s not possible to unpack recovery.img file -windows says that the file is corupted or just cannot open.

So still I will try to find that method with super easy tool which I found on Youtube and match your documented instalation proces.

Hello,
glad to know you tried and found fastboot enhance useful for your goals.
But, i m asking, where did you find/get recovery.img you reported as corrupted/unable to open ?

When you unpacked payload.bin via fastboot enhance, you clearly got some partitions.
The partition named boot.img is the recovery you will need to flash the rom, extract it.
The others partitions you need, dtbo.img and vendor_boot.img are the same available, just extract them as well.

Take a look please at this wiki, just as reference.
https://wiki.lineageos.org/devices/renoir/install
E os is lineage os based.
Steps explained here to install lineage os 20/t will also work for e os s, based on lineage os 19.1
You will observe, is basically written, that the recovery.img is the boot.img
You don’ t need more than this, no need to unpack other files.
The next e os build, 1.16, will be shipped soon, read mid October.
This new release should fix the missing builds, recoveries and additional files as well.
Now It’ s all in your hands.

I am not a Windows user, but I think that Windows method is described in words as:

There is a tool called Payload-Windows-GO. Basically you just hover over the payload file over the EXE file of the tool and it extracts it.

quoted from the XDA forums link in Post #8 but this is relevant to extraction from the main ROM.zip only.

I think we have to look at this as an inadequacy in documentation as I also was not able to extract the required bits by following my reading of the /e/ install page quoted in Post #10. First I check my download was not corrupted.

$ cat recovery-e-1.14-s-20230819321663-dev-renoir.img.sha256sum
860a1d85e05837447a2969dd5011941edcae45cb9c7cf8d71e296551128ccfcb  recovery-e-1.14-s-20230819321663-dev-renoir.img

$ sha256sum recovery-e-1.14-s-20230819321663-dev-renoir.img
860a1d85e05837447a2969dd5011941edcae45cb9c7cf8d71e296551128ccfcb  recovery-e-1.14-s-20230819321663-dev-renoir.img

$ sudo mount -o loop /home/test/test/recovery-e-1.14-s-20230819321663-dev-renoir.img /media/two
mount: /media/two: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error.

Hello,
agree with you about renoir’ s documentation stuff you pointed.
As we can observe in this page
https://images.ecloud.global/dev/renoir/ the recovery always came as a single img file, not as described and expected, so a zip.
Additional partitions, dtbo and vendor_boot images, are missing.
Unpacking recoveries images won’ t produce missing files.
I think the only way to get them, as of now, is by unzipping rom’ s zip to get payload.bin and then use the mentioned methods to unpack it obtaining required partitions, as i suggested in my previous post.

1 Like

Hi, thanks for the confirmation, I created Documentation instructions to extract dtbo.img and vendor_boot.img from e-recovery.img – #7386

1 Like