No System partition in TWRP to Backup - Redmi K20 Pro / Xiaomi Mi 9T Pro Questions & Answe

Hi everyone! I'm trying to backup my stock rom after unlocking bootloader and flashing an official TWRP build (which I didn't save it to system on the first prompt because I didn't want a dirty recovery partition for obvious reasons, and now can't at all get that screen to appear again, no matter how many times I reflash the TWRP or delete its files from internal memory), but there is no /system/ partition (and never was from the first TWRP boot), only System Image.
Is it how it looks on 9T PRO or is something wrong with mine? I can't seem to find anything about it on the internet.
PS after backuping all other partitions, I was able to flash Magisk w/o problem by unchecking read-only in Mount (even multiple times, because I prefer its older version - newest one had problems with allowing root permissions to apps).

I hope some expert addresses you, but I think flashing stock rom would install the system partition
Sent from my Redmi K20 Pro using Tapatalk

GouravBaghel said:
I hope some expert addresses you, but I think flashing stock rom would install the system partition
Click to expand...
Click to collapse
It might, but the rom I'm on is working perfectly fine and I would love to know if there will be a possibility to backup it at all, or am I destined to wipe and flash another rom when something goes wrong

My bad I, didn't read carefully, but could explain me a bit, about your concern
Sent from my Redmi K20 Pro using Tapatalk

GouravBaghel said:
My bad I, didn't read carefully, but could explain me a bit, about your concern
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
I got the same problem. I wanted to backup my data so I can restore it if anything goes wrong sometime.
Dont I have to Backup: Boot, System and Data to restore it.
So as mentioned above there is no entry like "System".
Or is it included in "Data"?
I"m on TWRP 3.3.1-22 on my xiaomi mi 9t pro

System image is same as system as far as I know
Sent from my Redmi K20 Pro using Tapatalk

System image means a 1:1 dump, without image means only used space will be archived.

Related

My first encounter with bootloops and a nearly bricked device

Before we start, I am on an unlocked boot loader with Stock EU rom along with twrp/magisk installed.
So I went ahead and downloaded the latest full rom from c.mi.com and proceded to flash it via twrp, but before that, I made a nandroid backup just for safekeeping. Everything went well but when I tried to install magisk it gave me cannot mount system error. So i tried restarting Twrp but the whole storage was now encrypted even though I took of pin/password from the previous MiUi version. So I googled a bit and tried different Twrp version but none of them even booted but the original version so I gave up and just restored the nandroid backup and this is where the boot loop problem started.
In the end, I went ahead and flashed the whole thing using miflash which went smoothly but not without me being utterly depressed the whole time thinking that I might have hard bricked my device.
Is there any way I can avoid all this headache in the future when Miui 11 and android Q comes out cause I am pretty scared to even try to flash anything atm.
You need to wipe data after flashing TWRP otherwise you won't boot and also the phone will restore the stock recovery on reboot if you don't flash dm_verity
Check this post of mine it might help.
https://forum.xda-developers.com/k20-pro/how-to/flashing-orangefox-recovery-mi-9t-pro-t3980579
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
You need to wipe data after flashing TWRP otherwise you won't boot and also the phone will restore the stock recovery on reboot if you don't flash dm_verity
Check this post of mine it might help.
https://forum.xda-developers.com/k20-pro/how-to/flashing-orangefox-recovery-mi-9t-pro-t3980579
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
The problem was that no matter what recovery(apart from one) I tried including Orange fox, after flashing them via fastboot I always ended up being stuck at Mi logo ( even tried fastboot reboot recovery command)
_ray_ said:
The problem was that no matter what recovery(apart from one) I tried including Orange fox, after flashing them via fastboot I always ended up being stuck at Mi logo ( even tried fastboot reboot recovery command)
Click to expand...
Click to collapse
Do you have the Mi 9T Pro?
If you have, only latest orangefox 1.0.0.7 or Mauronofrio's TWRP working for this device. Abhisheks or LR TWRP doesn't work on Mi 9T Pro.
Kollachi said:
Do you have the Mi 9T Pro?
If you have, only latest orangefox 1.0.0.7 or Mauronofrio's TWRP working for this device. Abhisheks or LR TWRP doesn't work on Mi 9T Pro.
Click to expand...
Click to collapse
Yup Mi9t Pro user here, and yea for me only latest Mauronofrio's twrp works, but not sure if it will work with Miui11/Q when it is released sometime today
Just googled the orangafox recovery you mentioned, is the one with OrangeFox-R10.0_7-Stable-raphael name?
_ray_ said:
Yup Mi9t Pro user here, and yea for me only latest Mauronofrio's twrp works, but not sure if it will work with Miui11/Q when it is released sometime today
Just googled the orangafox recovery you mentioned, is the one with OrangeFox-R10.0_7-Stable-raphael name?
Click to expand...
Click to collapse
I think it will work. Because I'm on indian Q Firmware with LOS 17 and there was no issue with Mauronofrio's TWRP.
Yes that's the right orangefox version. I didn't remember the exact name. I tried it once but went again back to TWRP because i grew up with it. :laugh:
Kollachi said:
I think it will work. Because I'm on indian Q Firmware with LOS 17 and there was no issue with Mauronofrio's TWRP.
Yes that's the right orangefox version. I didn't remember the exact name. I tried it once but went again back to TWRP because i grew up with it. :laugh:
Click to expand...
Click to collapse
Thanks for the info regarging Twrp. everything will go smoothly this time hopefully.
I also wanted to ask that did you format data after installing twrp via fastboot? I was reading on Twrp thread that if you get encrypted after flashing twrp then you will have to format all data for it to disable encryption. This is the only thing that I am still confused about and I really dont want to format my internal storage again . Can you maybe list steps that you took to upgrade to Android Q? thanks
_ray_ said:
Thanks for the info regarging Twrp. everything will go smoothly this time hopefully.
I also wanted to ask that did you format data after installing twrp via fastboot? I was reading on Twrp thread that if you get encrypted after flashing twrp then you will have to format all data for it to disable encryption. This is the only thing that I am still confused about and I really dont want to format my internal storage again . Can you maybe list steps that you took to upgrade to Android Q? thanks
Click to expand...
Click to collapse
Yes when I come from miui I did format data first.
https://forum.xda-developers.com/showpost.php?p=80555299&postcount=236
_ray_ said:
The problem was that no matter what recovery(apart from one) I tried including Orange fox, after flashing them via fastboot I always ended up being stuck at Mi logo ( even tried fastboot reboot recovery command)
Click to expand...
Click to collapse
I have Mi 9T pro like you and flashed Orangefox recovery version _07 and no problem at all, i also flashed disable_dm_verity just to be safe and i believe this is where people get stuck on mi logo, if you flash this file it blocks your system from restoring the stock recovery on reboot and makes your TWRP/Orangefox permanent. LINK: https://androidfilehost.com/?fid=1395089523397966811
Sent from my Redmi K20 Pro using Tapatalk
---------- Post added at 04:36 PM ---------- Previous post was at 04:34 PM ----------
I then flashed Indian 10.3.5 which has now made my phone's name change to K20 Pro but i don't care[emoji23]
Sent from my Redmi K20 Pro using Tapatalk

9T Pro Global booting to Fastboot after Viper4Android Uninstall...Please Help!!!

Hey all.
Currently running 11.0.1.0 Global Official on my phone. Installed via OrangeFox Incremental update method.
I had some Magusk modules installed before the update. All of them worked after except Viper4Android. So I decided to uninstall.
I selected reboot via Magisk and now the phone constantly goes to Fastboot!!
I manually booted into recovery and decided to wipe Dalvik and Cache. During this process it shows 'NO ROM' under 'Device: Raphael'
I don't know how on earth this happened and can't seem to re-install the rom as it gives me following error:
Detected MIUI Update Package
Support MIUI Incremental Package Status: Enabled
E3003: Can't install this package over newer build.
Update process ended with ERROR: 7
Are you installing onto the correct device?
Guys please help. I really don't want to do a clean install as I have lots os important sms that I haven't backed up.
Please help
Error 7 is because you're probably flashing another region ROM. Unzip the rom and find the Update script file, edit with notepad and rename all lines reading "Raphael" to "Raphaelin" or bice versa. Rezip and flash.
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
Error 7 is because you're probably flashing another region ROM. Unzip the rom and find the Update script file, edit with notepad and rename all lines reading "Raphael" to "Raphaelin" or bice versa. Rezip and flash.
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
Hey. Thanks for the reply. However this is the same file I used to upgrade from 10 to 11 in the first place.
Also this is the full ROM I believe as I do not see any update script inside the zip.
This is the one I downloaded: https://bigota.d.miui.com/V11.0.1.0.QFKMIXM/miui_RAPHAELGlobal_V11.0.1.0.QFKMIXM_7b25321468_10.0.zip
There should be update script file. Otherwise you'll have to flash a fastboot ROM with miflash and in there maybe try to KEEP DATA and see if it boots
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
There should be update script file. Otherwise you'll have to flash a fastboot ROM with miflash and in there maybe try to KEEP DATA and see if it boots
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
Hey again. So I decided to go the fastboot ROM route with keep data option. My data partition was left intact (THANK YOU!) however my sms and call logs were only restored from the latest cloud backup available (not latest unfortunately).
Thanks again for your help.
Just wanted to check with you. Can I install OrangeFox directly onto this phone now? I recall having issues the first time I tried. Ended up having to install a specific version of TWRP made for the 9T Pro Global version and then install OrangeFox via that.
You'll have to format data i think. Otherwise try, this is the latest for raphael https://files.orangefox.tech/OrangeFox-Stable/raphael/OrangeFox-R10.0_8-Stable-raphael.zip
Unzip the file, then take the recovery.img file from it and FASTBOOT FLASH RECOVERY *RECOVERYNAME*. Once target is sent, press and hold volume up and power button together, once it vibrates release the power button and keep holding volume up, it will reboot to orangefox. Once it boots, copy the orangefox zip file and flash it again, now it will be permanent, then go to manage storage and format data (that where you type YES).
What I'm not sure is if it will boot without wiping data. Otherwise try skipping the data wipe and just flash orangefox twice like above
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
You'll have to format data i think. Otherwise try, this is the latest for raphael https://files.orangefox.tech/OrangeFox-Stable/raphael/OrangeFox-R10.0_8-Stable-raphael.zip
Unzip the file, then take the recovery.img file from it and FASTBOOT FLASH RECOVERY *RECOVERYNAME*. Once target is sent, press and hold volume up and power button together, once it vibrates release the power button and keep holding volume up, it will reboot to orangefox. Once it boots, copy the orangefox zip file and flash it again, now it will be permanent, then go to manage storage and format data (that where you type YES).
What I'm not sure is if it will boot without wiping data. Otherwise try skipping the data wipe and just flash orangefox twice like above
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
Ok this is really weird. I sent across the latest OrangeFox via Fastboot. Booted into it. Installed again via Zip. It rebooted back into Orangefox. Wiped data. Then re-started phone and set everything up (second time today :crying.
I then downloaded magisk and booted into recovery to install it only to find out it's back to stock!!???
I really don't want to wipe my data again so any idea as to which TWRP works on this phone? I just tried the mauronofrio one but it boots to a black screen :crying:
Flash magisk before you setup your stuff, magisk will stop it from restoring back to stock recovery.
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
Flash magisk before you setup your stuff, magisk will stop it from restoring back to stock recovery.
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
Ok thanks. But are you aware of any TWRP that works on the Global 9t Pro with Android Q?
Yes that of Maurofanio or something like that is his name, it's in here.
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
Yes that of Maurofanio or something like that is his name, it's in here.
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
Got it! Thanks.

Question about installing twrp

So I'm planning on installing TWRP my question is if--
1)If I install TWRP and got on a bootloop can i still use Mi Flash to flash fastboot firmware to fix the bootloop?
or
2)If i have TWRP and MAGISK together then got on a bootloop can i just use Mi Flash to Flash fastboot firmware to fix the bootloop?
and is there any chance that a bootloop can't be fix with a Mi Flash when flashing twrp?
The only experience i had is I Flashing a Patched Boot.Img(magisk patch) to install magisk and when bootloop with magisk i just use Mi Flash.
and the only fix i know on bootloop is Mi Flash.
P.s sorry for my Bad english.
You can flash your fastboot ROM any time to fix bootloop from another reason. Just make sure you uncheck CLEAN ALL AND LOCK option in bottom right corner else you might hard brick. Flashing magisk will need a data format once too i think.
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
You can flash your fastboot ROM any time to fix bootloop from another reason. Just make sure you uncheck CLEAN ALL AND LOCK option in bottom right corner else you might hard brick. Flashing magisk will need a data format once too i think.
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
thanks ,yes i always check the clean only. :fingers-crossed::fingers-crossed:
I myself have bootlooped a lot in the beginning and fastboot ROM has always been my escape. Maybe you should know one thing i am facing when updating, DO NOT use direct install, download its ZIP then flash in TWRP, after that know that the booting can take a bit longer which might make you worried, mime takes even 3-5 mins sometimes but eventually it boots up[emoji1]
Sent from my Redmi K20 Pro using Tapatalk
ishaqtkr said:
I myself have bootlooped a lot in the beginning and fastboot ROM has always been my escape. Maybe you should know one thing i am facing when updating, DO NOT use direct install, download its ZIP then flash in TWRP, after that know that the booting can take a bit longer which might make you worried, mime takes even 3-5 mins sometimes but eventually it boots up[emoji1]
Sent from my Redmi K20 Pro using Tapatalk
Click to expand...
Click to collapse
thank you ill take note of that well i think ill just disable the auto updates cause im still new although what problem does direct install cause?? just curious if direct installed is it still fixable with mi flash?
BOT3 said:
thank you ill take note of that well i think ill just disable the auto updates cause im still new although what problem does direct install cause?? just curious if direct installed is it still fixable with mi flash?
Click to expand...
Click to collapse
I think it bootloops can't remember which phone since i have Samsung S8 too but better be safe, but Yes still fixable by miflash.
Sent from my Redmi K20 Pro using Tapatalk

Can't boot into new rom

I have TWRP on my Mi 9T Pro but whenever I try to boot into a new rom it just boots back into TWRP, I think it's because I accidentally wiped everything including my kernel, but I'm not entirely sure, there's no errors when I try to install one, I've tried multiple, my phone doesn't have an OS installed ATM, no MiUI, I've tried flashing stock rom but that also doesn't work. I really don't know what to do.
sternje said:
I have TWRP on my Mi 9T Pro but whenever I try to boot into a new rom it just boots back into TWRP, I think it's because I accidentally wiped everything including my kernel, but I'm not entirely sure, there's no errors when I try to install one, I've tried multiple, my phone doesn't have an OS installed ATM, no MiUI, I've tried flashing stock rom but that also doesn't work. I really don't know what to do.
Click to expand...
Click to collapse
Restore MIUI by flashing a MIUI fastboot ROM.
Get the fastboot ROM from here
https://xiaomifirmwareupdater.com/miui/raphael/
Choose the fastboot ROM for the phone you have (European or Global). Make sure it is a fastboot ROM, not a recovery ROM.
Use this guide to flash it
https://c.mi.com/oc/miuidownload/detail?guide=2
View the page in desktop mode if viewing on a phone.
In step 5 make sure you change flash option to 'clean all' before hitting flash. This is three radio button options at the bottom of the flash tool. The default locks the bootloader, so you need to change it to keep the bootloader unlocked.
After doing this boot into MIUI at least once before trying to install something again.
When flashing a custom ROM over MIUI you need to format data in TWRP.
After installing TWRP, boot into it a do the following.
Perform a factory reset.
Format data - make sure you format, not wipe, need to type 'yes' to confirm.
Reboot back into TWRP - this makes sure the data partition is properly mounted after formatting.
Now flash the ROM you want and GApps if needed.
Reboot to system and it should be good.
Flash Magisk if needed.
Do not wipe anything else in TWRP. It's not needed.
sternje said:
I have TWRP on my Mi 9T Pro but whenever I try to boot into a new rom it just boots back into TWRP, I think it's because I accidentally wiped everything including my kernel, but I'm not entirely sure, there's no errors when I try to install one, I've tried multiple, my phone doesn't have an OS installed ATM, no MiUI, I've tried flashing stock rom but that also doesn't work. I really don't know what to do.
Click to expand...
Click to collapse
First Learn Basics while messing with your device.
Kernel is a part of ROM's Zip,
So even if you wiped kernel(so called boot), it will again gets re flashed with new ROM.
Second your problem is,
You are booting into wrong partition.
I am not sure , what you did.
But Mi9TPro has two partitions, Google's new A/B partition table for Android.
And you may have wiped both Flashed A(example) and booting into B.
Therefore it is not booting properly.
Ask in Telegram group for faster solution.
Or wait here for better solution in reply.
OR
Simply flash Fastboot,
And then try everything again.
Ans from next time, read everything step carefully and then proceed.
Sent from my Redmi K20 Pro using Tapatalk
itspdp said:
First Learn Basics while messing with your device.
Kernel is a part of ROM's Zip,
So even if you wiped kernel(so called boot), it will again gets re flashed with new ROM.
Second your problem is,
You are booting into wrong partition.
I am not sure , what you did.
But Mi9TPro has two partitions, Google's new A/B partition table for Android.
And you may have wiped both Flashed A(example) and booting into B.
Therefore it is not booting properly.
Ask in Telegram group for faster solution.
Or wait here for better solution in reply.
OR
Simply flash Fastboot,
And then try everything again.
Ans from next time, read everything step carefully and then proceed.
Click to expand...
Click to collapse
This phone does not have A/B partitions.
Robbo.5000 said:
This phone does not have A/B partitions.
Click to expand...
Click to collapse
It has, but you can't see then normally in twrp.
Ask in telegram group for fast solution.
And please do read about android partition tables feom android oreo.
Sent from my Redmi K20 Pro using Tapatalk
itspdp said:
It has, but you can't see then normally in twrp.
Ask in telegram group for fast solution.
And please do read about android partition tables feom android oreo.
Click to expand...
Click to collapse
It's an A only, system as root device. It is not an A/B device.
This is why MIUI updates need to be installed in system recovery. It does not install updates when the system is live.
if it's booting back into twrp. It's usually one of the three mistakes.
1. wrong vendor
2. didnt flash dfe
3. flashed dfe for stock rom
4. encrypted, so format data partition.
you can follow the guide: https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
also, k20p is A partition only, not dual.
kernel is included with rom.
ask in telegram group for faster replies.
Sandeeep Kiran said:
if it's booting back into twrp. It's usually one of the three mistakes.
1. wrong vendor
2. didnt flash dfe
3. flashed dfe for stock rom
4. encrypted, so format data partition.
you can follow the guide: https://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
also, k20p is A partition only, not dual.
ask in telegram group for faster replies.
Click to expand...
Click to collapse
You don't need to flash dfe. I've not yet come across a situation where it is required. Flashing dfe will make life easier, at the cost of greatly reduced security, but there are always options to do what you want without flashing dfe.
Robbo.5000 said:
You don't need to flash dfe. I've not yet come across a situation where it is required. Flashing dfe will make life easier, at the cost of greatly reduced security, but there are always options to do what you want without flashing dfe.
Click to expand...
Click to collapse
It's required for oss based builds now.

How to flash MIUI without losing TWRP

Hello.
I have a question. How to install MIUI 12 without losing TWRP. The thing is, my Mi 9T Pro is damaged and my computer can't see it (probably the motherboard is damaged). I would like to install Miui but I know that after Miui Rom flash it changes to TWRP on Recovery XIAOMI. I would like to prevent this because if I download Recovery XIAOMI, I will never be able to upload any other ROM. Do you have any suggestions on how to do it?
kempes221 said:
Hello.
I have a question. How to install MIUI 12 without losing TWRP. The thing is, my Mi 9T Pro is damaged and my computer can't see it (probably the motherboard is damaged). I would like to install Miui but I know that after Miui Rom flash it changes to TWRP on Recovery XIAOMI. I would like to prevent this because if I download Recovery XIAOMI, I will never be able to upload any other ROM. Do you have any suggestions on how to do it?
Click to expand...
Click to collapse
It was asked/answered in other threads. After flashing the stock ROM from TWRP, reboot to Recovery/TWRP (not to system) and follow the posts #933, #935-#937:
https://forum.xda-developers.com/showpost.php?p=82945031&postcount=936
You may try backup recovery>flash rom>restore recovery>boot
Mi 9T Pro ll Tapatalk

Categories

Resources