yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Arahg:
TWRP Error

Hi mates,

I'm new to this forum. I have a similar problem with TWRP 3.2.1-0.

When I boot into recovery there is this error:

Could not mount /data and unable to find crypto footer.

Failed to mount '/data' (Invalid argument)

Unable to recreate /data/media folder.

Updating partition details...

Failed to mount '/data' (Invalid argument)

...done

Unable to mount storage

Failed to mount '/data' (Invalid argument)

Full SELinux support is present.

Unable to mount /data/media/TWRP/.twrps

MTP Enabled

ROM: LineageOS 15.1-20180226

My partition is not encrypted.

Greetings :)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] azazello22:
Update to latest TWRP
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] abhi031:
Formate your system in twrp
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Srengat7728:
Sorry, The twrp.me isn't accessible anymore

I want to download 3.2.1-1

Anybody have a link ?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] kaesha4:
have you tried backup link at the OP? I think that works
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Srengat7728:
I feel so stupid ?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] drean:
I have TWRP 3.2.1-1, and had Lineage-15.1-0305 nightly and Magisk 16.0 installed. I did a backup of all partitions, then installed the latest Lineage-15.1-0326.

It wasn't working out well for me, so I decided to roll back, and did a restore of all the partitions; but now my phone won't boot.

When I choose 'reboot' after the restore, TWRP asks "Install TWRP App?" and loops there if I choose 'Swipe to install'. If I choose 'Do not install', it just sits at the mi5 logo and doesn't progress (does not ask me for decryption password).

What am I doing wrong, and what should I do next?

(It's been this way for some time now, restores not working - but in the past, I was prepared to do a factory reset/full wipe, so I didn't think much about it...)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mapotn:
hi folks,

just unlocked bootloader, because wanna install twrp and lineage 15

but i cant move on with installing twrp:

in windows after writing commmand adb devices

List of devices attached

8d536575 device

and I can see Android Compostite adb device in windows device manager so All looks fine

But once is phone restarted in fastmode

after writing commmand adb devices

i can see only empty line

therefore no success with flashing twrp image

C:\Users\XXX\Downloads>fastboot flash recovery twrp-3.2.1-1-gemini.img

target reported max download size of 536870912 bytes

sending 'recovery' (23020 KB)...

OKAY [ 0.507s]

writing 'recovery'...

OKAY [ 0.171s]

finished. total time: 0.681s

but actually nothing is done, its like dummy device connected

and I can see in windows device manager android bootloader inteface - which is good

tried kill adb etc. but no luck

USB debugging enabled in dev. options

15 seconds ADB Installer v1.4.3 installed

tried 2 different pcs

tried factory settings of MI5

please do you have idea what else should i check?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] MOVZX:
Try:

fastboot flash recovery twrp-3.2.1-1-gemini.img

THEN

fastboot boot twrp-3.2.1-1-gemini.img
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] luisaosan:
In fastboot mode the right command isn't adb devices, but fastboot devices, try it and your phone will be shown

Have u tried manually entering the recovery (vol up + power) after flashing it?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] mapotn:
Hi Guys, thanks for answers:

sure I tried tried again vol up + power but there was still stock recovery yesterday

so i tried again fastboot flash recovery twrp-3.2.1-1-gemini.img

THEN

fastboot boot twrp-3.2.1-1-gemini.img

and tadaa, twrp loaded finaly

not sure why but it is working finaly, also with vol up + power

thanks guys
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Jgruar:
Are there some uncompatibilities with making a backup with vendor partition on a 7.1 rom? None of my backups will boot.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] OwnageWOT:
I install latest twrp via adb and run it but when i reboot to device phone freeze at logo Mi
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Reboot to recovery first.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] thox851441:
Hello, I want to flash new ROM, magisk, and custom kernel when updating new ROM. How's the proper order?

I tried this order: new ROM, custom kernel, and then magisk. Everything is activated, especially magisk and custom kernel. Is this true or magisk and custom kernel order can be swapped?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] alveox:
thats not working..

im using mi 5 with miui stable 9.5.2.0..

after i unlock bootloader, im flashing latest twrp-3.2.1-1-gemini.img.. 1st reboot i succesfully enter twrp recovery.. but when i reboot to system, mi5 stuck at mi logo with unlocked info at the bottom..

i tried twrp-3.1.1-0-gemini.img, twrp-3.1.0-1-gemini.img and twrp-3.0.2-3-gemini.img but the problem still exist..

finaly after browsing miui forum, i found ZCX-TWRP_3.0.2-X_Mi5_Gemini-7.0_20161226 ...

flash that twrp to my phone, and all problem is solved..

hope it solved other who got the same problem with me..

so is it a twrp bug or just compatibility issue? if its compatibility issue, then which twrp should i flash for my miui 9.5.2.0 stable mi 5?

i want to try some custom rom such ass RR or other AOSP thing rom.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
If you want to try custom roms you must have latest twrp recovery installed, it's required by most of them. So you'll have to flash that one in order to run custom Oreo based roms.

I had the same problem as yours, I could't boot miui stable 9.5.2.0 with latest twrp, it stuck at mi logo, I'm glad you found out how to fix this because I never managed to.. Thanks! ;) still I haven't found out why or read about another fix than what you suggested.

Anyway I was able to flash and boot the stable EU version of the rom with twrp 3-2.1-1.

There's a new global stable out still based on Android N.... 9.5.3.0... You can try if this one boots with latest twrp.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Hamidreza_4u:
Yes

ZCX.3.0.2 is best recovery for Gemini devices.

A question

Can i restore a full data backup has taken with recovery to a new custom ROM such as cpMIUI for xiaomi.eu
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Do you have the custom ROM installed before you reboot to system? The official MIUI ROM doesn't boot with custom recovery, only stock.

So you have to reboot to recovery from within TWRP to confirm if it's installed permanently, then wipe everything and flash ROM and GApps. Only then will you reboot to system.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] alveox:
ooooo i see.. now i know the reason behind it..

maybe this saturday i will try latest lineage on my mi5..

im just curious, on miui im often got unresponsive touchscreen after my phone go to sleep.. to fix this i need to reboot the device.

i wonder if it software or hardware issue because lots of mi 5 user have this kinda problem.

I want to try lineage os or other custom rom just to see if the problem still exist...

some of my friend recommend me to change the battery to fix my issue, but im still wanna try using custom rom first.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] lilicaull:
anybody has the latest version twrp-3.2.1-1-gemini zip file ?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] :
Download here: https://dl.twrp.me/gemini/twrp-3.2.1-1-gemini.img

Assuming you have an older version TWRP, copy it to phone, boot to TWRP, click install then install image, select twrp-3.2.1-1-gemini.img and write it to Recovery partition and finally reboot to recovery.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
I was mindlessly tapping the screen while TWRP was booting up. When it finally loaded, it immediately took me to the factory reset screen. Are touch events registered while TWRP loads? If so, could you block them? I was relieved I didn't accidentally go through with it, thanks to the swipe confirmation.

Edit: tagging [MENTION=455439]bgcngm[/MENTION], just in case you haven't seen this.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] achickennugget:
No as you said TWRP was loading, it shouldnt register any movements. Let it load in the future instead of tapping!
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] rmrbpt:
Hi,

I'm not familiar with the partitions of the Mi5 so I'm in doubt about what to backup.

If I want to backup ROM and Data (apps and configuration, not Internal storage) which partitions should I backup?

Is Boot, System, Vendor and Data(excl. sotrage) enough?

Are System Imagem and Vendor Image needed too?

EDIT: I think I found it. "Image" only makes .img instead of .tar right? It's the same data saved on a different format so there's no need to select both.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] :
Boot, system, data and vendor if you are on Oreo. No need for vendor if you are on Nougat. Also it's a good idea to backup efs, takes additional 3-4 seconds only.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] szarusek:
trwp launch problem

Hello guys!

I have installed twrp-3.2.1-1-gemini.img on my xiaomi Mi5 and when I want to reboot to trwp the Mirecovery is launching. Could you please help me with it? Best regards!

[IMG="trwp booting"]https://i.imgur.com/GHr8sbv.jpg[/IMG]
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] :
Assuming you are going to change roms, execute these commands to install and boot TWRP on MIUI to change rom:

fastboot flash recovery twrp-3.2.1-1-gemini.img
fastboot boot twrp-3.2.1-1-gemini.img
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] szarusek:
I love you my friend!

---------- Post added at 10:29 PM ---------- Previous post was at 10:09 PM ----------

ehhh, second problem... I am trying to install	lineage-15.1-20180625-nightly-gemini on my global V8.5.3.0.NAAMIED but I've got an error... Maybe you will be able to help me one more time...

[IMG="error 7"]https://i.imgur.com/i5nrr8v.jpg[/IMG]
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Phil_Smith:
As you now have latest twrp installed, error 7 can only mean you don't meet the minimum firmware requirements.

Update firmware to 8.5.10 or higher.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] szarusek:
Thanks for answer!

Can you tell me where I can find some newest versions that I have? German community are hosting only lower :(
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] aittamattia:
Check here ;)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
A new official release is out (version 3.2.2-0).
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
A new official release is out (version 3.2.2-0). The changelog in the first post was updated.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] drpraveen:
Do we have to wipe vendor partition to in case of changing rom?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] timeo78:
Nope, just follow the LOS instructions step by step for the ROM of your choice:

https://wiki.lineageos.org/devices/gemini/install
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] booci:
TWRP 3.2.3-0 Released
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hans william:
Great I will download right away

Thank
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] simplicio11:
Doesn't work. Tested on today's build :(
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
Tested with the recently released TWRP recovery?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] simplicio11:
Yes :(
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] sa_ma:
works great here , maybe you could try to flash it one more time
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] francyesco:
What's the 3.2.3-0 changelog?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
https://twrp.me/site/update/2018/08/06/twrp-3.2.3-0-released.html

Updated in the first post anyway.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
I can't find a way to navigate to that page from within the TWRP website. Is it only accessible if you know it exists already?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] eriol1:
It's the first link under news. Rather hard to miss :silly:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Damn it. I just kept looking at the drop down menu to find the home page and didn't even think to click on the site logo. Rookie mistake. Thanks.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4ronie4:
Lineage OTA's doesn't work for me too. I have reported on github. TWRP 3.2.2 and 3.2.3

https://github.com/TeamWin/Team-Win-Recovery-Project/issues/1273
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] francyesco:
LOS OTAs work great for me (without asking for decrypt) but i will lose magisk after each OTA that was not happening with TWRP 3.2.1
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4ronie4:
I don't understand you. How can OTA work for you without asking for decrypt? OTA zips are saved on /data partition.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] francyesco:
I don't know the technique behind but i think that when the OS start the reboot request for an OTA it will pass also the decryption key or something like this to TWRP.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4ronie4:
Does the TWRP log say anything about decrypted /data?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] francyesco:
don't remember, i remember just a red line that say something about storage, but it will just start installing without asking for decrypt than reboots on end totally automatically (just what is happening with an official OTA)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4ronie4:
Have you formated data partition with F2FS?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] francyesco:
no i'm on ext4.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] 4ronie4:
I think the problem is with F2FS partitions like mine.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] rmrbpt:
MIUI OTA updates never seem to work when downloading only the delta update.

It goes to downloaded_rom. The phone automically boots to TWRP homescreen but does nothing and manuelly trying to flash that file ends with "File corrupted error".

At the second try MIUI downoads the entire rom (1.4GB). Then it boots automatically to TWRP, flashes the new version and reboots to system.

Is it how it is intended to work?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Ashik640:
twrp 3.2.3-0 unable to replace miui stock recovery!

Tried several times. twrp 3.2.3-0 boot perfectly but after rebooting it again shows stock recovery.:rolleyes::confused::(
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bagasaditya25:
got this error trying to install TWRP 3.2.3 after clean install of MIUI developer ROM via MiFlash,

target reported max download size of 536870912 bytes
sending 'recovey' (23032 KB)...
OKAY [ 0.535s]
writing 'recovey'...
FAILED (remote: partition table doesn't exist)
finished. total time: 0.559s

there is no error when i try to install TWRP 3.2.2. any solution?

edit: fixed by flashing another version of MIUI dev ROM
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] ht54:
Unable to restore data partition

Did anyone face issue when backing up data partition? I tried using adb and type "adb backup --twrp", the gui didn't appear, TWRP starts to backup. After the backup is complete, I am able to find a file to restore by pressing restore button, but at the partition selection page I do not see any partition.

Backing up data with TWRP alone has the same outcome. I am able to select data partition and backup, but I am not able to restore the data partition.

Using this tool also gives the same outcome.

TL;DR I am able to backup data partition but I am unable to restore it.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] IgorEisberg:
Hey guys. Is it possible to get an official TWRP 3.3.0 for Mi 5?

I'm a Xiaomi.eu staff and we still got plenty of Mi 5 users ;)
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] chandonmiaxda:
Twrp 3.3 is not available for mi5 now
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Does 3.2.3-0 have any trouble with encrypted partitions made on Pie, or can it work with its FDE?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
It worked fine last time I tried.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] vikashhero:
Thank you, Bruno - I'll hop on over to LOS 16 tonight.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] booci:
3.3.1-0 released for gemini
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] :
Looks like something is wrong with naming in 3.3.1-0
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
Hi, I've just got a Xiami Mi 5 and wanted to install TWRP. Is the latest 3.3.1 version ok or should I use some older version?
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Gun_:
I've used 3.3.1 to install LOS16 and everything went fine
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
:good:

Can I ask you how did you install TWRP and if it stays there?

I unlocked my phone, enabled USB debugging, downloaded twrp-3.3.1-0-gemini.img and renamed it to recovery.img then I did:

adb reboot bootloader

fastboot flash recovery recovery.img
fastboot boot recovery.img

It did launch TWRP :victory: I swiped to allow changes and then I just rebooted to system (will install LineageOS only when I feel confident with the process :o ).

Then, I did:

adb reboot recovery

At it went to the Mi Recovery, not TWRP :( How does one make TWRP to be the permanent recovery :confused:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
This is what I do.

1. fastboot boot twrp.img

2. Since MTP is enabled in TWRP, send this same img file to the phone.

3. From within TWRP, flash TWRP.

4. Reboot to recovery. It should boot into TWRP.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
Thanks, I was not flashing from TWRP... But it did not work as well :(

To resume all I did:

I unlocked my phone, enabled USB debugging, downloaded twrp-3.3.1-0-gemini.img and renamed it to recovery.img then I did:

adb reboot bootloader

Phone reboots and goes into bootloader

fastboot flash recovery recovery.img
fastboot boot recovery.img

Phone reboots and goes into TWRP recovery. I copy the recovery.img to the phone and do:

* Install, Install Image, select the recovery.img, select recovery partiton and swipe to flash

It says it flashed sucessfully

* Reboot system (do not install app)

Phone reboots to system normally

adb reboot recovery

It goes into Mi Recovery instead of TWRP :crying:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] topo01:
I think i just followed this from here

https://twrp.me/xiaomi/xiaomimi5.html

See the note about stock recovery being replaced.

adb reboot bootloader

Rename the image to twrp.img and type:

fastboot flash recovery twrp.img

fastboot reboot

Note many devices will replace your custom recovery automatically during first boot. To prevent this, ...
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Read carefully. You didn't follow step number 4.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
:confused:

And I did it..

---------- Post added at 10:14 PM ---------- Previous post was at 09:49 PM ----------

From what I understand, it should be automatic, just enter TWRP and should be fine... I did reboot to recovery in TWRP and it lauched it again... So, I though I finally did it. But, reboot to system and went to recovery again, back to Mi Recovery :( :confused:

At least now I know the key combo (power+up then release power and keep pressing up until recovery loads).
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
Step number 4 from my post, not OP. :laugh:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
It did... Then I did Reboot -> Shutdown... Turn it on with the key combo, and it got into TWRP again :victory:

So, I reboot into system and, did

adb reboot recovery

Back to MI-Recovery :confused: :( Can't use adb anymore to reboot into recovery?

Will have to try again rebooting into system/shutdown/turn on to recovery... Either loading into system is overwritting it again, or the adb reboot is :rolleyes:

---------- Post added at 05:01 PM ---------- Previous post was at 04:54 PM ----------

TWRP seems to disappear as soon as I boot into system (system being the official ROM). It seems it's the official rom that is replacing TWRP with MI-Recovery... I'd suspect that if I install LineageOS from TWRP it will stop happening... I hope :rolleyes:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] bgcngm:
This is well known, it happens with pretty much all stock ROMs.

You need to flash recovery with fastboot, boot into it and then install whatever you want.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
:o Now I now... Sorry for all the noise.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] andy356:
I need this part clarified. After installing TWRP from within TWRP, you went to TWRP's reboot menu, and tapped "Reboot to recovery", right? Because in my experience, that is the step which causes TWRP to patch the boot image and become the permanent recovery.

If "reboot to recovery" brings you to TWRP instead of stock recovery, then you succeeded. Don't worry. Move on to the next step of removing MIUI and flashing LOS. :good:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] Gun_:
Sorry for the late answer. I installed twrp from a previous twrp already installed, I don’t remember exactly the way I did.

But as others have already said you have to reboot to recovery again just after you had installed twrp, so it become permanent.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] i23098:
Thanks everyone, manage to do it :victory:
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] yahya69:
This morning I took a backup with adb --trwp backup . Tonight, when trying to restore it, it gets as far as restoring the system partition, but when it is about to restore the data partition, it always drops into fastboot. I don't know, is there a debug log for twrp where I can check why it does so? I am right now trying to restore a different backup (of lineageOS) and that seems to work fine (it is restoring the data partition right now). So there seems to be something faulty about the other backup, which is not good because it was the stock firmware, which I wanted to restore, together with all user data.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] jons99:
in the twrp folder inside the backup folder there is a recovery log maybe you can find your whats wrong there
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] yahya69:
I know. It wasn't particularly enlightenening though. It just says that TRWP is writing to a certain block device and then it ends without any error message. I suppose there are ways to make twrp more verbose, but I'll save that for another time.
[Xiaomi Mi 5 ROMs, Kernels, Recoveries, & Other Dev] hrk999:
I am on twrp 3.3.1.0 gemini. After installing the lineage 16 rom, my "persist partition" got corrupted. Is there a way to to flash persist partition using the twrp directly without entering flash boot or without using adb cmd console. I already tried mounting and flashing the persist.img in twrp but the persist folder does not appear while flashing image.