Formating /system - One (M7) Q&A, Help & Troubleshooting

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 =}

Related

Wiping ext2 / ALT+W wipe.

Plan to do a little upgrade soon. So I wanted to know if this is the right way to wipe ext2 in the recovery console before I flash the new rom version. Once I wipe ext2, what differences will I notice once the new rom is flashed. I keep forgetting what the use for ext2 is. I've heard wiping every so often will keep performance high. Do I also do a wipe (ALT+W) before the flash since I already did a wipe on ext2?
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
Click to expand...
Click to collapse
flexnix said:
Plan to do a little upgrade soon. So I wanted to know if this is the right way to wipe ext2 in the recovery console before I flash the new rom version. Once I wipe ext2, what differences will I notice once the new rom is flashed. I keep forgetting what the use for ext2 is. I've heard wiping every so often will keep performance high. Do I also do a wipe (ALT+W) before the flash since I already did a wipe on ext2?
Click to expand...
Click to collapse
If you have apps2sd on your phone now, you will wipe those out when you wipe your ext2 partition so be prepared to reinstall all your apps. This is the major benefit of having an ext2 partition so I imagine that you created one for this purpose.
If this is the case, then losing all your apps with be the biggest thing you will notice. Also, if you are going to perform a factory wipe (alt w) then be prepared to lose all your data saved on the phone... (eg.. settings, contacts, texts, mms, etc)
If this is not your intention, you need to read more before......
Perfect. Thank you sir.
But you do need to do both regardless.

Full wipe between installing EMMC roms

I want to do a full wipe of all data when going from ROM to ROM installing to EMMC.
So far each time I install, some files are left over in one or other area.
I have yet to find a complete answer/quide on how to go about completely cleaning everything before installing a new ROM?
(Ideally the equivalent of formating and partitioning before installing Windows...)
At the moment I am cautious to try the WIPES and FACTORY RESET options in CWM as I have not found a solid answer as to what they do here.
(Is CWM the way to go here?)
Thanks for any help
There is utility like that for GTAB but didn't see one for NC
http://forum.xda-developers.com/showthread.php?t=974422
And in this post all the way down in OP:
http://forum.xda-developers.com/showthread.php?t=985705
Let me see if I understand this correctly, you're saying you manually format each partition under CWR and are sketched about using the factory reset function? Ive both wiped and flashed between various emmc based roms as well as EXT4 based roms to the (EXT2?) based roms without a problem. Each time I use the correct CWR and manually format /system, /data, and /cache. If i'm understanding your question correctly then I hope this helps. It may not be the fix you're looking for but it works.
stevencpoynter said:
Let me see if I understand this correctly, you're saying you manually format each partition under CWR and are sketched about using the factory reset function? Ive both wiped and flashed between various emmc based roms as well as EXT4 based roms to the (EXT2?) based roms without a problem. Each time I use the correct CWR and manually format /system, /data, and /cache. If i'm understanding your question correctly then I hope this helps. It may not be the fix you're looking for but it works.
Click to expand...
Click to collapse
yeah - thanks, i think that is pretty much what i am after.
What is the difference between factory reset/wipe and formating the system/data partitions?
Is there anything on the boot partition that might get left over?

can't convert /cache to ext4

I've tried numerous times to convert but it keeps saying "not enough space" when chainfire's ext4 add-on gets to /cache. The others were converted without any problems.
I currently use damians ginger kernel 2.2 beta 1.
As a workaround, I just tried to flash the latest speedmod to convert in cwm but this kernel caused a bootloop...
Do this things in Recovery mode:
- wipe cache
- wipe dalvik cache
- fix permissions
And if this does not work, I'd flash the ROM again with Odin, but this time with PIT-file (512) + Re-Partition ticked.
Sent from my GT-I9000 using XDA Premium App
Yes, I've tried to wipe cache and dalvik cache before. It did not work
In order to start the ext4 add-on, the phone has to be rebooted. Therefore, I guess cache and dalvik-cache get filled again...
I will, however, try again!
EDIT: didn't work! Seems that I will have to live without ext4 on /cache till I flash a JVQ rom...
GMH24 said:
Yes, I've tried to wipe cache and dalvik cache before. It did not work
In order to start the ext4 add-on, the phone has to be rebooted. Therefore, I guess cache and dalvik-cache get filled again...
I will, however, try again!
EDIT: didn't work! Seems that I will have to live without ext4 on /cache till I flash a JVQ rom...
Click to expand...
Click to collapse
Have a clean up of your sd card, clear old redundant roms etc
Insanity cm017/glitch v10c

[Q] Wipe issue

I've been learning to edit and make ROMs for couple of months, some of the early works had been uploaded to a Chinese Milestone developers' BBS.
But there is a simple question which still confused me a lot. (- =)
Some senior developers in that Chinese BBS reminded their supporters in their threads to wipe before and AFTER applying the Rom in Open Recovery. But, why should we wipe AFTER applying the Rom? I've viewed some threads here, but none of them require to wipe after applying.
So I wonder if it is really necessary to wipe AFTER applying a new ROM. I'm very appreciate if you guys can answer my question and tell me why. Thx~~~
BTW, Xda is an excellent website. And it's much more professional than the BBS I used to visit. May you have a nice day~
It's a common myth. I'm not sure why it gets repeated over and over again.
One wipe is enough. Dalvik-cache is not populated again until the system is booting for the first time. While you are in recovery, it also doesn't matter if you wipe before or after you apply the update (unless the updater script in some particular update.zip also installs something to /data or /cache partition, which is not very common).
You can read cvpcs's thoughts on this matter here: http://cvpcs.org/blog/2011-06-05/time_to_wipe_data/cache
kabaldan said:
It's a common myth. I'm not sure why it gets repeated over and over again.
One wipe is enough. Dalvik-cache is not populated again until the system is booting for the first time. While you are in recovery, it also doesn't matter if you wipe before or after you apply the update (unless the updater script in some particular update.zip also installs something to /data or /cache partition, which is not very common).
Click to expand...
Click to collapse
Thanks a lot~ (I'm looking for some threads which can explain how "wipe" works. Actually I still got some problem about that, like " Why system app still maintain after wipe? Is it because those system app has a backup in Flash Memory, and it will restore after wipe the EEPROM?")
(This message is only for testing whether it is reply to the original poster or the people who answer it....)
[E]Xtreme said:
Thanks a lot~ (I'm looking for some threads which can explain how "wipe" works. Actually I still got some problem about that, like " Why system app still maintain after wipe? Is it because those system app has a backup in Flash Memory, and it will restore after wipe the EEPROM?")
Click to expand...
Click to collapse
System apps are installed into a different partition (/system), which also holds the OS files. Wiping data and cache only wipes the /data and /cache partitions and leaves /system alone. Otherwise the phone wouldn't work at all.
Dave Lister said:
System apps are installed into a different partition (/system), which also holds the OS files. Wiping data and cache only wipes the /data and /cache partitions and leaves /system alone. Otherwise the phone wouldn't work at all.
Click to expand...
Click to collapse
Got it~ That's very kind of you.

Wipe /system causes hardbrick

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.

Categories

Resources