Wipe /system causes hardbrick - Xiaomi Mi 5 Questions & Answers

At TWRP, whenever I wipe /system, my phone doesn't boot or enter in fastboot. I'm in lineageOS and
I think I have a memory leak, so I want to install the rom with a clean install, but like I said, I can not erase the /system. What should I do?

It doesn't matter if it boots or not, just go to twrp and flash the rom. Btw you don't need to wipe /system for a clean install. Wiping data, cache, dalvik-art is enough.

Related

[Q] About Wiping before installing a new ROM

HI,
I want to know before moving to any new Rom in general... what shoupd be cleaned or wiped?
apart from factory reset and wipe cache partition.
Wipe Dalvik cache,
Format Boot
System
data and cache is required??????
and how important is it if i do wipe???
THX
vstrtz said:
HI,
I want to know before moving to any new Rom in general... what shoupd be cleaned or wiped?
apart from factory reset and wipe cache partition.
Wipe Dalvik cache,
Format Boot
System
data and cache is required??????
and how important is it if i do wipe???
THX
Click to expand...
Click to collapse
If you're installing a new rom, ALWAYS do da factory reset, wipe dalvik cache and cache partition!
On the other hand, if you only want to install an "update" (new version) of the SAME ROM you already installed (MIUI for example), you don't need to do factory reset, wipe cache and dalvik cache is enough, copy and flash the updated rom and enjoy in the new version with all your data/apps/messages etc. there!
ChaosLord88 said:
If you're installing a new rom, ALWAYS do da factory reset, wipe dalvik cache and cache partition!
On the other hand, if you only want to install an "update" (new version) of the SAME ROM you already installed (MIUI for example), you don't need to do factory reset, wipe cache and dalvik cache is enough, copy and flash the updated rom and enjoy in the new version with all your data/apps/messages etc. there!
Click to expand...
Click to collapse
can u tell me what is stored in Dalvik cache?
if you're on stock roms, then going to cm/miui, do this:
go Recovery
-wipe dalvik cache
-wipe cache
-wipe data
-install the rom
-then it will reboot automatically(or after installation, reboot) then it will bootloop
-remove battery and put it back in, then do 3 button combo (recovery mode)
then install the rom again,
-optionally install kernels, etc
-reboot.
or if you're coming from a same rom, but new version, you don't have to wipe, just install the new version of rom.
I would recommend to never format boot, if not done correctly it may brick your phone.
Read about it here:
http://www.addictivetips.com/mobile...-and-how-to-use-it-on-android-complete-guide/
Clause 7.B
Hi, I'm using nitrogen OS on my Redmi note 3. It got updated to 8.1.0(Oreo) through flashing from 8.0.0(Oreo). While doing so I didn't clear the necessary cache like dalvik, system in TWRP. Is it necessary to clear the cache in TWRP while upgrading in the android version?(Though I'm using same AOSP based nitrogen os for 8.0.0 & 8.1.0)

[Q] Problem with flashing roms and partitions/mounting...

After I flash a rom, when i try boot into TWRP it asks for a password and refuses to mount any partitions unless i wipe data in there, and then wipe the other partitions in CWM... I have no idea what to do as this is pretty much stuffing everything up.
Edit: It's always the /data partition that need to be wiped...

Formating /system

Just wanted to know what happens when you format /system and /preload partitions.
Suppose you format /system from recovery. Can you boot into you ROM after that? Or is that where the ROM was?
dark_polok said:
Just wanted to know what happens when you format /system and /preload partitions.
Suppose you format /system from recovery. Can you boot into you ROM after that? Or is that where the ROM was?
Click to expand...
Click to collapse
If you format /system in recovery you blow away the ROM, definitely cannot boot after that. If you format /data as well, the only way you'll be able to recover is with an ADB sideload.
you_eeeeeediot said:
If you format /system in recovery you blow away the ROM, definitely cannot boot after that. If you format /data as well, the only way you'll be able to recover is with an ADB sideload.
Click to expand...
Click to collapse
Thanks.
What if I format /system + /data + cache and dalvik chache and then flash a custom rom right after that, without rebooting the phone in any way [meaning not rebooting into system or bootloader or recovery] that should be ok right? Coz I came from a S3 and that combination worked perfectly for it.
Also still have no idea what the /preload partition and formatting it does.
That's what I do when I update within a rom.
Wipe system, cache, dalvik. Flash rom, then wipe cache/dalvik again.
Just a habit after all the different recommendations from previous devs in the past.
dark_polok said:
Thanks.
What if I format /system + /data + cache and dalvik chache and then flash a custom rom right after that, without rebooting the phone in any way [meaning not rebooting into system or bootloader or recovery] that should be ok right? Coz I came from a S3 and that combination worked perfectly for it.
Also still have no idea what the /preload partition and formatting it does.
Click to expand...
Click to collapse
Yes you can wipe /system, /data and /cache and you're good to flash a ROM, no need to reboot back into recovery again. Dalvik-cache is located on /data, so no need to wipe dalvik when you're wiping data, it's redundant. There is no need to worry about wiping or formatting /preload in almost all situations, otherwise the ROM devs would be telling us to do it. Back in my Galaxy s3 days I remember some ROMs would wipe and flash /preload but I don't think it's a big deal on the One. If it needs to be done, the ROM installation script will handle it.
Most ROM installation scripts wipe /system so it usually isn't necessary to do it yourself. However I do it anyway just to insure a completely clean installation in case the dev's script is messed up (it does happen). Wiping /data is optional of course but it is recommended when changing the base version (for example, 4.1.2 to 4.2.2) or if you're anal like me you can wipe data when upgrading between HTC base versions (2.17 to 2.24 for instance). Some people don't ever wipe /data and don't have any problems, but I can guarantee many of the weird odd-ball issues on this forum could have been prevented with a full wipe.
erikikaz said:
That's what I do when I update within a rom.
Wipe system, cache, dalvik. Flash rom, then wipe cache/dalvik again.
Just a habit after all the different recommendations from previous devs in the past.
Click to expand...
Click to collapse
henrybravo said:
Yes you can wipe /system, /data and /cache and you're good to flash a ROM, no need to reboot back into recovery again. Dalvik-cache is located on /data, so no need to wipe dalvik when you're wiping data, it's redundant. There is no need to worry about wiping or formatting /preload in almost all situations, otherwise the ROM devs would be telling us to do it. Back in my Galaxy s3 days I remember some ROMs would wipe and flash /preload but I don't think it's a big deal on the One. If it needs to be done, the ROM installation script will handle it.
Most ROM installation scripts wipe /system so it usually isn't necessary to do it yourself. However I do it anyway just to insure a completely clean installation in case the dev's script is messed up (it does happen). Wiping /data is optional of course but it is recommended when changing the base version (for example, 4.1.2 to 4.2.2) or if you're anal like me you can wipe data when upgrading between HTC base versions (2.17 to 2.24 for instance). Some people don't ever wipe /data and don't have any problems, but I can guarantee many of the weird odd-ball issues on this forum could have been prevented with a full wipe.
Click to expand...
Click to collapse
Very helpful replies guys. Thanks =}

Encryption and Kernel flash fails

Hi guys,
Forgive me If this is a repetitive post, i promise i tried searching.
When i installed nougat i accidentally encrypted the phone, and it asks me for an encryption pin whenever I boot in. I don't mind this but flashing a new kernel always puts the phone into an infinite boot. I have to dirty flash the installed rom in order to restore the kernel without losing my data. Is there any way to decrypt the device so i can flash a custom kernel? Or have i got the entire thing wrong? I can't seem to find a decrypt option and i don't want to flash MIUI so to remove encryption. I don't mind losing all the data but flashing a new rom doesn't seem to remove the encryption.
Thank you so much for reading this.
Kernel bootloop because you wipe dalvik and chace, whan you install the kernel just flash it without wipe anything.
if you want to remove encryption just backup your things on pc.
than go to TWRP wipe section:
FORMAT DATA and write "yes".... now you wont have encryption problems never again (NOTE: this wipes your internal storage)
AFTER:
go back to TWRP wipe section:
ADVANCED WIPE
select:
DALVIK
CACHE
DATA
SYSTEM
INTERNAL STORAGE
swipe to confirm!!! NOW YOU HAVE A CLEAN AND FRESH PHONE
while you still are in twrp connect your phone to pc and put in to it, rom and gapps.... flash those.
FINISHED

Lineage os 14.1 nougat 7.1.1 ROM storage issue

I'm having an with the phone storage. I have 12.74gb of system data which means I can only install an app without the storage error (some functions may work). I have factory reset, reinstalled the 14.1 ROM, formatted the /system partition, cleaned to install a new ROM, cleared both the cache and the dalvik cache, all in CWM. For some reason I think the 10.1 CM ROM I previously had is still on there, even after doing the above mentioned. Could anyone suggest some steps to resolve the issue please?
Install twrp recovery and Before flashing wipe data,cache,dalvikcache and flash zip file and then reboot

Categories

Resources