Wiping ext2 / ALT+W wipe. - G1 Q&A, Help & Troubleshooting

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.

Related

Why wipe ALL of ext3 before Flashing??

About to flash this ROM or that new ROm, and usually before I flash a new ROM I would delete all the files in /system/sd/dalvik-cache but leave the /system/sd/app folder intact with all my apps inplace. I will do a wipe ofcourse also.
I have never had any problems with flashing roms this way.. Why do a full ext3 wipe?
Am I missing something, for example, by leaving my /system/sd/app folder intact, does this cause problems for odex'ing with any ROM?
For Hero ROMs I also delete the files within the /system/sd/app_s...
But doing it this wasy ensures that during the install, all my Apps are automatically loaded on boot...
If anyone knows why a full ext3 wipe, i.e. rm -rf /system/sd is necessary, please let me know!! Thanks
Sometimes you can just run into issues, so if you wipe it should be fool proof to hopefully not hit any problems. Loading some hero's without wiping can cause bootloops.
supremeteam256 said:
Sometimes you can just run into issues, so if you wipe it should be fool proof to hopefully not hit any problems. Loading some hero's without wiping can cause bootloops.
Click to expand...
Click to collapse
Yes, I have learned this the hard way. You really need to wipe your ext3 partition before flashing a new hero rom bc you will run into bootloops if you don't

problems with new roms

i have ongoing problems installing new roms inc hero one , i have correct spl and radio , i wipe ext partitions repair partitions and wipe factory data but i still have problems with no installs working
one thing i did find after i got a hero rom working is that it started to download some programs that i had installed previously on the phone , how do i completley wipe the phone memory ? as i think this is now my problem ?
mrcgibb said:
i have ongoing problems installing new roms inc hero one , i have correct spl and radio , i wipe ext partitions repair partitions and wipe factory data but i still have problems with no installs working
one thing i did find after i got a hero rom working is that it started to download some programs that i had installed previously on the phone , how do i completley wipe the phone memory ? as i think this is now my problem ?
Click to expand...
Click to collapse
im using cyans recovery 1.4 and when you come to the boot screen for it, theres an option for wiping memory. ive had to wipe whenever switching from one rom to the next.
if your using cyanogenmod v1.4 its alt+w to wipe clean.. then wipe your ext with alt+f as well
Problems with new ROM's huh?
Well...it could also possibly be your micro SD card,in which I found out was my problem about a week ago. I found Paragon Partition Manager on the internet.The free version called Partition Manager 9.0 Special Edition. Anyways...used Partition Manager to delete my old FAT32,EXT3,and Linux-Swap partitions and reformatted the entire micro SD then created new EXT3 and Linux-Swap partitions on my SD. Just thought this may be a solution to your problem. Good luck!
I'm not sure alt+f wipes your ext. there are commands you have to type.
to completely wipe your ext2 and ext3 you have to type:
mount /system/
rm -rf /system/sd/
or at least that's what I always used until I upgraded to ext3.
PlatinumMOTO said:
I'm not sure alt+f wipes your ext. there are commands you have to type.
to completely wipe your ext2 and ext3 you have to type:
mount /system/
rm -rf /system/sd/
or at least that's what I always used until I upgraded to ext3.
Click to expand...
Click to collapse
Code:
mke2fs -j /dev/block/mmcblk0p2
that will actually reformat and its less chars

[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.

create ext4 for use with a2sd

hi,
i'm usin ra passion 2.2.1 and wan't to use a2sd from ics 4.0.3 evervolv. how can i create a part ext4?
Google:
"a2sd partition sd card".
Enjoy.
Try 4EXT recovery www.4ext.net
I think its the easiest way to create partition.
Or else you can do it in pc via partition managers(i use minitool partition wizard)
You can google it and also can search in youtube for video tutorials.
Sent from my Nexus One using Tapatalk
thanks for your help, i've done it in recovery.
one question is left:
what happen if i format the partioned sd-card under windows and do a full wipe in preparation for installing a new rom. i've read sd-ext even survive a full wipe? what does that mean? stays the partition untouched when i format the sd-card with windows? and what about the apps in the partition? are they still there even after a full wipe and can i use them after flashing a new rom out of the box?
Glad u succeeded in partitioning
Now if you format the fat32 partition in windows using those partition tools doesnt affect ur ext. Ext stays untouched but all the data on fat32 will be wiped(so backup first to pc)
If u want to merge there is an option called merge for that.
There is an free windows software called sdformatter, that formats the entire sdcard(fat32+ext)
Hope i helped a bit :thumbup:
Sent from my Nexus One using Tapatalk
ok. i wan't to format it with the windows internal function via right click. is it the same and the ext4 stays untouched?
Full wipe in recovery wipes SD-EXT too.
heinz gruber said:
ok. i wan't to format it with the windows internal function via right click. is it the same and the ext4 stays untouched?
Click to expand...
Click to collapse
i do beleive that it should be untouched, cos normally windows cannot see the ext partition and hence only fat32 will be formatted
Sent from my Nexus One using Tapatalk
ok. when ext4 stay untouched and i flash a new rom the apps are still in the launcher after flashing?
Jack_R1 said:
Full wipe in recovery wipes SD-EXT too.
Click to expand...
Click to collapse
when i flash a new rom i use the format.zip form the xda user temasek which wipes system, boot, data and cache. so is sd-ext untouched when i use this file?
You insist on not listening and/or not understanding.
When you select "wipe data/factory reset" in custom recovery, EXT partition IS WIPED COMPLETELY. It doesn't stay.
I believe the same happens when using temasek's script, never bothered using it, so I can't say with 100% certainty.
If you don't wipe your phone and install a new ROM - be prepared for crashes of anything to everything, unless you install a ROM which is 100% compatible with what you have already - the next generation of the same ROM, usually.
If you're using A2SD and don't wipe EXT partition - you'll have crashes as soon as you boot, since system apps' data will be there (and wrong).
To keep your apps and their data, use one of the backup apps available in the Market, like Titanium Backup.
as Jack_R1 explained its always better to wipe everything(system,cache,dalvik n sdext) to be on safer side to avoid crashes n FCs.
Sent from my Nexus One using Tapatalk
Temasek's Extreme Wipe does Data/System/Boot partitions but don't remember seeing ext in the list
However, as alluded too, I would format all outside phone with sdformatter or I think gparted, although never used that one
I thought I read a long time ago Windows formatter not recommended and do a full wipe not partial with whatever you use
Back up sdcard first
also, I believe you can use the Alignment Cool zip to get ext 4 from 3 on Amon and not lose anything--still backup
you do know MeDroid uses Ia2sd and different from a2sd on implementation
You don't need to wipe the regular FAT partition on SD card between flashes, because there's nothing there that loads automatically. And "wipe data/factory reset" option in recovery also wipes /sdcard/.android_secure.
hey guys, thanks for your answers i will keep them in mind.
edit:
one more question:
if i uses temaseks script and the sd-ext is untouched and i flash a newer version of my rom, are the apps then still there after flashing and booting the updated system? or is there another step i've to do?
No, the apps aren't there anymore - or to be correct, the apps are there, their data is gone (because the app data doesn't reside on EXT partition, unless you use specific mounting methods).
When you flash an updated version of your ROM, just don't wipe anything at all unless the instructions specifically mention having to wipe before installing that version. That means - don't execute temasek's script at all.

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

Categories

Resources