Related
OK so every ROM that you want to move to requests (requires) that you wipe before you load the new ROM. That makes sense to me as you want a clean install.
My question is, what am I supposed to wipe (Sorry stupid question). I boot to recovery and I have a wipe menu and I have several options:
Wipe data/factory reset
Wipe Dalvik-cache
Wipe SD:ext partition
I have two more for wiping stats which I will make an educated guess are not required. Should I wipe everything listed above? Just dalvik cache?
heresy_fnord said:
OK so every ROM that you want to move to requests (requires) that you wipe before you load the new ROM. That makes sense to me as you want a clean install.
My question is, what am I supposed to wipe (Sorry stupid question). I boot to recovery and I have a wipe menu and I have several options:
Wipe data/factory reset
Wipe Dalvik-cache
Wipe SD:ext partition
I have two more for wiping stats which I will make an educated guess are not required. Should I wipe everything listed above? Just dalvik cache?
Click to expand...
Click to collapse
Wipe'm all.
comintern said:
Wipe'm all.
Click to expand...
Click to collapse
Thanks! Also figured out how to clear up a problem with wiping dalvik that I had by partitioning SD card again.
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.
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 =}
Hello.
first I want to apologize for my, sometimes, bad English!
Second, i want to apologize for my novice touch in this topic!
The story:
I've been using SweetRom for a while, but tonight i wanted to try another rom.
I loaded up SuperBean(not really relevant to this story) on a microSD.
Rebooted my phone into recovery
Philz Touch 5
I choose "Wipe Data/Factory Reset" and then "Clean to install a new rom"
Then i tried to "install zip"
"Choose zip from sdcard"
But then i get: E:Can't Mount /sdcard/
I've tried to format the sdcard, exfat, fat, fat32, ntsf but nothing worked, still the same error.
I can access the internal storage and i can boot into download.
I thought that maybe i'll try to install the newest Philz but when in download mode
my computer wont recognize my phone (i'm using Windows 8)
i'm stuck! please help me out!
I've searched everywhere for answers but i can't find any!
What are my options?
Boot into Philz recovery again and go to mounts and storage and mount USB. Then connect it to pc. Check if the any drive shows up. Then move the new rom to the internal storage.
Sent from my GT-I9500 using xda premium
nokiamodeln91 said:
Boot into Philz recovery again and go to mounts and storage and mount USB. Then connect it to pc. Check if the any drive shows up. Then move the new rom to the internal storage.
Sent from my GT-I9500 using xda premium
Click to expand...
Click to collapse
Thank you so much!
It took a while for my computer to find my phone, but it worked!
Cool. There's another way to express thanks.
There's is a thanks button and press it for the guy who helped you.
Sent from my GT-N7000 using xda premium
nokiamodeln91 said:
Boot into Philz recovery again and go to mounts and storage and mount USB. Then connect it to pc. Check if the any drive shows up. Then move the new rom to the internal storage.
Sent from my GT-I9500 using xda premium
Click to expand...
Click to collapse
what DOES the "clean to install a new rom" option do anyway?
explorer-10 said:
what DOES the "clean to install a new rom" option do anyway?
Click to expand...
Click to collapse
It does a full wipe. Basically it formats: cache, /system, /preload, /data
XxPixX said:
It does a full wipe. Basically it formats: cache, /system, /preload, /data
Click to expand...
Click to collapse
is /preload equivalent to /dalvik-cache? but then what's the point of format /data/factory restore if "clean to install new rom" is present?
No. It's different. Preload is a separate partition and dalvik-cache is in data partition.
The option you mentioned only exists in Philz recovery not in standard cwms
explorer-10 said:
what DOES the "clean to install a new rom" option do anyway?
Click to expand...
Click to collapse
XxPixX said:
It does a full wipe. Basically it formats: cache, /system, /preload, /data
Click to expand...
Click to collapse
explorer-10 said:
is /preload equivalent to /dalvik-cache? but then what's the point of format /data/factory restore if "clean to install new rom" is present?
Click to expand...
Click to collapse
nokiamodeln91 said:
No. It's different. Preload is a separate partition and dalvik-cache is in data partition.
The option you mentioned only exists in Philz recovery not in standard cwms
Click to expand...
Click to collapse
So, to be clear, is it necessary or advisable to do any of 'Wipe Data/Factory Reset', 'Wipe Cache Partition' and 'Wipe Dalvik Cache'? Or is 'Clean to Install a New ROM' merely an amalgam of the above (plus added formats?)?
Thanks
It's usually not necessary but it is ALWAYS advised to format /data /preload /system and cache before flashing a new ROM. If you don't do those wipes then you can sometimes end in a bootloop, random force closes, battery and performance issues et cetera. Basically if yoou want to flash a new ROM (unless it is an update to your current ROM) then always do a full wipe,
If you are just updating your ROM (ex. updating one nightly to another) then you just have to flash the ROM in recovery and wipe cache, dalvik cache (in advanced)
.
XxPixX said:
It's usually not necessary but it is ALWAYS advised to format /data /preload /system and cache before flashing a new ROM. If you don't do those wipes then you can sometimes end in a bootloop, random force closes, battery and performance issues et cetera. Basically if yoou want to flash a new ROM (unless it is an update to your current ROM) then always do a full wipe,
If you are just updating your ROM (ex. updating one nightly to another) then you just have to flash the ROM in recovery and wipe cache, dalvik cache (in advanced)
.
Click to expand...
Click to collapse
Thanks very much for that - much appreciated.
I've read elsewhere that many seem to recommend wiping cache and dalvik after they've flashed a ROM? Is this something you'd advise and, if so, why (or not!)?
Many thanks
largeruk said:
Thanks very much for that - much appreciated.
I've read elsewhere that many seem to recommend wiping cache and dalvik after they've flashed a ROM? Is this something you'd advise and, if so, why (or not!)?
Many thanks
Click to expand...
Click to collapse
If you're updating then yes, it's enough that you flash the ROM and then wipe cache and dalvik cache.
If you're reflashing from start then you should first do a full wipe, flash the ROM, gapps, su and that is all. No need to wipe the cache or dalvik cache again
XxPixX said:
If you're updating then yes, it's enough that you flash the ROM and then wipe cache and dalvik cache.
If you're reflashing from start then you should first do a full wipe, flash the ROM, gapps, su and that is all. No need to wipe the cache or dalvik cache again
Click to expand...
Click to collapse
Ah right. So if you're flashing a new ROM - then clean install is all that's necessary. If upgrading to a newer version of existing ROM, then it's better to wipe cache and dalvik post-install? Why? What does it do and how does it help?
Cheers
reset before installing zip, now no super su ... cannot mount usb
Hi,
The title says it all. I have been reading and searching. Many similar stories. I apologise if this is in the wrong place but this is very similar to my problem.
I have a galaxy i9505 trying to install a DjeMBeY ROM from TWRP.
I factory reset and wiped cache's BEFORE I flashed the .zip file so then had no .zip file to flash!
Also have erased my system backup and the USB WILL NOT SEEM TO MOUNT to copy it back onto the card.
I have read and read I am very struck.
I am not familiar with all the processes yet. Please help.
i recommend going to here
Similar prob
nokiamodeln91 said:
Boot into Philz recovery again and go to mounts and storage and mount USB. Then connect it to pc. Check if the any drive shows up. Then move the new rom to the internal storage.
Sent from my GT-I9500 using xda premium
Click to expand...
Click to collapse
Hi, thanks for the advised. i have a similar prob. I dont have a sd card (external) and i just had installed xtrestolite 2.1 in my exynos S5 smg900h but google play services kept crashing so i decided to wipe clean to install new rom instead of just regular wipe data. i wanted to flash again xtrestolite but i did not know that the rom i had inthe internal memory of the phone was gonna be erased as well (i know iknow dumb me ) so now i cant get pass recovery, i dont know if download mode will work as i did not activate usb debug after i installed xtrestolite. if a go to mount usb nothing happens............. i dont know what to do ..
luislaperika said:
Hi, thanks for the advised. i have a similar prob. I dont have a sd card (external) and i just had installed xtrestolite 2.1 in my exynos S5 smg900h but google play services kept crashing so i decided to wipe clean to install new rom instead of just regular wipe data. i wanted to flash again xtrestolite but i did not know that the rom i had inthe internal memory of the phone was gonna be erased as well (i know iknow dumb me ) so now i cant get pass recovery, i dont know if download mode will work as i did not activate usb debug after i installed xtrestolite. if a go to mount usb nothing happens............. i dont know what to do ..
Click to expand...
Click to collapse
You can go with the download mode and install a stock ROM or use the 'adb sideload " feature of cwm recovery to install the zip of your ROM if you have it saved on your PC.
nokiamodeln91 said:
You can go with the download mode and install a stock ROM or use the 'adb sideload " feature of cwm recovery to install the zip of your ROM if you have it saved on your PC.
Click to expand...
Click to collapse
Thanks! i went with download mode, then installed a stock rom, i had to root again and flash philz touch and install xtrestolite and now everything is ok!
I flashed a file that was supposed to disable encryption but it still shows as "encrypted" in Security settings. How can I tell if encryption is actually enabled or not?
If not encrypted you will have option "Encrypt phone" in security settings. After flashing kernel that does not enforce encryption you need to format userdata.
The Resurrection Remix ROM I'm using gave a zip to flash that was supposed to disable encryption but all I did after flashing the ROM, Gapps, and then that file was wipe the cache and then the dalvik cache. What is formatting the userdata?
enginuity2 said:
I flashed a file that was supposed to disable encryption but it still shows as "encrypted" in Security settings. How can I tell if encryption is actually enabled or not?
Click to expand...
Click to collapse
flashing a file wont decrypt you. you have to decrpt yourself after flashing that file or a kernel that allows decrypting. you have to format your user data/storage, this will delete everything in your storage. only then will you be decrypted after booting up.
enginuity2 said:
The Resurrection Remix ROM I'm using gave a zip to flash that was supposed to disable encryption but all I did after flashing the ROM, Gapps, and then that file was wipe the cache and then the dalvik cache. What is formatting the userdata?
Click to expand...
Click to collapse
Connect device to a PC and use command "fastboot format userdata". This will wipe all your private stuff so backup before proceeding.
Can I do that through my TWRP recovery?
enginuity2 said:
Can I do that through my TWRP recovery?
Click to expand...
Click to collapse
You can. It is in Wipe>Format Data section. You will have to type "yes" to confirm.
Is that all I need to do to decrypt now? Just wipe the user/data? Can I install a new kernel and not have to wipe everything?
enginuity2 said:
Is that all I need to do to decrypt now? Just wipe the user/data? Can I install a new kernel and not have to wipe everything?
Click to expand...
Click to collapse
not wipe. format. they are two differing things. and yes, as long as it allows decryption.
That worked surprisingly well. Since I've already lost all of my data, what can I wipe in order to do a full clean install of my rom? TWRP gives me the option to wipe Dalvik Cache, System, Data, Internal Storage, and Cache. Your help is greatly appreciated.
enginuity2 said:
That worked surprisingly well. Since I've already lost all of my data, what can I wipe in order to do a full clean install of my rom? TWRP gives me the option to wipe Dalvik Cache, System, Data, Internal Storage, and Cache. Your help is greatly appreciated.
Click to expand...
Click to collapse
to get a full real wipe.. you should wipe system and data, then reflash your rom. because when you wipe system, you wipe your rom off your phone.
enginuity2 said:
That worked surprisingly well. Since I've already lost all of my data, what can I wipe in order to do a full clean install of my rom? TWRP gives me the option to wipe Dalvik Cache, System, Data, Internal Storage, and Cache. Your help is greatly appreciated.
Click to expand...
Click to collapse
Before you do that make sure that you can connect your device to PC in bootloader mode and in recovery mode (TWRP). If you wipe everything you will cut the branch you are sitting on.
Witek_M, you beat me to it. Thank you.
Witek_M said:
Before you do that make sure that you can connect your device to PC in bootloader mode and in recovery mode (TWRP). If you wipe everything you will cut the branch you are sitting on.
Click to expand...
Click to collapse
to be safe, ok. thats a great idea for newer folk.
but ill be honest, there are a few differing ways to get a rom onto your device from twrp. but you should downliad the rom beforehand, it wont get deleted. anyways, now you can use adb to transfer files, two differing ways. and you can just simply transfer a rom to your phone using twrp, not adb, as well.
What commands do I need to use to push the rom onto the phone?
enginuity2 said:
What commands do I need to use to push the rom onto the phone?
Click to expand...
Click to collapse
if anything, i use adb push. but twrp has an option now to tranfer roms over to your phone as well, without using adb.
So if I put the rom's zip, gapps, etc on the phone's storage and wipe system, the rom zip file and twrp will still be usable on the phone after that?
enginuity2 said:
So if I put the rom's zip, gapps, etc on the phone's storage and wipe system, the rom zip file and twrp will still be usable on the phone after that?
Click to expand...
Click to collapse
yes. wiping system will get rid of the rom, wiping data will get rid of all your apps and data, but none of them will wipe your storage. thats in advanced wipe settings.