Find device storage corrupted mi 9t - Redmi K20 / Xiaomi Mi 9T Questions & Answers

Every tíme when i restart phone a get this message.
I unlock bootloder(11.0.1.0 PFJIMXM), flash twrp, flash xiaomi.eu stable ROM (11.0.3.0 PFJCNXM) and after ask me to log in miaccount this message pop-up.
I try reflash (11.0.1.0 PFJIMXM) but not help. Already trying wipe,factory reset in twrp but no help..
How to fix?

Do you have a back up of persist partition from twrp?

@Benfatica Yes. After flash twrp i do complete back up.

endva3 said:
@Benfatica Yes. After flash twrp i do complete back up.
Click to expand...
Click to collapse
Good just restore only the persist partition and it should be fixed

@Benfatica Im currently on miui.eu and back up was created on Global stable ROM. Its ok to restore on this ROM or must be restored on Global ROM?
Restore via twrp right?

endva3 said:
@Benfatica Im currently on miui.eu and back up was created on Global stable ROM. Its ok to restore on this ROM or must be restored on Global ROM?
Restore via twrp right?
Click to expand...
Click to collapse
Just restore it, it doesn't matter. I have done it before

Thx @Benfatica its working ?

endva3 said:
Thx @Benfatica its working ?
Click to expand...
Click to collapse
Ok glad I could hel,if you didn't have that back the only solution will be to flash the persist image from the fastboot ROM , and that will also break you windvine L1. So always keep a back up of the persist partition some where, because this phones persist partition gets corrupted a lot if you like flashing ROMs.

Benfatica said:
Ok glad I could hel,if you didn't have that back the only solution will be to flash the persist image from the fastboot ROM , and that will also break you windvine L1. So always keep a back up of the persist partition some where, because this phones persist partition gets corrupted a lot if you like flashing ROMs.
Click to expand...
Click to collapse
im pretty sure someone made a widevine l1 solution somewhere

riotp100 said:
im pretty sure someone made a widevine l1 solution somewhere
Click to expand...
Click to collapse
Yeah but doesn't work for everyone

Related

TWRP restore still not working?

It has been months since op5 come out, and the problem is that when restoring data partition from backups will lead to bootloop on OOS.
Has there been any fix on that?(official or non-official)
p.s. I have searched before, none of the recovery works for stock OOS, due to forced file encryption on OOS.
timescaming said:
It has been months since op5 come out, and the problem is that when restoring data partition from backups will lead to bootloop on OOS.
Has there been any fix on that?(official or non-official)
p.s. I have searched before, none of the recovery works for stock OOS, due to forced file encryption on OOS.
Click to expand...
Click to collapse
Not just problems with OOS, custom ROM's give bootloop too
When you do a backup, you have to also backup the system image partition. That will make your backup around 8-10gb in size but then you can restore your data partition and not get a bootloop. I am on TWRP 3.1.1-1 cheeseburger TWRP. Make sure you're at least on that or the k2 version which I'm updating to soon.
Eric214 said:
When you do a backup, you have to also backup the system image partition. That will make your backup around 8-10gb in size but then you can restore your data partition and not get a bootloop. I am on TWRP 3.1.1-1 cheeseburger TWRP. Make sure you're at least on that or the k2 version which I'm updating to soon.
Click to expand...
Click to collapse
So you can confirm it works?
Does this apply to OxygenOS too or just custom ROMs?
Jonathanve said:
Not just problems with OOS, custom ROM's give bootloop too
Click to expand...
Click to collapse
I restore data on custom ROMs without issue when using K2 (with or without backing up the system partition). Not sure about OOS since I haven't used it in a very long time. I've been using RR-Official successfully for a few months.
sjamie said:
I restore data on custom ROMs without issue when using K2 (with or without backing up the system partition). Not sure about OOS since I haven't used it in a very long time. I've been using RR-Official successfully for a few months.
Click to expand...
Click to collapse
I've personally try to backup and restore stock oos with the k3 version, ended up with a boot loop. Never tried k2 though, to scared to try again.
timescaming said:
I've personally try to backup and restore stock oos with the k3 version, ended up with a boot loop. Never tried k2 though, to scared to try again.
Click to expand...
Click to collapse
Understood. LoL
Pwnycorn said:
So you can confirm it works?
Does this apply to OxygenOS too or just custom ROMs?
Click to expand...
Click to collapse
Yes, it's works. But k2 apparently doesn't need the system image for data restore so your backups will be smaller and faster obviously.
Also, I'm on stock oos with stock kernel 4.5.10
---------- Post added at 11:19 AM ---------- Previous post was at 11:09 AM ----------
sjamie said:
I restore data on custom ROMs without issue when using K2 (with or without backing up the system partition). Not sure about OOS since I haven't used it in a very long time. I've been using RR-Official successfully for a few months.
Click to expand...
Click to collapse
I can't seem to find the k2 file anywhere. Do you mind posting a kind to it so I can download?
Here you go: https://www.androidfilehost.com/?fid=889764386195921506
lekiaM said:
Here you go: https://www.androidfilehost.com/?fid=889764386195921506
Click to expand...
Click to collapse
Awesome, thanks!
Eric214 said:
Also, I'm on stock oos with stock kernel 4.5.10
Click to expand...
Click to collapse
So it means k2 can perform restore on stock oos, gonna try again when I get home.
Did you decrypt your device, or remove screen lock on the device before backup? Or anything I should do before backup? Thanks.
timescaming said:
So it means k2 can perform restore on stock oos, gonna try again when I get home.
Did you decrypt your device, or remove screen lock on the device before backup? Or anything I should do before backup? Thanks.
Click to expand...
Click to collapse
I ALWAYS remove screen locks and fingerprints before a backup. I also never decrypt my phone's, not worth it in my opinion.
Im curious if anyone has tried this to flash in TWRP to remove password and pin.
https://drive.google.com/file/d/0B3gcDbDvV4MkSmNCcDdTcHpyanc/view?usp=drivesdk
Sent from my OnePlus5 using XDA Labs
Eric214 said:
I ALWAYS remove screen locks and fingerprints before a backup. I also never decrypt my phone's, not worth it in my opinion.
Click to expand...
Click to collapse
Thanks, I'll try later today.

how do you flash persist.img

how do you flash persist.img, wifi is messed up, lost mac address and i need to reflash persist.img but i dont know how
You will L1 forever if you flash persist.img which rom are you currently on? Persist.img extract from fast boot tgz then flash thru twrp but if I was you I would not flash it. have you tried deleting wifi mac.bin while mounting persist in twrp then restart
iisouljaboiii said:
You will L1 forever if you flash persist.img which rom are you currently on? Persist.img extract from fast boot tgz then flash thru twrp but if I was you I would not flash it. have you tried deleting wifi mac.bin while mounting persist in twrp then restart
Click to expand...
Click to collapse
I am currently on miui 10.3.5 global stock, and wifi mac.bin does not exist and i can not find the persist file
iisouljaboiii said:
You will L1 forever if you flash persist.img which rom are you currently on? Persist.img extract from fast boot tgz then flash thru twrp but if I was you I would not flash it. have you tried deleting wifi mac.bin while mounting persist in twrp then restart
Click to expand...
Click to collapse
Lose L1 < No Wifi, PopUp Camera Bug, etc..
riotp100 said:
I am currently on miui 10.3.5 global stock, and wifi mac.bin does not exist and i can not find the persist file
Click to expand...
Click to collapse
Download stable pie fastboot rom for your device firmware then extract it copy persist.img transfer to phone mount persist in twrp then flash persist.img
iisouljaboiii said:
Download stable pie fastboot rom for your device firmware then extract it copy persist.img transfer to phone mount persist in twrp then flash persist.img
Click to expand...
Click to collapse
i acidentally deleted persist.img through fastboot, and i couldnt mount it anyways
Install it through fastboot
fastboot flash persist persist.img
Quick question
If i have persist backup img how can i restore it using custom recovery
When i try to install it through install img. It show me on which partition should i install it
Thanks
Sent from my MI CC9 Pro using Tapatalk
eamon.ash said:
Quick question
If i have persist backup img how can i restore it using custom recovery
When i try to install it through install img. It show me on which partition should i install it
Thanks
Sent from my MI CC9 Pro using Tapatalk
Click to expand...
Click to collapse
Hello,
If you don't see "Persist" partition as a partition choice in TWRP, it means you can't easily flash "Persist" partition in your actual TWRP version (for security reason...).
Micdu70 said:
Hello,
If you don't see "Persist" partition as a partition choice in TWRP, it means you can't easily flash "Persist" partition in your actual TWRP version (for security reason...).
Click to expand...
Click to collapse
I see two partitions
Persist and persist_backup which one shall i choose
Thanks
Sent from my MI CC9 Pro using Tapatalk
Hi guys,
Question, would it be possible to flash an official ROM in a way it includes the persist.img and thus repairing (by reinstalling) my corrupted persist?
Schnedi said:
Install it through fastboot
fastboot flash persist persist.img
Click to expand...
Click to collapse
damn your this command saved my phone! got ****ed up because of something. Nubia Red Magic device though!
Schnedi said:
Install it through fastboot
fastboot flash persist persist.img
Click to expand...
Click to collapse
This method did not worked for me it showed no permission or something like that. I installed latest orangefox recovery and followed this process - https://forum.xda-developers.com/t/...alling-lineage-os-17-1.4202351/#post-84201629

[HELP!] persist.img on wrong partition?

Hi all! I was trying to flash new MIUI 11 and after some flash my Wifi won't turn on!
I read about it on internet and tried to flash persist.img (Fastboot flash ROM doesn't flash this file)
I tried this comand:
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p27
and also
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p26
Reboot and now my Wifi is working, but camera not! The popup camera makes strange noise and tell me that can't be reclosed.
Please, how can i restore those partitions? Can someone backup your mmcblk0p27 and mmcblk0p26 and send to me?
PLEASE!
UPDATE: I did the calibration for popup camera, now it pops out and retract but it make a strange noise again
flash stock fastboot rom
Seriously !!
remove this and post it in the appropriate section.
riki075 said:
Hi all! I was trying to flash new MIUI 11 and after some flash my Wifi won't turn on!
I read about it on internet and tried to flash persist.img (Fastboot flash ROM doesn't flash this file)
I tried this comand:
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p27
and also
dd if=/sdcard/persist.img of=/dev/block/mmcblk0p26
Reboot and now my Wifi is working, but camera not! The popup camera makes strange noise and tell me that can't be reclosed.
Please, how can i restore those partitions? Can someone backup your mmcblk0p27 and mmcblk0p26 and send to me?
PLEASE!
UPDATE: I did the calibration for popup camera, now it pops out and retract but it make a strange noise again
Click to expand...
Click to collapse
Hello, good day, you need to flash persit.img on TWRP, the problem is with all roms, including the rom stock, the solution for me was to flash persit.img through TWRP on xiaomi.eu with miui 11, this after of installing xiaomi.eu.
Attention guys,
Reflashing persist will break your Widevine L1 permanently!
sackgnom said:
Attention guys,
Reflashing persist will break your Widevine L1 permanently!
Click to expand...
Click to collapse
Ok but custom rom like havoc flash persist ?
Sent from my Mi 9T using XDA Labs
Bradco said:
Ok but custom rom like havoc flash persist ?
Click to expand...
Click to collapse
Hovac doesn't corrupt the persist partition but pixel experience and lineage os does
I got the same problem, which persist.img do you use? Where can I find this img? I'm on xiaomi.eu 9.10.24 btw
Benfatica said:
Hovac doesn't corrupt the persist partition but pixel experience and lineage os does
Click to expand...
Click to collapse
Thanks
how to know if a rom corrupts the persist partition
Sent from my Mi 9T using XDA Labs
Bradco said:
Thanks
how to know if a rom corrupts the persist partition
Click to expand...
Click to collapse
Whenever you flash back stock ROM it should say device storage corrupted at the setup and every reboot
Benfatica said:
Whenever you flash back stock ROM it should say device storage corrupted at the setup and every reboot
Click to expand...
Click to collapse
Ok thanks for quick answer :good:
Is it useful to make a backup of the persist partition? If yes, how ? do you know a good tutorial to make a backup of the directory efs in case
Sent from my Mi 9T using XDA Labs
Bradco said:
Ok thanks for quick answer :good:
Is it useful to make a backup of the persist partition? If yes, how ? do you know a good tutorial to make a backup of the directory efs in case
Click to expand...
Click to collapse
Just boot into twrp if you have one, I use this one and it works fine for me at least on AOSP ROMs and the persist backup and restore https://drive.google.com/file/d/1TSGqgarTA8yDfH0KUYSgZkGyRA_qm_vF/view
Then select backup and then select the persist partition or if you want to back up everything you can . Back it up to your internal storage then after copy it to your pc or any form of storage you have so if anything goes wrong with the persist partition just copy it back and restore it.
Benfatica said:
Just boot into twrp if you have one, I use this one and it works fine for me at least on AOSP ROMs and the persist backup and restore https://drive.google.com/file/d/1TSGqgarTA8yDfH0KUYSgZkGyRA_qm_vF/view
Then select backup and then select the persist partition or if you want to back up everything you can . Back it up to your internal storage then after copy it to your pc or any form of storage you have so if anything goes wrong with the persist partition just copy it back and restore it.
Click to expand...
Click to collapse
Thanks I do this the last week I'm waiting 168 hours for unlock bootloader
Have you EEA, global or other version ?
Sent from my Mi 9T using XDA Labs
Bradco said:
Thanks I do this the last week I'm waiting 168 hours for unlock bootloader
Have you EEA, global or other version ?
Click to expand...
Click to collapse
EEA
Benfatica said:
EEA
Click to expand...
Click to collapse
mine is a global, you think it's the same procedure you gave me ?
Sent from my Mi 9T using XDA Labs
Bradco said:
mine is a global, you think it's the same procedure you gave me ?
Click to expand...
Click to collapse
Yeah
I followed this tutorial and it worked for me.
https://forum.xda-developers.com/mi-9t/how-to/guide-fix-popup-camera-calibration-t3987251
Enviado desde mi Mi 9T mediante Tapatalk

[HELP] extracttarfork() process ended with error=255 - when i restore data via TWRP

Hi everyone, I have problems recovering data with TWRP - "extracttarfork() process ended with error=255"
How to fix it?
i worked on TWRP v3.3.1-4 Miui.gr version
I got the same problem... I did't find the solution. Can someone help ?
k1n9n0th1n9 said:
Hi everyone, I have problems recovering data with TWRP - "extracttarfork() process ended with error=255"
How to fix it?
i worked on TWRP v3.3.1-4 Miui.gr version
Click to expand...
Click to collapse
I had it too with many devices.
It really depends, some times, the TWRP can't access the partition it want to write. Other times, one file of the backup is corrupted (so it halt).
Try to change TWRP, mount the system partition and check. If it don't work.. i would say that you wont be able to fix with that backup in particular.
Try to make a new backup too, and restore from it to see if with the new backup, the problem persist.
Pupet_Master said:
I had it too with many devices.
It really depends, some times, the TWRP can't access the partition it want to write. Other times, one file of the backup is corrupted (so it halt).
Try to change TWRP, mount the system partition and check. If it don't work.. i would say that you wont be able to fix with that backup in particular.
Try to make a new backup too, and restore from it to see if with the new backup, the problem persist.
Click to expand...
Click to collapse
hi, I had this, try doing the partitions separate, I did data afterwards following a reboot.
Try OrangeFox-R10.0_8-Stable-davinci recovery.
flamedrops said:
Try OrangeFox-R10.0_8-Stable-davinci recovery.
Click to expand...
Click to collapse
Orange fox atm is the worse and most buggy recovery for K20
Pupet_Master said:
Orange fox atm is the worse and most buggy recovery for K20
Click to expand...
Click to collapse
even the latest one?
flamedrops said:
even the latest one?
Click to expand...
Click to collapse
Yeap, it is still in it's infancy, where other TWRPs solved some issues that even the latest OF still has
I have just made a new backup after restore from Titanium Backup, but after flash new firmware and test some new roms, some of apps were crushing after restore and must be installed and configured one again.

Re-lock bootloader and anti roll back!

Hi, at the moment i'm on pixel experience and i wanted to go back to stock rom. I've read that if i use a fastboot rom of a previous version when i started to mod and lock bootloader with miflash i may cause a brick! It is true? How could I back to stock rom (11.0.3 EEA) and locking bootloader without risk? Thanks
Frankzafò said:
Hi, at the moment i'm on pixel experience and i wanted to go back to stock rom. I've read that if i use a fastboot rom of a previous version when i started to mod and lock bootloader with miflash i may cause a brick! It is true? How could I back to stock rom (11.0.3 EEA) and locking bootloader without risk? Thanks
Click to expand...
Click to collapse
Not needed
Benfatica said:
I have done this before and this is what I did, I booted into recovery format data reboot into recovery wipe everything, and then I flash a miui android 9 ROM, example I use miuimix 11.0.3 you can find it in Rom section forum after that I reboot into recovery again and then format data, reboot into recovery again wipe everything, power of device, boot into fastboot mode and then flash the miui 10.3.15 EEA fastboot ROM via mi flash tool, because there isn't any fastboot ROM for 11.0.3 EEA. If anyone knows an easy way to this you can say it but for the mean time this is the only method I use to avoid bricking my device or triggering that anti roll back thing.
Click to expand...
Click to collapse
When you flashed your fastboot (13.3.15 EEA) with miflash you selected clean all and lock or clean all? I also had 11.0.3 when i modded my phone!
Frankzafò said:
When you flashed your fastboot (13.3.15 EEA) with miflash you selected clean all and lock or clean all? I also had 11.0.3 when i modded my phone!
Click to expand...
Click to collapse
Not needed
Benfatica said:
I have done this before and this is what I did, I booted into recovery format data reboot into recovery wipe everything, and then I flash a miui android 9 ROM, example I use miuimix 11.0.3 you can find it in Rom section forum after that I reboot into recovery again and then format data, reboot into recovery again wipe everything, power of device, boot into fastboot mode and then flash the miui 10.3.15 EEA fastboot ROM via mi flash tool, because there isn't any fastboot ROM for 11.0.3 EEA. If anyone knows an easy way to this you can say it but for the mean time this is the only method I use to avoid bricking my device or triggering that anti roll back thing.
Click to expand...
Click to collapse
Uhmm... What about NOT wiping persist?
Benfatica said:
You can select clean all if you don't want to relock your bootloader or clean all and lock if you want to lock it.
Click to expand...
Click to collapse
Could I risk brick if i lock bootloader?
Frankzafò said:
Could I risk brick if i lock bootloader?
Click to expand...
Click to collapse
No if you follow the steps I gave you, it should be fine
---------- Post added at 11:26 PM ---------- Previous post was at 11:24 PM ----------
Windroid-user said:
Uhmm... What about NOT wiping persist?
Click to expand...
Click to collapse
I didn't tell him to wipe persist, and even the persist partition is mounted for you to wipe it.
Benfatica said:
I didn't tell him to wipe persist, and even the persist partition is mounted for you to wipe it.
Click to expand...
Click to collapse
When you say "wipe everything" you mean there's an option which says "wipe everything"? Sorry if this may be obvious when actually following the steps as I am still on stock with locked bootloader.
Windroid-user said:
When you say "wipe everything" you mean there's an option which says "wipe everything"? Sorry if this may be obvious when actually following the steps as I am still on stock with locked bootloader.
Click to expand...
Click to collapse
I meant if you have twrp, and you go to wipe, advance wipe, you wipe everything there. Apart from usb otg ( that is if you have one inserted) then you don't wipe it. And if someone says wipe everything and you know what you are doing you should understand fairly easy.
Benfatica said:
I meant if you have twrp, and you go to wipe, advance wipe, you wipe everything there. Apart from usb otg ( that is if you have one inserted) then you don't wipe it. And if someone says wipe everything and you know what you are doing you should understand fairly easy.
Click to expand...
Click to collapse
Must I wipe everything? If i don't wipe i could brick my phone?
Frankzafò said:
Must I wipe everything? If i don't wipe i could brick my phone?
Click to expand...
Click to collapse
No if don't wipe everything it won't brick your phone, but that's is how I do it and I doesn't anything to the phone.
Benfatica said:
No if don't wipe everything it won't brick your phone, but that's is how I do it and I doesn't anything to the phone.
Click to expand...
Click to collapse
Nice, thanks for the help!
Benfatica said:
I meant if you have twrp, and you go to wipe, advance wipe, you wipe everything there. Apart from usb otg ( that is if you have one inserted) then you don't wipe it. And if someone says wipe everything and you know what you are doing you should understand fairly easy.
Click to expand...
Click to collapse
So persist is not located in that section to wipe?
My two previous phones were a galaxy note 4 and Xperia Z3 so I am not sure how they incorporated these partitions such as persist and vendor into twrp.
This has gone on longer than I expected, sorry about that. I will search for a screenshot or something to see for myself.
Edit: okay I believe you meant persist isn't mounted for you to wipe it.
Benfatica said:
No if don't wipe everything it won't brick your phone, but that's is how I do it and I doesn't anything to the phone.
Click to expand...
Click to collapse
When did you flash MIUI 10 on your mi 9t on my flash did you selected clean all and lock? If not then you locked bootloader?
don't wipe anything else than data on the K20 via twrp oO
if u want to go back to stock MiUI u have to make sure, to follow 2 points
1. use a fastboot rom and flash via MiFlash and
2. make sure the ARB Status on your Phone is the same like the one on the MiUI fastboot rom ( should be on 1 )
the MiFlash software will wipe your phone for you (so the option "clean all" should be used/checked), so just boot into fastboot and let the software to the work.
that's how i went from the xiaomi.eu DEV Rom back to MIUI EAA stable Rom.
solved said:
don't wipe anything else than data on the K20 via twrp oO
if u want to go back to stock MiUI u have to make sure, to follow 2 points
1. use a fastboot rom and flash via MiFlash and
2. make sure the ARB Status on your Phone is the same like the one on the MiUI fastboot rom ( should be on 1 )
the MiFlash software will wipe your phone for you (so the option "clean all" should be used/checked), so just boot into fastboot and let the software to the work.
that's how i went from the xiaomi.eu DEV Rom back to MIUI EAA stable Rom.
Click to expand...
Click to collapse
My Arb Is 1 while the arb of the fastboot rom Is 0
Like i said, please stick to a full fastboot rom. If u are using a Mi 9T and want to go to EAA use the V10.3.15.0.PFJEUXM , for Global V11.0.1.0.PFJMIXM.
Those ROM's are on Anti 1, for the update on to a newer Version, just simply use the OTA after u flashed those files. U can find those files here:
https://xiaomifirmwareupdater.com/miui/
( u can filter the list .. search tab .. for fastboot and then just look for the Mi 9T )

Categories

Resources