Reset whole partition lable - Xiaomi Mi 8 Questions & Answers

today while trying to install windows on my mi 8 with renegade project, i accidentally deleted all partitions of the phone with a diskpart command. Now my phone Is stuck in fastboot screen.
I tried to flash the stock rom with mi flash but mi flash can't find my phone.
The "fastboot flash recovery" command does not work because fastboot cannot find the partition.
I can only "fastboot boot".
Tried 3 different recoveries and fail to mount / data, / system, nothing. I can't flash a rom just because the recovery can't mount the partitions. So these were destroyed. Is there a way to restore them to the stock "point"?
Maybe in edl mode? But i don't know how to access it.

Related

[XT1053] Stuck at "bootloader unlocked" / recovery after flashing

I tried to flash back to recovery, but I used
HTML:
TMO_RETAIL_XT1053_5.1.0-LPAS23.12-15.5-1_CFC.xml
, which I'm pretty sure means I'm gonna have a bad time.
I can't flash the LPA23.12 because I get an error doing fastboot flash partition gpt.bin and it screws up my partitions.
I can flash twrp, but that doesn't help me much. I can get to stock recovery, but that doesn't help me much either.
Things I've tried:
Clearing cache/dalvik
Factory reset
Flashing OTA_XT1053_Rooted.zip with TWRP
Running all the fastboot commands for LPA-23.12-15.5-0
Running all the fastboot commands for LPAS-23.12-15.5-0
Restoring someone elses recovery
I have a Windows 10 VM on my Mac, and while fastboot on Windows sees the phone, I can't get it to show up in RDS Lite 2.6.4. Moto Device Manager and Drivers have been installed.
Any ideas? :crying:

MI9 can't boot and stucked in fastboot

Hello all.
Here is my problem
I successfully unlocked my bootloader and I flashed latest maunofrio twrp v35
In TWRP, I did a full wipe in TWRP and formatted data partition to remove encryption
But now, I can't boot again in twrp and I'm stucked in fastboot.
Vol UP + power does not boot in twrp but still in fastboot..
When I hit the command : fastboot flash recovery recovery.img, it says OK
But fastboot boot recovery.img no longer workos now, failed
( before wiping and formatting all it worked )
I don't know what to do now to access twrp..
Any help is very appreciated
Greetings
Try another recovery and if it failed try full flash latest stable rom
Well, I have been warning so many times that use any TWRP in MI9:
1. format data partition
2. reboot TWRP and then enter twrp. Make twrp mount data partition
3. wipe everything BUT please keep system partition only
4. reboot twrp and then enter twrp again
5. Now wipe system partition and then flash any rom you want
6. reboot
How to save your phone now ? Please try fastboot ROM and use miflash app to save your phone !
Kris
ManuBBXX said:
Hello all.
Here is my problem
I successfully unlocked my bootloader and I flashed latest maunofrio twrp v35
In TWRP, I did a full wipe in TWRP and formatted data partition to remove encryption
But now, I can't boot again in twrp and I'm stucked in fastboot.
Vol UP + power does not boot in twrp but still in fastboot..
When I hit the command : fastboot flash recovery recovery.img, it says OK
But fastboot boot recovery.img no longer workos now, failed
( before wiping and formatting all it worked )
I don't know what to do now to access twrp..
Any help is very appreciated
Greetings
Click to expand...
Click to collapse
@Kris Chen I am in similar situation here... Can you please help?
First of all - which TWRP should we use for Mi9T? IS this one good? https://mifirm.net/model/davinci.ttt#other-twrp
After flashing recovery-TWRP-3.3.1-0607-REDMI_K20-CN-wzsx150.img - fastboot boot twrp.img goes okay
And then after "fastboot boot twrp.img" the phone restarts and is just stuck on the "semitransparent" MI logo...
I can press Vol+- and power buttons and boot into Mi 3 recovery, wipe data, set up the phone again. And then it is all over again. I am new to this and probably making some basic mistake?
EDIT. I think the mistake was to trying to use a wrong TWRP...
Some questions here:
1. Is Redmi K20 CN the same as Mi9T?
If yes, that twrp is correct and the best one
2.After flashing twrp, can you enter twrp by general
method : power + volume up to enter twrp?
If yes, I think the problem is coming from your data
partition. Please format your data partition first and
then reboot to Twrp again. Then copy your rom in your
phone and then wipe cache/ dalvik cache/system. Next
to flash rom. Always Remeber not to reboot your
phone if you haven't flashed rom under twrp after
flashing system partition.
Kris
Ardysan said:
@Kris Chen I am in similar situation here... Can you please help?
First of all - which TWRP should we use for Mi9T? IS this one good? https://mifirm.net/model/davinci.ttt#other-twrp
After flashing recovery-TWRP-3.3.1-0607-REDMI_K20-CN-wzsx150.img - fastboot boot twrp.img goes okay
And then after "fastboot boot twrp.img" the phone restarts and is just stuck on the "semitransparent" MI logo...
I can press Vol+- and power buttons and boot into Mi 3 recovery, wipe data, set up the phone again. And then it is all over again. I am new to this and probably making some basic mistake?
EDIT. I think the mistake was to trying to use a wrong TWRP...
Click to expand...
Click to collapse
Thank you Kris!
Download the fastboot rom (Google it )then flash it with miflashtool just make sure the archive of the ROM is "tgz"before you unzip it .
Failykun said:
Download the fastboot rom (Google it )then flash it with miflashtool just make sure the archive of the ROM is "tgz"before you unzip it .
Click to expand...
Click to collapse
This is what I had to do both times this happened.
I have the same exact problem
I used the same TWRP and I also wiped system.
Did you fixed it already?
RebornCheiko said:
I have the same exact problem
I used the same TWRP and I also wiped system.
Did you fixed it already?
Click to expand...
Click to collapse
As i understand, you wiped system and then restarted? And now you can enter only fastboot?
When you wipe system you must flash a ROM without restart or after restart, only fastboot available. TWRP version has nothing to do with this.
Now you must use mi flash or adb and fastboot utility. Download fastboot version of ROM, then open archive and flash it using mi flash or flash_all.bat script. flash_all_lock.bat will also lock your bootloader and mi flash has that option too, so check twice what option you choose
After flashing ROM you can flash TWRP again and it will be available, because by flashing ROM you restored system
I had the same problem.
Try to flash vbmeta.img via fastboot (fastboot --disable-verity flash vbmeta vbmeta.img) and then flash recovery then boot recovery.
Or try to flash boot.img (fastboot flash boot boot.img) then flash recovery.
ManuBBXX said:
Hello all.
Here is my problem
I successfully unlocked my bootloader and I flashed latest maunofrio twrp v35
In TWRP, I did a full wipe in TWRP and formatted data partition to remove encryption
But now, I can't boot again in twrp and I'm stucked in fastboot.
Vol UP + power does not boot in twrp but still in fastboot..
When I hit the command : fastboot flash recovery recovery.img, it says OK
But fastboot boot recovery.img no longer workos now, failed
( before wiping and formatting all it worked )
I don't know what to do now to access twrp..
Any help is very appreciated
Greetings
Click to expand...
Click to collapse
I got you chief. Make sure you have adb and fastboot installed.
No you don't need Mi flash tool for this. All you need is a computer.
Go to fastboot mode, plug in your device and expand cepheus.tgz file you downloaded. Link below
https://xiaomifirmwareupdater.com/
Now open the folder. You have the flash_all files in there. Any .bat file is for Windows only. Any .sh files are for Mac and Linux.
Make sure the device is recognized in fastboot via cmd or terminal
WINDOWS ONLY: Open Command prompt and drag flash_all.bat into the cmd window and press enter
MAC/LINUX: Open terminal and drag flash_all.sh into the terminal window and press enter.
This part requires some patience. Wait until everything is finished.
Reboot using power button and it should be back to normal.

accidentally wiped complete device - what to do now?

after unlocking, falshind twrp and wipeing the complete device I can't do anything at all now.
I can boot in twrp or to fastboot but the device can't be found in either modes.
I tried to mount the sd card or MTP but they don't do anything either. Also tried to sideload onto the device but of course it doesn't work.
I'm all out of ideas what to do now. Anybody got some ideas what I could try?
Extract system from fastboot firmware and flash in fastboot with command fastboot flash system system.img after flashing system flash twrp and install rom or simply just flash fastboot firmware with Miflash
yes, thank you very much. this was the trick!
you get everything bacc up and running ok?

Xiaomi Mi 9t pro cannot boot into TWRP

I have a Mi 9t Pro and am stuck in fastboot mode. I am using ADB on MAC OS and do the following
1. ./fastboot flash recovery twrp.img
2. ./fastboot boot twrp.img
and get the following error:
Sending 'boot.img' (65536 KB) OKAY [ 1.614s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
I use the following TWRP:
twrp-3.3.1-32-raphael-raphaelin-mauronofrio.img
The output of the command './fastboot oem device-info' is:
(bootloader) Verity mode: true
(bootloader) Device unlocked: true
(bootloader) Device critical unlocked: true
(bootloader) Charger screen enabled: false
OKAY [ 0.006s]
Finished. Total time: 0.006s
Can someone help me to boot into TWRP? What am I doing wrong?
Do you really have unlocked bl?
wpron said:
I have a Mi 9t Pro and am stuck in fastboot mode. I am using ADB on MAC OS and do the following
1. ./fastboot flash recovery twrp.img
2. ./fastboot boot twrp.img
and get the following error:
Sending 'boot.img' (65536 KB) OKAY [ 1.614s]
Booting FAILED (remote: 'Failed to load/authenticate boot image: Load Error')
fastboot: error: Command failed
...
Can someone help me to boot into TWRP? What am I doing wrong?
Click to expand...
Click to collapse
Try the following instead
1. ./fastboot flash recovery twrp.img
2. ./fastboot reboot
Immediately after sending the second command, grab the phone and press and hold volume up. Keeping holding volume up until it boots into recovery.
Robbo.5000 said:
Try the following instead
1. ./fastboot flash recovery twrp.img
2. ./fastboot reboot
Immediately after sending the second command, grab the phone and press and hold volume up. Keeping holding volume up until it boots into recovery.
Click to expand...
Click to collapse
Doesn't work, still boots into fastboot.
I have no experience using macs but I have found this guide, not sure if you've gone through the steps, so please forgive if you have, hopefully it helps
https://droidfeats.com/setup-adb-on-mac/
wpron said:
Doesn't work, still boots into fastboot.
Click to expand...
Click to collapse
What happens if you send the
Code:
fastboot devices
command?
Robbo.5000 said:
What happens if you send the
Code:
fastboot devices
command?
Click to expand...
Click to collapse
I get:
d98183fc fastboot
wpron said:
What happens if you send the
I get:
d98183fc fastboot
Click to expand...
Click to collapse
Your Mac is communicating with the phone OK in fastboot mode.
No idea why you're struggling to install TWRP then.
Have you tried the procedure on Mauronifrio's OP, flashing the modified vbmeta patcher file?
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
I've never needed to do this, so couldn't say for certain if that would work or not.
Robbo.5000 said:
Your Mac is communicating with the phone OK in fastboot mode.
No idea why you're struggling to install TWRP then.
Have you tried the procedure on Mauronifrio's OP, flashing the modified vbmeta patcher file?
https://forum.xda-developers.com/k2...icial-twrp-xiaomi-redmi-t3944363/post79823568
I've never needed to do this, so couldn't say for certain if that would work or not.
Click to expand...
Click to collapse
I flashed the stock fastboot MIUIU ROM and repeated the two steps above after which I was able the boot into TWRP.
Now, after wiping cache, system, data and dalvik/ART cache I try to install the Havoc-os-v3.6 which leads to the following error:
ERROR: This package requires vendor from atleast V12.0.0.8.QFKMIXM. Please upgrade firmware and retry!
Update process ended with ERROR: 7
What did I do wrong this time?
wpron said:
I flashed the stock fastboot MIUIU ROM and repeated the two steps above after which I was able the boot into TWRP.
Now, after wiping cache, system, data and dalvik/ART cache I try to install the Havoc-os-v3.6 which leads to the following error:
ERROR: This package requires vendor from atleast V12.0.0.8.QFKMIXM. Please upgrade firmware and retry!
Update process ended with ERROR: 7
What did I do wrong this time?
Click to expand...
Click to collapse
Some ROMs, Havoc included, now check that you have the correct and latest firmware and vendor installed for your phone. For your phone the requirement is that the stable beta MIUI 12 global firmware and vendor files are installed.
You will find a link in the second post of the Havoc thread that has the correct firmware and vendor contained in a single zip file. You need to flash this zip file in TWRP before flashing the Havoc ROM.
Also, when flashing a custom ROM over MIUI you will need to format data in TWRP, to temporarily remove encryption. Follow this to install a custom ROM for the first time over stock MIUI.
Install TWRP
Boot into TWRP
Do a factory reset
Format data - Format not wipe, need to type yes to confirm
Reboot to recovery (TWRP)
Flash required firmware/vendor If needed
Flash custom ROM
Flash GApps if needed/wanted
Boot into the ROM
Everything should be good
Flash Magisk if required
Later, when you want to update the ROM, or flash a different custom ROM, it is recommended to remove lockscreen security before flashing.
Then restore lockscreen security again when finished.
Robbo.5000 said:
Some ROMs, Havoc included, now check that you have the correct and latest firmware and vendor installed for your phone. For your phone the requirement is that the stable beta MIUI 12 global firmware and vendor files are installed.
You will find a link in the second post of the Havoc thread that has the correct firmware and vendor contained in a single zip file. You need to flash this zip file in TWRP before flashing the Havoc ROM.
Can you send me the link to this zip file or thread please?
Also: When I try to reboot into recovery from TWRP, this boots me into fastboot again. Is this step really neccessary?
Click to expand...
Click to collapse
wpron said:
Can you send me the link to this zip file or thread please?
Click to expand...
Click to collapse
https://forum.xda-developers.com/k20-pro/development/rom-havoc-os-3-3-t4063081/post82237181
It's at the top, you want the file for Global/European/Russian
wpron said:
When I try to reboot into recovery from TWRP, this boots me into fastboot again. Is this step really neccessary?
Click to expand...
Click to collapse
Yes it's necessary, otherwise TWRP doesn't properly mount the data partition after formatting it.
Are you using the reboot menu in TWRP?
After formatting data, go back to the main main and then select the boot menu. From there choose boot to recovery.
One more thing.
If you're trying this after flashing a MIUI fastboot ROM, you must make sure you've booted into MIUI once, to finalise the installation, before you attempt to then flash something else.
Robbo.5000 said:
https://forum.xda-developers.com/k20-pro/development/rom-havoc-os-3-3-t4063081/post82237181
It's at the top, you want the file for Global/European/Russian
Yes it's necessary, otherwise TWRP doesn't properly mount the data partition after formatting it.
Are you using the reboot menu in TWRP?
After formatting data, go back to the main main and then select the boot menu. From there choose boot to recovery.
One more thing.
If you're trying this after flashing a MIUI fastboot ROM, you must make sure you've booted into MIUI once, to finalise the installation, before you attempt to then flash something else.
Click to expand...
Click to collapse
Yes, I formatted data successfully, but after I reboot into recovery, I get into fastboot mode.
Do I need to hold Volume up?
I always have to repeat flashing stock MIUI, unlock bootloader, boot into TWRP again which is tedious.
Is there no way to get into TWRP from fastboot and without flashing stock MIUI?
wpron said:
Yes, I formatted data successfully, but after I reboot into recovery, I get into fastboot mode.
Do I need to hold Volume up?
I always have to repeat flashing stock MIUI, unlock bootloader, boot into TWRP again which is tedious.
Is there no way to get into TWRP from fastboot and without flashing stock MIUI?
Click to expand...
Click to collapse
When flashing stock MIUI, change the flash option at the bottom of the Mi Flash Tool to 'clean all' before flashing. This will keep the bootloader unlocked.
After flashing MIUI you must boot into MIUI once, to finalise the installation, before trying to flash TWRP (or anything else)
Once you've flashed MIUI and booted into it at least once follow the steps in this post again.
https://forum.xda-developers.com/k20-pro/help/xiaomi-mi-9t-pro-boot-twrp-t4121037/post82900241
Do not add any extra steps, do not miss out any steps.
Do not be tempted to wipe any other partitions. Doing the factory reset in TWRP wipes all the necessary partitions.
After formatting data you do NOT need to hold volume up if you choose to reboot to recovery from TWRP
Robbo.5000 said:
When flashing stock MIUI, change the flash option at the bottom of the Mi Flash Tool to 'clean all' before flashing. This will keep the bootloader unlocked.
After flashing MIUI you must boot into MIUI once, to finalise the installation, before trying to flash TWRP (or anything else)
Once you've flashed MIUI and booted into it at least once follow the steps in this post again.
https://forum.xda-developers.com/k20-pro/help/xiaomi-mi-9t-pro-boot-twrp-t4121037/post82900241
Do not add any extra steps, do not miss out any steps.
Do not be tempted to wipe any other partitions. Doing the factory reset in TWRP wipes all the necessary partitions.
After formatting data you do NOT need to hold volume up if you choose to reboot to recovery from TWRP
Click to expand...
Click to collapse
In step 3, by "factory reset", do you mean wipe cache, dalkiv/ART cache and system or is this a different operation?
I think, I can only format data after I wipe cache, dalkiv/ART cache and system?
wpron said:
In step 3, by "factory reset", do you mean wipe cache, dalkiv/ART cache and system or is this a different operation?
I think, I can only format data after I wipe cache, dalkiv/ART cache and system?
Click to expand...
Click to collapse
I mean the swipe to do a factory reset, on the initial wipe menu. It is in the same place as the format data option. You do not need to go in to the advanced wipe option.
Robbo.5000 said:
I mean the swipe to do a factory reset, on the initial wipe menu. It is in the same place as the format data option. You do not need to go in to the advanced wipe option.
Click to expand...
Click to collapse
OK, I was able to reboot into TRRP with your instructions. Now, I cannot find the custom ROMs I previously moved to the device storage via Android File Transfer.
Have these files been removed by the factory reset, should I instead perform an advanced wipe of cache, dalkiv/ART cache and system?
How can I install the custom ROMS if they can not be found on the device after factory reset?
wpron said:
OK, I was able to reboot into TRRP with your instructions. Now, I cannot find the custom ROMs I previously moved to the device storage via Android File Transfer.
Have these files been removed by the factory reset, should I instead perform an advanced wipe of cache, dalkiv/ART cache and system?
How can I install the custom ROMS if they can not be found on the device after factory reset?
Click to expand...
Click to collapse
Formatting data will also wipe internal storage.
TWRP has MTP enabled, so you can access the phone storage from a PC (and I assume Mac) while booted into TWRP. You can also mount a USB OTG drive in TWRP.
Either copy them across from the Mac to the phone while booted in to TWRP after formatting data, or use a USB OTG pen drive for the ROM and other files to be flashed.
Robbo.5000 said:
Formatting data will also wipe internal storage.
TWRP has MTP enabled, so you can access the phone storage from a PC (and I assume Mac) while booted into TWRP. You can also mount a USB OTG drive in TWRP.
Either copy them across from the Mac to the phone while booted in to TWRP after formatting data, or use a USB OTG pen drive for the ROM and other files to be flashed.
Click to expand...
Click to collapse
Worked! I have now Havoc-OS on my Mi 9t pro. Thank you a lot for your help!

Problem with recovery / no such partition

After i erase recovery partition trough fastboot, now if i try to flash recovery twrp It says error no such partition.
Already try to flash stock with xiaomiflash and also Boot twrp and try to flash inside twrp but nothing
Anyone know how to solve?
Mancix said:
After i erase recovery partition trough fastboot, now if i try to flash recovery twrp It says error no such partition.
Already try to flash stock with xiaomiflash and also Boot twrp and try to flash inside twrp but nothing
Anyone know how to solve?
Click to expand...
Click to collapse
•when you flash stock rom they hash # out the line in the programmer .xml that tells miflash to flash to recovery partition. open the .xml and search for the line with "recovery" and change the "filename" line to include recovery.img
•you can also use the "repair" partition and advanced format option in twrp to repair it by booting it
fastboot boot recovery.img
•you can flash it in fastboot by
fastboot flashing unlock_critical
then manually flash the image in fastboot
fastboot flash recovery recovery.img
-are you sure you have Wayne ?
*Jasmine does not have a recovery partition and the recovery goes in the boot partition .........
MAKE SURE TO FLASH IN MIFLASH USING EDL
fastboot oem edl

Categories

Resources