yashsingh1/xdaforums huggingface dataset:
[Redmi Note 10] nierewa:
I had a few problems.

I had to copy the twrp image to the SD card at the very beginning. With recovery loaded the file could not be copied. Neither to the SD card nor to the internal memory.

When I started the recovery, I was asked for a password for user [0] to unlock the data partition. I canceled because I don't know what the password should be. Maybe the login password?

Then when installing the ramdisk I got the following messages:

Updating partition details...
...Fertig
Volle SELinux-Unterstützung ist vorhanden.
Entpacke Boot...
Sichere Boot...
Entpacke /external_sd/twrp.img...
Packen Boot...
[IMAGE-DATEI WIRD AUFGESPIELT]
Aufzuspielendes Image: '/tmp/repackorig//new-boot.img'
Berechne Wiederherstellungsinformationen...
[IMAGE EINSPIELEN ABGESCHLOSSEN]
E:Error getting bootctrl module.
Partitions-Informationen werden aktualisiert...
...Fertig
sichere Boot...
[IMAGE-DATEI WIRD AUFGESPIELT]
Aufzuspielendes Image: 'tmp/repackorig//new-boot.img'
Berechne Wiederherstellungsinformationen...
[IMAGE EINSPIELEN ABGESCHLOSSEN]
E:Error getting bootctrl module.
Partitions-Informationen werden aktualisiert...
...Fertig

When I boot into recovery now, twrp appears. So it seems to work.

But what does mean the error " E:Error getting bootctrl module" ?

Translated with www.DeepL.com/Translator (free version)
[Redmi Note 10] StaryMuz:
Full TWRP does not exist yet.

Count on something not working.
[Redmi Note 10] inn000:
i have the same error so i skipped the ramdisk part. twrp is still working without that
[Redmi Note 10] nierewa:
Do you think that will ever happen?

Only need backup and restore for now.

Has some one testet it out yet? Especially the restore?
[Redmi Note 10] LinhBT:
What you guys all have to do is being a little patient, RMN10 is a new device, and for it to have Official Custom Recovery will takes time. And I don't know why you're facing such issues but at least until now the Alpha build is working fine for me with all the functions it has.
[Redmi Note 10] nierewa:
Sure, you're right.

Have you successfully restored a backup?

Somewhere I read that would work with Xiaomi only with certain kind of tricks.

I do not dare to try it myself :giggle:
[Redmi Note 10] Zirila:
Short answer: Nope, restoring is not working with TWRP alpha currently.

I installed CrDroid and used it a bit. Made a full backup of all partitions in TWRP (~19GB) (There is like 2x a Super Partition which I guess is the same and TWRP shows it twice, though)

I wiped the phone, factory reset (not formating data).

Then TWRP-restored all partitions back. it restores all partitions (19GB) without any errors.

The phone boots, the ROM logo shows up, but then it gets stuck at "Smartphone gets started" progress bar endlessly.

The backup is useless.

I also tried only restoring Data partition, or Data, Boot and Super only.. but to no avail.

seems like for now, with Android 11, nandroid backups are a big fail and people who rely on the backups without knowing it won't work to restore, will be surprised when the day comes...

guess you need to back up with some apps, but Titanium is not working either so the options are tiny. best way for now might be OandBackupX.. but tell me better ones and way if you know them.
[Redmi Note 10] StaryMuz:
If I wasn't dealing with protecting my identity, then a backup to gapps might be workable. Calls, SMS, people, program settings, app backup ...

But don't count on backing up everything.
[Redmi Note 10] Zirila:
How is updating a Custom ROM working with TWRP alpha?

i really got trouble with it.

TWRP always installes the rom.zip to the inactive a/b slot.

so lets say "a" is the current running custom rom and you got an updated rom.zip for it.

you enter twrp recovery on "a" and flash the rom.zip. twrp installs it to "b".

theoretically after reboot it should switch to "b" and load updated rom. practically I got lot of troubles getting the ROM to run on "b" after that (like TWRP can't mount system partitions and/or data)

but lets assume that works, "b" is now the active slot with updated ROM.

now you get another new update for the rom and load it to the storage.

you enter twrp recovery on slot "b" and flash the newer ROM.zip.

TWRP flashes it to inactive slot "a". I would assume that works just fine and after next reboot the newer ROM just boots from "a",..yeah theoretically.

practically it doesn't even install the new ROM.zip, and throws errors:

Installing zip file '/sdcard/Download/somecustomromupdate.zip'
Unmounting System...
Flashing A/B zip to inactive slot: A
Step 1/2
Error applying update: 7 (ErrorCode::kInstallDeviceOpenError)
Updater process ended with ERROR: 1
(...)
Updating partition details...
Failed to mount '/system_exst' (No such file or directory)
Failed to mount '/product' (No such file or directory)
...done

the only thing that seems to work is slot "a". and to update the ROM it seems to be necessary to manually switch to slot "b" first and THEN initiate the TWRP .zip flash, as it always flashes to the other slot - "a" in that case, where "a" seems to work.

can't we just make twrp only use slot "a", and never use slot "b"? that would make things so much easier as long as there is not fully working a/b support from TWRP.

but back on topic: how do we apply dirty flash updates with a/b slots in the future without wiping and losing all data before? whats the current best practice?
[Redmi Note 10] StaryMuz:
Maybe Mojito is not an A/B system, but a virtual A/B.

I'm not sure of the identification, but confusion could be the cause of the trouble.

Virtual A/B overview | Android Open Source Project

source.android.com
[Redmi Note 10] Zirila:
it's pretty obvious a Virtual A/B environment. Handling OTA updates on these systems is pretty new and complex if not done before. But normal dirty flashes within TWRP needs to be adjusted too. I think all the snapshotted errors, and device not switching a-b slots after flashing I experienced lately can be fixed, but it would require TWRP and probably Custom ROM install .zips to be adjusted to the new virtual a/b system.

unfortunately, that means, there is currently no safe way to upgrade Custom ROMs.. it's pretty much trial and error and it will almost certainly end up in losing data.

while the community still struggles with Android10 and 11 changes, google is already about to release the next hurdles with Android12.. -.-
[Redmi Note 10] Nebrassy:
Backup and restore with encryption, even on a stable recovery, will not work the way you did

First you need to remove any pin/password you have set then create a backup

When you want to restore, restore backups of everything except data, then boot the rom so it sets up encryption, then reboot back to twrp and restore data
[Redmi Note 10] Zirila:
Thanks! I'm gonna try that next time I make a backup with twrp.

And what about the Super partition which is shown twice? one time as "Super" and one time as "Super (system, vendor, etc.)" or similar. Both the same size, about 9 GB.

Should we backup and restore both? I was assuming it is all the same super partition that TWRP just lists as two super partitions. (In the end it makes quite a difference to backup 9 GB or 18 GB+)
[Redmi Note 10] Nebrassy:
It's the same just shown twice, I'll remove one next release
[Redmi Note 10] ddspj:
AFter the first step.My phone reboot to the system and the prompt shows as below.

E:\>platform-tools\fastboot boot TWRP.img
Sending 'boot.img' (131072 KB) OKAY [ 3.013s]
Booting FAILED (Status read failed (Too many links))
fastboot: error: Command failed

I've tried all the usb port on my computer,the results are same.
[Redmi Note 10] Zirila:
I would try to reflash official MIUI version with MiFlash Tool. Make sure it is the correct version for your phone and region before flashing it, check "clean" not "clean and lock". then give it a try after it is flashed clean.
[Redmi Note 10] tit0um:
is this common to all android 11?
[Redmi Note 10] sergey1789:
как на вашем тврп перевести систему в rw
[Redmi Note 10] StaryMuz:
For now TWRP is not fully working.
[Redmi Note 10] Zirila:
I was in need to restore a backup that was made exactly like this. however, I was unable to restore it.

I needed to restore my phone to MIUI firmware rom before and I tried then to restore my custom-rom backup.

in MIUI, pin was disabled, I restored everything except data, but after that I couldn't boot to system (bootloop, then fastboot) and when i fastboot to twrp.img TWRP wasn't even responding anymore (clicking on buttons didn't do anything). at this state nothing worked and the only way was to reflash MIUI with MiFlash tool.

Does it maybe need the same ROM to be installed before so restore works?
[Redmi Note 10] Nebrassy:
Yes...

When you want to restore a backup of a different rom you need to backup apps individually using swift or migrate
[Redmi Note 10] sergey1789:
планируется обновление twrp?
[Redmi Note 10] Zirila:
No, I actually mean, like:

I had CustomROM installed, made a backup from it with TWRP. Then I needed to get back to a clean MIUI flash because CustomROM dirtyflash update failed. Then I wanted to restore my CustomROM backup.

I tried restoring CustomROM backup over MIUI installation, but that failed.

Now, I'm about to install the same CustomROM version before I try to restore it's backup with TWRP.

unfortunately I'm currently unable to install the CustomROM due to a million errors, but I hope to get it installed soon, then I'll try restoring the TWRP backup.
[Redmi Note 10] Zirila:
I've extensively tried to restore my backup and failed many times, but I finally succeeded.

it's like said before, having the same ROM already installed from which you made the backup helps enormously through the errors (f.i. don't restore custom rom on installed MIUI rom, flash custom rom first). remember to only restore all partitions except /data and only flash /data if TWRP can already decrypt internal storage.

installing or dirty flashing anything in the current state is a real mess, there are so many errors with the a/b mechanism, that in 90% of the time, the installation of rom .zips fail. and most of the time the best way is to start from scratch with a clean MIUI flash.

it's a miracle how one is supposed to update custom ROMs in these alpha times, it always ends in troubles and data loss (if not backed up).

next time I'll try to flash the same custom ROM again before I try to upgrade with a dirty flash. hopefully the upgrade then succeeds with an ADB Sideload from the original rom recovery. I think that might work.
[Redmi Note 10] MPK99:
U should never backup super. It's not worth of time & not recommended at all...

Just backup /data & keep it safe somewhere offline.

When you clean flash the same rom, make sure you boot it up to get encryption ready, then return to recovery & restore the backup...

Always works for me...¯\_(ツ)_/¯
[Redmi Note 10] Zirila:
yeah, thats exactly how I did it..(in fact, I used my twrp /data backup on a clean flash of the new rom version) unfortunately, that way, many if not all system settings get reset and you have to adjust them manually again to it's previous state..

nandroid backups used to be all-in-one solutions before, where everything is like before, needless to touch anything more afterwards.. I miss these times..
[Redmi Note 10] [2924057681983]:
Can smbdy help? I have Redmi Note 10. I flashed twrp and rom. And.... I cannot load the rom, system doesnt start.I have a twrp loop. Every time when i choose reboot in system, i am back again in twrp!
[Redmi Note 10] [2924057681983]:
Тоже получил петлю в рекавери?)
[Redmi Note 10] sergey1789:
нет
[Redmi Note 10] Nebrassy:
3.5.2 is up

fixed adb sideload and fastbootd

fixed vibration

further fixes for flashing roms

new installation method, updated OP
[Redmi Note 10] MPK99:
does logical partition flashing usable under fastbootd?
[Redmi Note 10] Apih95:
can wipe system partition ?
[Redmi Note 10] The Wolf Dark:
Anyone can help me with this? Im trying to backup with microSD but always denied.
[Redmi Note 10] Zirila:
can confirm this issue. twrp unable to backup to external sd card (permission denied to create folder on extSD1)
[Redmi Note 10] Leica You:
help . i tried to restore to stock rom . twrp touchscreen not working.
[Redmi Note 10] Zirila:
flash a clean stock rom with MiFlash and fastboot instead of TWRP.

if you want to restore your data, you need to have a backup without lockscreen pin/pattern and restore only /data after flashing stock rom.
[Redmi Note 10] Kodize:
why doesn't use the traditional method "flash recovery recover.img" for install this?
[Redmi Note 10] alonsoj636MW:
because our device doesn't have a recovery partition.... we have the recovery inside boot image
[Redmi Note 10] P|NO:
hello, im having trouble with the twrp, i accidentaly pressed mount system read only, so i cant do anything with the system, how can i get that option back? thanks
[Redmi Note 10] KingTigerM30S:
Recently installed the new build of TWRP and feels more stable. Haven't experienced issues compared to the older build.

Thanks a lot to the Devs, and keep up the good work. 😃
[Redmi Note 10] XanDevoir:
Hello!!! So I've flashed Dot Os rom through TWRP and while flashing it showed me some error...unfortunately I cant really remember those errors but I could boot it successfully...so after booting I did a reboot in custom recovery to backup as I always do and when the backup started it showed me these three errors:

E: failed to mount /tmp/com.android.apex.cts.shim.apex to loop device /devblock/loop0

E: unable to create loop devices to mount apex files

E: unable to load apex images from /system_root/system/apex

and then backup started and successfully finished.

Now...does anyone know what are those error about?

How to fix them?

If I go back to my stock rom using miflash tool then will all be alright?
[Redmi Note 10] Kodize:
Did you use the latest version?
[Redmi Note 10] LaMarMôt:
Hey,

So I've check my twrp.img, connected the phone, it shows when I

fastboot devices

then I

fasboot boot twrp.img

it goes

Sending 'boot.img' (131072 KB)

and... nothing happen... it's been more than 10min...

shall I abort and retry?

I mean I will eventually, as I guess there is probably no risks to brick the phone, but if by any chance anybody's there with better advice ^^

P.S.: I'm on linux

Cheers!
[Redmi Note 10] StaryMuz:
Do you have an unlocked bootloader?
[Redmi Note 10] LaMarMôt:
Yes indeed :( (that was looooooong btw...)

So... patient as I am, I decided to abort (which I couldn't do without force closing the cli...), I sweat a bit when i forced shutdown the phone too... but apparently nothing append at all as it booted to the stock rom (and only stock "recovery" was there)... i retried.... same, same

I gave it a try using wind*s, and it worked... what a shame :(

The

fasboot boot twrp.img

worked, but when I flashed twrp.img from twrp some errors were showing... it finished eventually and i was able to reboot to twrp.

P.S.:

And now i try to sideload a rom but it fail at 47% with the twrp message "to flash additional zips....switch to the updated slot"...

But that's another problem :p I guess I should ask on the rom thread if i can't succeed.

So, yeah, didn't succeed installing twrp from linux, I am really really sad indeed :/ (and I don't understand why it fails)

Cheers!
[Redmi Note 10] YourLimiit:
unable to decrypt fbe device
[Redmi Note 10] StaryMuz:
The sideload error at 47% is known and insignificant. Even with this error, everything is installed correctly. Ignore her.
[Redmi Note 10] GAURAV THAKKAR:
Just remove your device lock, that is the security option [pin, password etc] which is available for the lock screen should be none and then start over, you should be good to go
[Redmi Note 10] Nebrassy:
uploaded new build

fixed more cases of flashing failing

fixed some cases of decryption failing
[Redmi Note 10] ramdhani76:
Thank you Mr. Nebrassy
[Redmi Note 10] rscm:
Hi

I want to know the same... is there a way to wipe system? a command or something? because the wipe menu doesn't have it

Thanks
[Redmi Note 10] alonsoj636MW:
no , don't do it... just format data for clean flash
[Redmi Note 10] rscm:
It worked fine as you said

Thanks for the answer

pd: gracias ql xD
[Redmi Note 10] alonsoj636MW:
i'm glad it worked

pd: de nada ctm 😆
[Redmi Note 10] Apih95:
it kind of tiring need to clean flash always , so an option to wipe only system and preserve internal storage would be good
[Redmi Note 10] MPK99:
Wipe /data. It'll exclude Internal storage.

System will get wiped automatically on an update.
[Redmi Note 10] Apih95:
thanks !
[Redmi Note 10] srtrifat:
It work device miui 12.5.1 (sunny)??
[Redmi Note 10] srtrifat:
This twrp work for miui 12.5.1 (sunny)??
[Redmi Note 10] Abdullah.Csit:
It's not about "system" all what you need is Any Android.

So it's booting on every Android rom.
[Redmi Note 10] StaryMuz:
For the newcomer it will be useful to add that recovery does not work by default as it has always been customary and for flash or backups you need to use specific procedures. Read more here, everything is described.
[Redmi Note 10] Apih95:
latest version can decrypt fbe ?
[Redmi Note 10] Nebrassy:
Official builds have started

Xiaomi Redmi Note 10

Disclaimer:Team Win strives to provide a quality product. However, it is your decision to install our software on your device. Team Win takes no ...

twrp.me
[Redmi Note 10] yop038:
hello, not working on my mobile :/

Sending 'boot.img' (131072 KB) OKAY [ 3.000s]

Booting FAILED (remote: 'Failed to load/authenticate boot image: Not Found')

fastboot: error: Command failed

Any idea ?
[Redmi Note 10] StaryMuz:
Your message is not related to the topic!

For modifications, you must ask the Xiaomi manufacturer to unlock the bootloader.
[Redmi Note 10] yop038:
bootloader was unlocked, i succeded by flashing mobile with first rom version 12.5.1.0 and after modifying xiaomin fastboot image to upgrade to 12.5.4.0 without upgrading recovery.

i use fastboot boot twrp and installed twrp with patch :)
[Redmi Note 10] bobtear1:
To install magisk through twrp, all i need to do is rename the apk to a zip then flash it with twrp right?
[Redmi Note 10] DTFuser:
I experience issue with Twrp 3.6.0_11_0 which prevents me from install any ROM. I can see opening menu and I cannot choose any option. It fells like touchscreen is not working.

How to troubleshot such problem? I cannot find any lower TWRP version for mojito, is this the first TWRP version for mojito? Is there any other recovery which has sideload option to install ROM?
[Redmi Note 10] nierewa:
I wan't to make a backup with TWRP. The Data partition (excl. storage) is 0MB

Which partitions do I need to back up?

By the way, earlier versions did ask to decrypt Data if Iboot to recovery?

If I go to Mount -> Decrypt Data I get error:

Unable to mount storage

Failed to mount '/data' (Invalid argument)

Failed to decrypt data.

If I boot only to recovery I get the error:

Updating partition details...

...done

Unable to mount storage

Full SELinux support is present.

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

Unable to mount /data/media/TWRP/.twrps
[Redmi Note 10] sicong:
i run this command:

and got this error:

Redmi Note 10

unlocked bootloader

C:\Users\Administrator\Downloads>fastboot boot twrp-3.6.0_11-0-mojito.img

Sending 'boot.img' (131072 KB) OKAY [ 2.836s]

Booting FAILED (Status read failed (Too many links))

fastboot: error: Command failed
[Redmi Note 10] aamnahid:
flash miui rom with clean all option in miflash tool.. then try again
[Redmi Note 10] sicong:
does it lock bootloader again?
[Redmi Note 10] aamnahid:
Use "clean all" option in the bottom left side, Dont use "clean all and lock"...
[Redmi Note 10] kevin grenier:
Hello,

Can you help me I am looking to install the project elixir rom and I would already like to put TWRP but when I enter the commands it gives me an error this partition doesn't exist

what should i do

Thank you
[Redmi Note 10] spider1163:
You should post in the ROM thread, and precise what command you use and what error you get
[Redmi Note 10] kevin grenier:
This is the error, Kevin.img it's the rename of image for recovery
[Redmi Note 10] alonsoj636MW:
Why people keep doing the exact wrong step when this have been clarified a lot of times.

THIS PHONE DOES NOT HAVE A RECOVERY PARTITION BECAUSE OF VIRTUAL A/B

In the case of TWRP , you MUST boot it , not flash it ...

fastboot boot twrp.img
[Redmi Note 10] kevin grenier:
Hello,

Thanks for the help however when I run the command it gives me another error

FAILED (Status read failed (Too many links))

fastboot: error: Command failed

How can I solve this, thanks
[Redmi Note 10] StaryMuz:
It is better to work with all files stored in the same folder as the fastboot startup file (fastboot.exe ...).

Then there is no need to enter the full path to the file being uploaded, just its name. You will avoid this message.
[Redmi Note 10] sicong:
Thank you,i'll try it.
[Redmi Note 10] armin.p:
thnx
[Redmi Note 10] Th3DoLa:
Can this version decrypt MIUI 13 encryption ?
[Redmi Note 10] alonsoj636MW:
current recovery (twrp ofox) doesn't support A12 so decryption is not possible (MIUI 13 is A12 so not possible)
[Redmi Note 10] DARKRHY:
is this compatible to android 12 custom rom? I'm on android12 Ancient os, and i cant mount internal storage in twrp. Thanks for the help
[Redmi Note 10] spider1163:
The answer is right above you :

Decryption is not possible, so no internal storage
[Redmi Note 10] alonsoj636MW:
just use a MicroSD Card and problem solved... don't know why people loves to make things easy -> difficult
[Redmi Note 10] ictsz.roy:
I'm on pe recovery using pixel experience rom, can i move to twrp using the instructions given on the OP?

P.S: Reason for move is to use the backup/restore function.

TIA :)
[Redmi Note 10] spider1163:
Decryption is not possible, so no access to internal data and backup/restore not possible.

Use a backup app with root instead (Titanium backup, Migrate, Super backup, oandbackup ...)
[Redmi Note 10] ictsz.roy:
I'm not on A12 and not rooted and I'll use a sd card to save the backup, does this still apply to me? TIA
[Redmi Note 10] Nebrassy:
Unofficial android 12 builds here: https://www.pling.com/p/1836625/

mirror: https://store.kde.org/p/1836625/
[Redmi Note 10] kaem84:
Decryption on Android 12 working! :D
[Redmi Note 10] Mthw:
I just tried the linked version and it doesn't start. I did 'fastboot boot twrp.img' which did reboot me to TWRP but then it got stuck on the splash screen (?) and after a while screen started flashing like a bootloop. Did I do something wrong? I am currently on PixelOS with OrangeFox recovery.
[Redmi Note 10] maximum117:
Data restoration breakes the system. After backup and restore I get mi logo two times and recovery autostart. Rom PE a12 and PE+ a12. Stock kernel, no root or modifications.
[Redmi Note 10] x3r0.13urn:
twrp or nand /data backup has never been reliable. You could use backup made by app like migrate, swiftbackup, etc, they should be more reliable. Unless you're backing up partition other than /data (efs, modem, etc.), twrp should be fine,
[Redmi Note 10] maximum117:
I have that error too. I tried to fix that error (tried rerestore backup, reboot, etc) but nothing help.
[Redmi Note 10] Nebrassy:
New build is up

Fixed recovery settings not persisting

Fixed flashing older builds and firmware

added erofs support

Some misc fixes
[Redmi Note 10] spider1163:
Does it fix the fscrypt policy for backup/restore?
[Redmi Note 10] Nebrassy:
No
[Redmi Note 10] Mthw:
I don't know what I did wrong but it works now with the latest version.
[Redmi Note 10] philip130683:
with new version of twrp, it goes in fastboot mode. anyone have tested?
[Redmi Note 10] Mthw:
What are you saying? The latest version works well.
[Redmi Note 10] philip130683:
sorry. i meant the redmi note 10 pro.
[Redmi Note 10] alonsoj636MW:
this isn't for the redmi note 10 pro

is for the normal redmi note 10