[HELP!] persist.img on wrong partition? - Redmi K20 / Xiaomi Mi 9T Questions & Answers

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

Related

Modemst1 and Modemst2 needed

Hello,
I've erased my modemst1 and modemst2 partitions for mistake, and now my redmi doesn't identify my SIM card. Can someone upload your backup, so I change it to my IMEI using any Hex Editor and flash it here. I already have G4's modemst1/2 but I'm not sure if they are all the same. If possible, send me your IMEI together, so it will be easier to find it using the hex editor.
Already tried flashing stock ROM and NON-HLOS.bin.
Flash stock rom via fastboot method... IT should work
plesan said:
Flash stock rom via fastboot method... IT should work
Click to expand...
Click to collapse
Already did... No luck. I've tried to restore a TWRP backup, but somehow there was no EFS option to select.. There was just Boot, Aboot, Data, System, ... I've selected everything that I could but it didn't work.. Still no IMEI. I'm gonna try to shell nvbackup via adb but my hopes are real
I've flashed using Miflash. Could you suggest a rom or another method?
I can offer you all partition backup TWRP for Xiaomi RedMi2 ver.2014811
write me [email protected]
ozol said:
I can offer you all partition backup TWRP for Xiaomi RedMi2 ver.2014811
write me [email protected]
Click to expand...
Click to collapse
Hi buddy,
I'm really thankful for your help. I know some people on Xiaomi and they allowed me to send the mobile to the factory, they will fix it using the warranty. I've flashed the stock rom and the recovery as well. I hope they don't find out that I've flashed another rom before.
I'll get the mobile back in around 10 days. If they don't fix it so I'll need your help. I'll request here first and then by e-mail.
Thank you!

Bricked - Data Partition

I accidentally deleted the data partition. Everything else works fine including Recovery/Fastboot. Normally I'd be using the Mega Unbrick Guide to restore the partition, but not an option right now for the 5 (128GB). Assistance would be appreciated. Maybe flashing a userdata.img would work?
I'd recommend you to completely wipe and flash Stock OOS from here : https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003
That should sort all your problems related to partitioning. Let me know how it goes.
anmolkakkar said:
I'd recommend you to completely wipe and flash Stock OOS from here : https://forum.xda-developers.com/oneplus-5/how-to/official-oxygenos-4-5-2-7-1-1-ota-t3627003
That should sort all your problems related to partitioning. Let me know how it goes.
Click to expand...
Click to collapse
Already tried flashing the Full ROM earlier, but that doesn't fix the missing partition. Unless flashing with Stock Recovery would make a difference. Need a link to stock recovery to try that
Was looking into dumping partitions off a working OP5.
https://forum.xda-developers.com/showthread.php?t=2450045
Don't have a second OP5 (128GB) to dump partitions, but I did generate some .img files using this method. Optimally, flashing a proper userdata.img through fastboot should fix the partition, I believe.
aenews said:
I accidentally deleted the data partition. Everything else works fine including Recovery/Fastboot. Normally I'd be using the Mega Unbrick Guide to restore the partition, but not an option right now for the 5 (128GB). Assistance would be appreciated. Maybe flashing a userdata.img would work?
Click to expand...
Click to collapse
fastboot format userdata ?
Hastaloego said:
fastboot format userdata ?
Click to expand...
Click to collapse
The partition doesn't exist right now. It cannot be mounted or formatted. If someone could use the guide above and pull a userdata.img from a 128GB OP5, pretty sure that would restore the partition if I flash it in fastboot.
aenews said:
The partition doesn't exist right now. It cannot be mounted or formatted. If someone could use the guide above and pull a userdata.img from a 128GB OP5, pretty sure that would restore the partition if I flash it in fastboot.
Click to expand...
Click to collapse
Have you tried going into TWRP > Wipe> advance wipe > data >change or repair filesystem > change filesystem> ext4?
This should help.
You can also try restore the nandroid uploaded on my thread
Sent from Funk Tuned 3T
flame360 said:
Have you tried going into TWRP > Wipe> advance wipe > data >change or repair filesystem > change filesystem> ext4?
This should help.
Click to expand...
Click to collapse
Thanks that worked! And much simpler and faster. I didn't realize there was an easy way to repair the filesystem in TWRP (derp) but that's awesome.
Funk Wizard said:
You can also try restore the nandroid uploaded on my thread
Sent from Funk Tuned 3T
Click to expand...
Click to collapse
Thanks for the tip!
Also I *think* I was able to extract a userdata.img after I fixed the partition. In case that's ever needed in the future...
aenews said:
Thanks that worked! And much simpler and faster. I didn't realize there was an easy way to repair the filesystem in TWRP (derp) but that's awesome.
Thanks for the tip!
Also I *think* I was able to extract a userdata.img after I fixed the partition. In case that's ever needed in the future...
Click to expand...
Click to collapse
Welcome buddy
Funk Wizard said:
Welcome buddy
Click to expand...
Click to collapse
So I managed to do the same thing, but with my system partition. I can't figure out what img to flash to system or where to get it from. Can anyone help me please?
Also, first thing I did was attempt to repair the partition via TWRP but no dice on that...
electronicghandi said:
So I managed to do the same thing, but with my system partition. I can't figure out what img to flash to system or where to get it from. Can anyone help me please?
Also, first thing I did was attempt to repair the partition via TWRP but no dice on that...
Click to expand...
Click to collapse
try flashing the stock zip from twrp.
electronicghandi said:
So I managed to do the same thing, but with my system partition. I can't figure out what img to flash to system or where to get it from. Can anyone help me please?
Also, first thing I did was attempt to repair the partition via TWRP but no dice on that...
Click to expand...
Click to collapse
Restore the Nandroid
Sent from my OnePlus5 using XDA Labs
Worked for me to on a OnePlus 3
flame360 said:
Have you tried going into TWRP > Wipe> advance wipe > data >change or repair filesystem > change filesystem> ext4?
This should help.
Click to expand...
Click to collapse
That did it on my girlfriends OnePlus3 thank you very much!
aenews said:
Thanks that worked! And much simpler and faster. I didn't realize there was an easy way to repair the filesystem in TWRP (derp) but that's awesome.
Thanks for the tip!
Also I *think* I was able to extract a userdata.img after I fixed the partition. In case that's ever needed in the future...
Click to expand...
Click to collapse
Can you please share the userdata.img for 128gb and also fastboot image files for one plus 5t, my phone is dead please help

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

Find device storage corrupted mi 9t

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

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