Can't mount any partition to wipe with twrp 3.3.0-0 data/system/cache/dalvik - Xiaomi Redmi 4a Questions & Answers

I come from stock miui 10.0.2.0 unlocked bootloader and debug feature on, I flash the recovery via fastboot, then, I boot trough fastboot to to make recovery persistent, then when I reboot the phone it get stuck at miui logo, but I can enter in to the recovery I flashed before.
The problem apears when I try to wipe any partition, it says that can't mount any of them so is imposible to flash anything.
I can flash trough MiFlash tool to get back to stable MIUI without any trouble.
I readed many post about this problem and as far i can figure, its a SElinux or crypto problem.
Any idea of how can I solve this?.
Regards.

Related

NEM L-21 Bootloop

After unlocking my bootloader on my NEM L-21 I installed TWRP too, it all worked fine and well and then I decided to flash a CM13 ROM, before doing that I wiped my cache and userdata, I tried flashing it but then it threw me errors about not being able to mount /cust, I decided to restart it and leave it for later but now after restarting I can't boot into my system.
It restarts by itself if I try booting into the system, booting into the erecovery is useless since it cant find a firmware for my phone to download, and whenever I try booting into TWRP it gets stuck on a screen with "Your device is booting now...".
Any ideas on how to access TWRP or possibly flash the stock rom? Fastboot refuses to do it.
PraiseTheFiddle said:
After unlocking my bootloader on my NEM L-21 I installed TWRP too, it all worked fine and well and then I decided to flash a CM13 ROM, before doing that I wiped my cache and userdata, I tried flashing it but then it threw me errors about not being able to mount /cust, I decided to restart it and leave it for later but now after restarting I can't boot into my system.
It restarts by itself if I try booting into the system, booting into the erecovery is useless since it cant find a firmware for my phone to download, and whenever I try booting into TWRP it gets stuck on a screen with "Your device is booting now...".
Any ideas on how to access TWRP or possibly flash the stock rom? Fastboot refuses to do it.
Click to expand...
Click to collapse
Download the official firmware. Extract it using "huawei update extractor". There u will find recovery. Put ur phone in bootloader mode, by volume - & power button. Flash the recovery. Put the dload folder in ur sdcard. Then by the three button procedure, flash it.

Stuck at "your device is booting..."

Hello,
i'm updated my P10 to EMUI 9 with Manual pie upgrade and after this i installed aosp.
Everything boots fine, but today i tried to Flash a new System gsi via fastboot and after reboot to twrp, wipe dalvik&cache, data something went wrong.
After reboot it boots automatically to recovery, and it Stuck on the bootscreen from twrp (used twrp_3.2.1-0_Oreo_V3.img)
After this i tryed to Flash the stock recovery, but after reboot from fastboot i see only:
Your device has been unlocked.........
....
Your device is booting now...
fastboot Shows:
PHONE Unlocked
FRP Unlocked
after this i tryed to Flash stock System, kernel, and recovery_ramdisk.
how can i Flash ramdisk to emui 9?
how can i Access erecovery or how can i Flash it?
mfg
bacardi
Flash stock recovery_ramdisk and reboot and press vol. up for 5/6 seconds and you'll enter into erecovery, after that do a factory reset.
One tip, never wipe data with twrp our you'll end in the same situation, always with stock recovery (you'll need back up your important data).
sfoot13 said:
Flash stock recovery_ramdisk and reboot and press vol. up for 5/6 seconds and you'll enter into erecovery, after that do a factory reset.
Click to expand...
Click to collapse
i tryed to Flash these stock images (System, kernel, and recovery_ramdisk)
when i flash stock recovery image it stuck on "Your device is booting now..." if i flash twrp it stuck on boot screen with twrp logo.
I drained the battery over night but no change.
Solved:
fastboot -w helped me to solve the Problem.
You must use A/B variant instead of the old A variant.

Stuck on fastboot mode everytime i try a Rom

I'm getting stuck on fastboot mode everytime i flash derpfest rom , i've tried ''fastboot reboot'' i've tried to install ''twrp'' or boot to it , nothing works everything i try takes me back to the fastboot logo although the install of the rom was succesfull , i've tried with TWRP-3.3.1-8-siankatabg and also with regular TWRP and also with ORANGE FOX recovery , i'm on miui 11.0.7 EU version , can anyone help me
In TWRP, format data and then flash derpfest ROM. Take note that your data will be wiped though.
sangbuana said:
In TWRP, format data and then flash derpfest ROM. Take note that your data will be wiped though.
Click to expand...
Click to collapse
I did just that I placed the ROM in /tmp/ using TWRP file manager then I formated system and cash and data and then I did the data format by writing "Yes" then went back and erased everything a second time for good measure but still after flashing the ROM I get stuck on fastboot with no ability to boot to recovery or use commands like "fastboot reboot" the only solution for me that time is to reuse mi flash to flash stock rom which doesn't work but lets me boot into recovery which i use to flash miui 11.0.7 zip which apparently works just fine .
Also the basics are covered I made sure to allow usb debuging and update TWRP and all of that
1. flash using miflash
2.setup ur phone
3.enable dev optmake sure oem unlock too
4.going for twrp
5. wipe
6. flash ur rom
7.dont go reboot to system
8.format data then rebot to system
In case nothing else helps you can try to flash vbmeta first, following these instructions.
Cheers
Toscha

Cannot boot into recovery (TWRP)

As the title suggest, I fail to boot into TWRP.
I have unlocked the phone and flashed TWRP (https://dl.twrp.me/raphael/twrp-3.3.1-0-raphael.img).
I could boot into TWRP using Power + Volume Up , wiped everything (except vendor) and pushed a custom rom to the internal storage.
I restarted the phone for some reason and cannot boot into TWRP anymore. Whatever I do, I end up in fastboot. Tried to flash various versions of TWRP with the same result.
Can you guys help me out?
Edit: I flashed the corresponding Xiaomi fastboot image and repeated the process, same problem.
Edit: Solved by repeating again.
flel said:
As the title suggest, I fail to boot into TWRP.
I have unlocked the phone and flashed TWRP (https://dl.twrp.me/raphael/twrp-3.3.1-0-raphael.img).
I could boot into TWRP using Power + Volume Up , wiped everything (except vendor) and pushed a custom rom to the internal storage.
I restarted the phone for some reason and cannot boot into TWRP anymore. Whatever I do, I end up in fastboot. Tried to flash various versions of TWRP with the same result.
Can you guys help me out?
Edit: I flashed the corresponding Xiaomi fastboot image and repeated the process, same problem.
Edit: Solved by repeating again.
Click to expand...
Click to collapse
In future, don't wipe everything. You should only need to do the factory reset in TWRP, which will automatically wipe data, cache and dakvik. If you are flashing over MIUI then you will also need to format data.
There is almost never any need to wipe anything else in TWRP when doing normal custom ROM flashing.

My k20 pro isnt booting up

I tried installing custom rom for the first time now i did it with xiaomitool but it gave error that it couldnt wipe data and my phone stuck on boot.
Then on my phone i booted to twrp and frm there i wiped dalvik cache and data with a wrappedkey error but i continued and flashed pixel exp plus and formatted data and when i rebooted system i again got stuck there
Then once again i went to twrp and tried wiping dalvik cache and data again but this time with wrappedkey amd some decrypted error to and formated data and then tried rebooting to system. Again nothing worked pls help my otherwose my parents are going to kill me
EDIT : Also my laptop has mac os so i think there isnt much i could do with pc and thats only why i used unofficial xiaomitool in the first place
If youre coming from xiaomi rom or xiaomi eu rom you need to format data ( option in twrp where you type yes) not just wipe data, then reboot to recovery (twrp) again and then follow instruction of rom you want to install. Some custom roms require flashing vendor firmware before flashing rom , then gapps , then magisk if you require root ( if magisk wont install then after flashing rom reboot to twrp again). Also xiaomitool is not ideal for installing custom rom but for recovery and fastboot roms ( one that came originally with phone when phone had locked bootloader, never tick wipe and lock)
Disregard my comment about xiaomitool, had thoght that you mean miflash tool
But how
That rom is not in my phone anymore nor i know how to install back to xiaomi rom btw my phone is indian varient
UPDATE
I once again tried flashing pixl exp plus using a diff tutorial which included flashing some disable force encryption and now my device wont even boot into twrp its stuck on fastboot mode.
Now i only hot two question :
1.) will i be able to charge my phone in fastboot mode (or any other way?)
2.) will i be able to flash stock miui rom in fastboot mode through my mac (or if theres any other way pls tell me)
Yes you will be able to charge through fastboot
Just flash twrp again thn boot into twrp and go to wipe - format data and type yes.
Until and unless you format data you will not be able to do anything
Thn download Indian vendor zip ,your required rom and disableforceencryption.zip in your pc and copy it to the phone while in twrp.
Go to wipe and wipe cache ,dalvik ,data,system,vendor
Thn flash vendor zip followed by rom and dfe
Now reboot
device is jusr stuck on fastboot
Pronoy_ said:
Yes you will be able to charge through fastboot
Just flash twrp again thn boot into twrp and go to wipe - format data and type yes.
Until and unless you format data you will not be able to do anything
Thn download Indian vendor zip ,your required rom and disableforceencryption.zip in your pc and copy it to the phone while in twrp.
Go to wipe and wipe cache ,dalvik ,data,system,vendor
Thn flash vendor zip followed by rom and dfe
Now reboot
Click to expand...
Click to collapse
i did the sameexcept for vendor as i had latest miui but phone got stuck in fastboot and twrp is not accessible.
now what if i install official fastboot rom will it relock the bootloader and brick my phone for good?
ak20prouser said:
i did the sameexcept for vendor as i had latest miui but phone got stuck in fastboot and twrp is not accessible.
now what if i install official fastboot rom will it relock the bootloader and brick my phone for good?
Click to expand...
Click to collapse
Only if you forget to change the option in the Mi Flash Tool, which is easily done if you're not paying attention. If the fastboot ROM is the correct version for the phone then you won't brick the phone if you forget to change the flash option. You will just need to unlock the bootloader again before doing anything else.
After flashing a fastboot ROM, boot into MIUI once so that the install finalises itself.
Then flash TWRP and boot into TWRP.
Do a factory reset, then format data. No need to wipe anything else.
Reboot into TWRP to ensure the newly formatted data partition is properly mounted.
Now copy across and flash the ROM of choice plus any optional extras.
There is no need to flash dfe files or vbmeta, etc.
Assuming you've flashed the latest fastboot ROM, then there's no need to flash vendor or firmware files.
Just go through this post
Trust me it has solved all of my issues
http://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
Pronoy_ said:
Just go through this post
Trust me it has solved all of my issues
http://forum.xda-developers.com/k20-pro/how-to/simple-beginners-guide-to-raphaelin-t4020543
Click to expand...
Click to collapse
Hello Bro. I flashed the latest firmware and the evolution x rom but now my phone is stuck on the redmi logo. I am able to go back to recovery but what do I do now?

Categories

Resources