Wiping partitions - Xiaomi Mi 9 SE Questions & Answers

I have a Mi 9 se and i don't understand how the partitions work on this device (coming from mi 5) If i wipe system or cache or formate data from recovery after first flashing twrp it reboots into fastboot and i need to do a full rom flash again via mi flash tool. Can someone please explain to me what the go is?
Ok so after more attempts. Obviously you need to let it boot the rom before flashing twrp, but wiping system causes twrp not to boot still, can someone explain? thanks.
Thanks

System is where android is installed. If you wipe this it can't boot into android because it's not there so it boots into twrp instead. What are you trying to do?

briandarrel said:
System is where android is installed. If you wipe this it can't boot into android because it's not there so it boots into twrp instead. What are you trying to do?
Click to expand...
Click to collapse
I do realise that but wiping system shouldn't be an issue as the new rom will install the system right? The issue is that wiping system causes it to reboot to fastboot not recovery and i can't get into recovery again without reflashing the rom from mi flash and installing twrp again.

morgs640 said:
I do realise that but wiping system shouldn't be an issue as the new rom will install the system right? The issue is that wiping system causes it to reboot to fastboot not recovery and i can't get into recovery again without reflashing the rom from mi flash and installing twrp again.
Click to expand...
Click to collapse
That is odd, you can can flash the rom without wiping system though I think as the rom will overwrite system anyway

briandarrel said:
That is odd, you can can flash the rom without wiping system though I think as the rom will overwrite system anyway
Click to expand...
Click to collapse
Does it matter if system isn't wiped when moving between a MIUI based rom and an AOSP based rom?

@morgs640, it does: wipe is necessary. Some install-scripts contain a 'wipe system', otherwise you've to do it.

Related

[Q] Need help, i can only access twrp recovery mode

I was advised that i needed to update my recovery to twrp from cwm recovery to avoid an issue i got while flashing roms (the contents of my sd card would get pushed down into a subfolder of a newly created set of folders) however when i wiped my phone, as i always used to do with CWM twrp seems to have wiped a lot more, its wiped the existing rom, and all the files on my card, so i cant install a new rom. Basically i only have access to twrp recovery mode, how can i get the rom .zips onto my phone to install them? Id really appreciate any help at all, i had no issues flashing with CWM and i really dont know what to do.
download a rom/gapps and use adb to transfer them to your sdcard.. adb command "adb push file.zip /sdcard/file.zip"..
PS- in twrp wiping data wipes EVERYTHING so when you want to wipe before flashing a rom do a factory reset and DONT wipe data
Khizar said:
download a rom/gapps and use adb to transfer them to your sdcard.. adb command "adb push file.zip /sdcard/file.zip"..
PS- in twrp wiping data wipes EVERYTHING so when you want to wipe before flashing a rom do a factory reset and DONT wipe data
Click to expand...
Click to collapse
Thanks for your help, i found a similar problem on another site im halfway through it now, so when i flash roms in twrp i want to do a factory reset? wipe the cache and dalvik cache?
quirkles said:
Thanks for your help, i found a similar problem on another site im halfway through it now, so when i flash roms in twrp i want to do a factory reset? wipe the cache and dalvik cache?
Click to expand...
Click to collapse
this is how i flash roms..
1. factory reset
2. wipe system
3. wipe cahce
4. wipe dalvik
5. flash rom
6. flash gapps
7. flash AK kernel
8. reboot
9. wait 10 mins then do another reboot then enjoy :good:
quirkles said:
I was advised that i needed to update my recovery to twrp from cwm recovery to avoid an issue i got while flashing roms (the contents of my sd card would get pushed down into a subfolder of a newly created set of folders) however when i wiped my phone, as i always used to do with CWM twrp seems to have wiped a lot more, its wiped the existing rom, and all the files on my card, so i cant install a new rom. Basically i only have access to twrp recovery mode, how can i get the rom .zips onto my phone to install them? Id really appreciate any help at all, i had no issues flashing with CWM and i really dont know what to do.
Click to expand...
Click to collapse
You actually only had to update CWM to the latest version to fix that problem
EddyOS said:
You actually only had to update CWM to the latest version to fix that problem
Click to expand...
Click to collapse
eh, what's done is done, if it gives me any trouble ill switch back

[Q] HELP. HTC One X Stuck in bootloop. Almost all famous solutions tried out

So I wanted to go to Lollipop and I happened to flash the twrp recovery for new layout(as i was getting boot loop when flashing the rom with cwm recovery)
The things i tried until now.
1. Installed twrp and formatted it to get the new layout. Wiped everything, system, cache, data, dalvik cache
2. It was supporting MTP so i transferred the roms to the device being in recovery. Installed CM 12 + gapps for lollipop.
3. Rebooted to bootloader again. flashed boot.img, and did fastboot erase cache.
4. Rebooted again and stuck at CM boot logo.
I wiped the cache, dalvik cache(actually did a factory reset in the twrp recovery) and tried installing Resurrection Remix. Again flashed the relevant boot.img too. But the same result..
Did i destroy my phone?
anoopknayak said:
So I wanted to go to Lollipop and I happened to flash the twrp recovery for new layout(as i was getting boot loop when flashing the rom with cwm recovery)
The things i tried until now.
1. Installed twrp and formatted it to get the new layout. Wiped everything, system, cache, data, dalvik cache
2. It was supporting MTP so i transferred the roms to the device being in recovery. Installed CM 12 + gapps for lollipop.
3. Rebooted to bootloader again. flashed boot.img, and did fastboot erase cache.
4. Rebooted again and stuck at CM boot logo.
I wiped the cache, dalvik cache(actually did a factory reset in the twrp recovery) and tried installing Resurrection Remix. Again flashed the relevant boot.img too. But the same result..
Did i destroy my phone?
Click to expand...
Click to collapse
can you enter in recovery ?
wipe dalik,chace,chace,data then go to,mount select system,chace,data,2gb extra data ,and disabel mtp
if your phone dot show up just leave it on select partions to mount ,unplug cable then plug it back,go to device manager btw and see will it show there
dado323 said:
can you enter in recovery ?
wipe dalik,chace,chace,data then go to,mount select system,chace,data,2gb extra data ,and disabel mtp
if your phone dot show up just leave it on select partions to mount ,unplug cable then plug it back,go to device manager btw and see will it show there
Click to expand...
Click to collapse
Yes I can enter recovery. But again I just cant get any lollipop ROM's working. I dont know whether i have to restore to kitkat(i really dont want too..
I dont get it.. Wipe dalvik cache, cache, data and then disable mtp and then enable mtp.. I mean at the end what does this do?
And in the meanwhile did you mean HTC Sync Manager for device manager. FYI I use a mac(if this helps to get into the problem). And i had flashed kitkat roms from the same without a hiccup but lollipop is failing
anoopknayak said:
Yes I can enter recovery. But again I just cant get any lollipop ROM's working. I dont know whether i have to restore to kitkat(i really dont want too..
I dont get it.. Wipe dalvik cache, cache, data and then disable mtp and then enable mtp.. I mean at the end what does this do?
And in the meanwhile did you mean HTC Sync Manager for device manager. FYI I use a mac(if this helps to get into the problem). And i had flashed kitkat roms from the same without a hiccup but lollipop is failing
Click to expand...
Click to collapse
its hard to explain with recovery you can mount ur sdcard and put another room and install ,the easy way its to start from the begin and install clear CM12 and you will get out from bootloop that help me i was in bootloop like 3920489208420984920 times hahaha
anoopknayak
Have you solve the bootloop issue? I am having the same problem on my International One X
thanks
Probably both of you encountered the same problem as me.
If you are S-on, you have to flash rom and kernel separately. Also, if you try to revert any changes with twrp you have to flash kernel you were using during creation of backup, and then restore backup.
In other words: your current kernel is incompatible with rom.
Mwys
Yes i am S-ON. Can you tell me what the steps are to flash the kernel? I do not have a backup.
What is did was flash New Layout TWRP, did a complete wipe, then copied the ROM and G-Apps zips to the phone, installed them and then flashed boot.img.
Thanks for the help
Yup I also tried the same. but no luck. I tried to revert back to kitkat(by installing cwm, format the storage, sideloaded the ROM and gapps, flashed the boot.img) and still again in bootloop.
Sorry for the delay. I was a lot too busy with work.

SOLVED

Hello,
It sure has been a while since I've posted in this forums. I am having some trouble on my phone. Here's the story: I was on MIUI 7, but didn't like the way it was handling memory. It kept closing apps even when there were only 3 running, so I decided to restore a previous CM backup. So, I did that and rebooted the phone. It gave an error saying that "Encryption was interrupted", yet I have never encrypted my phone. Anyway, I decided to flash CM12 with a zip I had. Rebooted, and same problem occurred. Now, I'm trying to reboot phone into recovery, but whenever I do, the screen goes black and re-displays the teamwin logo, and just does that over and over. I tried flashing recovery through fastboot, but same problem. Is my phone savable? It should be, as it isn't hard-bricked. Any help is appreciated!
How do you solve this problem? When I flash CM12, the phone repeat reboot and can't enter recovery. At last I flash the Omini ROM.
Just flash stock rom
flash stock recovery.. go to wipe data and cache.. it will work.. if not try restoring partition with the stock recovery..
you can find stock recovery in oppo community
JackYao said:
How do you solve this problem? When I flash CM12, the phone repeat reboot and can't enter recovery. At last I flash the Omini ROM.
Click to expand...
Click to collapse
sydtek said:
flash stock rom.. go to wipe data and cache.. it will work.. if not try restoring partition with the stock recovery..
you can find stock recovery in oppo community
Click to expand...
Click to collapse
Thanks, I solved the stock recovery. And wipe data and cache, but still can't flash CM rom. At last, I flash the Omini rom. Problem is it often prompt me "Storage space running out".
Try flashing oppo's stock recovery
You can only instal oppo's rom (I.e. ColorOS) in that recovery.. First you have to flash TWRP recovery and then instal the CM rom.. This will work perfectly fine, but in some case like the above the rom would not boot into CM or whatever custom ROM.. In that case you have to instal OPPO's stock recovery to make it work..
And also the insufficient storage problem can be solved by OPPO's stock recovery by using partition - restore partition..
JackYao said:
Thanks, I solved the stock recovery. And wipe data and cache, but still can't flash CM rom. At last, I flash the Omini rom. Problem is it often prompt me "Storage space running out".
Click to expand...
Click to collapse

Flashing roms doesn't go past flashing "system"

Something is going on with my phone that doesn't let me flash anything. I was on CM14 with TWRP 3.0.2-22. I did an advanced wipe and I think I selected "system" there. I didn't really see it until I started the wipe. Now I can't boot into anything because I wiped the rom and am stuck without being able to flash anything.
Some things I tried:
When I flash the official CM14, it starts the flashing process, but doesn't get past that system flashing.
Flashing an OxygenOS-based rom (OP3Lite 2.4.2) got stuck on "extracting system."
Restoring a CM13 nandroid backup I had from before I installed CM14 finished restoring, but the phone won't boot into Android.
I ran out of ideas. How can I restore my phone?
I did an advanced wipe and I think I selected "system" there. I didn't really see it until I started the wipe.
Click to expand...
Click to collapse
That's fine, you need to wipe system to flash a new ROM.
When I flash the official CM14, it starts the flashing process, but doesn't get past that system flashing.
Flashing an OxygenOS-based rom (OP3Lite 2.4.2) got stuck on "extracting system."
Click to expand...
Click to collapse
How long does it stay stuck? Most ROMs take a lot of time in flashing system because it involves unpacking and flashing firmware. Depends on the installer, really.
Restoring a CM13 nandroid backup I had from before I installed CM14 finished restoring, but the phone won't boot into Android.
Click to expand...
Click to collapse
Can you remember if you also selected System partition when making backups? If you did, try restoring after wiping System, data and cache.
mharis05 said:
That's fine, you need to wipe system to flash a new ROM.
Click to expand...
Click to collapse
What I've to see?
Wiping /system on OnePlus 3 is unreccomended, since many ROMs need a OxygenOS base already installed.
If you wipe system, before flashing anything you've to restore OOS (both Stock and Community Edition are good).
If you forget that, you'll see a graceful Error 7
Simone98RC said:
What I've to see?
Wiping /system on OnePlus 3 is unreccomended, since many ROMs need a OxygenOS base already installed.
If you wipe system, before flashing anything you've to restore OOS (both Stock and Community Edition are good).
If you forget that, you'll see a graceful Error 7
Click to expand...
Click to collapse
That is wrong in any form. There is no rom that needs oos system to be present before flashing. And its not recommended to (dirty flash over a stock rom when switching to a custom rom)
---------- Post added at 02:19 AM ---------- Previous post was at 02:16 AM ----------
android_fury said:
Something is going on with my phone that doesn't let me flash anything. I was on CM14 with TWRP 3.0.2-22. I did an advanced wipe and I think I selected "system" there. I didn't really see it until I started the wipe. Now I can't boot into anything because I wiped the rom and am stuck without being able to flash anything.
Some things I tried:
When I flash the official CM14, it starts the flashing process, but doesn't get past that system flashing.
Flashing an OxygenOS-based rom (OP3Lite 2.4.2) got stuck on "extracting system."
Restoring a CM13 nandroid backup I had from before I installed CM14 finished restoring, but the phone won't boot into Android.
I ran out of ideas. How can I restore my phone?
Click to expand...
Click to collapse
Did you allow modifications in twrp ? Try to mount system in recovery before flashing / restoring
I ended up fixing it. I went to TWRP to do a regular wipe and saw the option to format partitions. I formatted system and it allowed me to reinstall roms. I flashed CM13 and CM14 with no issues. Thank you all for the suggestions.
Sent from my ONEPLUS A3000 using XDA-Developers mobile app

Unable To Properly Install Pure Nexus Nougat & Nandroid Not Working

Hi! I went into the latest TWRP recovery with unlocked bootloader, and I wiped system, cache, dalvik and data. Then I flashed the proper vendor image, the ROM zip, Gapps and then Elemental X kernel. However, when I reboot, it just boots me into TWRP recovery. I have tried wiping dalvik cache and cache. I then tried restoring a nandroid, but it just got stuck on the Google screen. Didn't even get to the colored dots screen. I ended up flashing factory image, but I would like to get my Nandroids working and this ROM. Please help! Thanks
I'm no expert but I think it might be happening because of encryption. Did you disable encryption before doing all this stuff?
Aman301582 said:
I'm no expert but I think it might be happening because of encryption. Did you disable encryption before doing all this stuff?
Click to expand...
Click to collapse
Encryption in stock Android? As far as I know, I can't turn it off. It says that the device is encrypted in settings. I think nougat forces encryption.
Unless maybe there's a patched kernel that can do that?
NateDev473 said:
Encryption in stock Android? As far as I know, I can't turn it off. It says that the device is encrypted in settings. I think nougat forces encryption.
Unless maybe there's a patched kernel that can do that?
Click to expand...
Click to collapse
I dont think is your problem , im encrypted and never have issues with twrp! Never!! What version of twrp you running? Theres an unofficial kicking around that is much better than official! Maybe you got a bad download! I would redownload all, find and download unofficial twrp 3.0.2.3 I believe. Let your phone boot before you flash custom kernel, thats always worked great for me. The latest official twrps 3022 and 3021 both have nandroid restore issues as well efs restore issues that could ruin your day
Format data and system (format, not wipe) and try installing it again. Should work
OK, thanks
neth15 said:
Format data and system (format, not wipe) and try installing it again. Should work
Click to expand...
Click to collapse
Only data and system? Not cache and dalvik like the purenexus install guide says?
NateDev473 said:
Only data and system? Not cache and dalvik like the purenexus install guide says?
Click to expand...
Click to collapse
Ofc wipe all partitions, but these two also format.
neth15 said:
Ofc wipe all partitions, but these two also format.
Click to expand...
Click to collapse
What's the difference between wipe and format? On TWRP there is only WIPE for all partitions, but a format data button.
NateDev473 said:
What's the difference between wipe and format?
Click to expand...
Click to collapse
Wipe just deletes all data on the partition. Format makes the partition again, therefore it removes encryption, repairs potential problems etc. Format data has dedicated button in TWRP, for formatting System go to Advanced Wipe, check system, tap on Partition details, check EXT4 and perform format.
neth15 said:
Wipe just deletes all data on the partition. Format makes the partition again, therefore it removes encryption, repairs potential problems etc. Format data has dedicated button in TWRP, for formatting System go to Advanced Wipe, check system, tap on Partition details, check EXT4 and perform format.
Click to expand...
Click to collapse
There is no Partition details button. Just fix partition or something like that.
NateDev473 said:
There is no Partition details button. Just fix partition or something like that.
Click to expand...
Click to collapse
Repair or Change filesystem? Yeah, it should be that.
neth15 said:
Repair or Change filesystem? Yeah, it should be that.
Click to expand...
Click to collapse
OK, I will do that. Thanks Just to clarify, I format data and system, and wipe cache and dalvik?
A Thought
Dunno if this will help, but whenever I flash a ROM/kernel combo, I always flash the ROM/gapps, boot up with whatever kernel is included in ROM to make sure it boots properly, and then after successful boot flash EX kernel through TWRP.
OK, so I formatted DATA and SYSTEM, and I wiped CACHE and DALVIK. I then flashed the proper vendor image, pushing it to the device with adb push, and then adb sideload for the pure nexus ROM. It's currently installing. Then, I will adb sideload the gapps ZIP file. Then I'll reboot and see if it worked
EDIT: It just said "No OS installed"
EDIT 2: Just flashed the ROM again, and it is showing the boot animation. This time I did not do Gapps. I also wiped and formatted everything again. Hope all goes well.
EDIT 3: The ROM booted fine. Glad all is working now
NateDev473 said:
OK, so I formatted DATA and SYSTEM, and I wiped CACHE and DALVIK. I then flashed the proper vendor image, pushing it to the device with adb push, and then adb sideload for the pure nexus ROM. It's currently installing. Then, I will adb sideload the gapps ZIP file. Then I'll reboot and see if it worked
EDIT: It just said "No OS installed"
EDIT 2: Just flashed the ROM again, and it is showing the boot animation. This time I did not do Gapps. I also wiped and formatted everything again. Hope all goes well.
EDIT 3: The ROM booted fine. Glad all is working now
Click to expand...
Click to collapse
Good job You're welcome
neth15 said:
Good job You're welcome
Click to expand...
Click to collapse
So I had flashed the ROM with no Google Apps or anything, just the ROM. But when I add a Google Account, I can't because it says Google Play Services has stopped. I just noticed that the build number is one of a Nexus 6P, and the vendor image is different, the one I manually flashed.

Categories

Resources