Why wipe ALL of ext3 before Flashing?? - G1 Q&A, Help & Troubleshooting

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

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.

Switchrom and Wipe ext3

I am using the Switchrom script with CY recovery. I have successfully made backups and switched between roms using the script. Now I want to try the new Drizzy Hero rom. To install the rom I will have to wipe the ext3 partition. My question is, If I wipe the ext3 partition, will I loose the script? If yes, can I copy the script in system/sd later on for it to work again?
PS: Before someone posts "search the thread" answer, I tried doing it and couldn't find anything.
Thanks
bole_to said:
I am using the Switchrom script with CY recovery. I have successfully made backups and switched between roms using the script. Now I want to try the new Drizzy Hero rom. To install the rom I will have to wipe the ext3 partition. My question is, If I wipe the ext3 partition, will I loose the script? If yes, can I copy the script in system/sd later on for it to work again?
PS: Before someone posts "search the thread" answer, I tried doing it and couldn't find anything.
Thanks
Click to expand...
Click to collapse
The only thing that is stored on your ext3 partition is your apps. So when you clear that only your apps will get cleared.
supremeteam256 said:
The only thing that is stored on your ext3 partition is your apps. So when you clear that only your apps will get cleared.
Click to expand...
Click to collapse
Thanks man. Wiping now.
To clear this up for other reader who might stumble on this thread, the above comment is not true. If you wipe you ext 2/3 you might end up wiping more stuff than just apps. I realized it the hard way lol. However you can push back switchrom.sh in /system/sd and you will be good to go. The alternate method to do this is to delete just the following folders:
mount /dev/block/mmcblk0p2 /system/sd
rm -rf /system/sd/app*
rm -rf /system/sd/dalv*
bole_to said:
To clear this up for other reader who might stumble on this thread, the above comment is not true. If you wipe you ext 2/3 you might end up wiping more stuff than just apps. I realized it the hard way lol. However you can push back switchrom.sh in /system/sd and you will be good to go. The alternate method to do this is to delete just the following folders:
Code:
mount /dev/block/mmcblk0p2 /system/sd
rm -rf /system/sd/app*
rm -rf /system/sd/dalv*[/QUOTE]
You can do that or you can wipe buy doing this
Code:
mount /system/sd
mount /sdcard
rm -rf /system/sd/*
cp /sdcard/switchrom.sh /system/sd/switchrom.sh
That's how i've been doing it. And I like to do it this way to make sure the my EXT2/3 is completely clean. I've had problems where doing a partial wipe gives me issues. But yes if you wipe your EXT2/3 drive it will get rid of everything (including the switchrom.sh)
Click to expand...
Click to collapse
when you wipe your internal phone memory and ext3 you will lose the script. once you get the rom you flashed up and running again, just repush switchrom.sh and you are good to go again. wiping the ext 3 or the internal memory WILL NOT wipe out your backups. when i use switchrom i dont even wipe all of ext3...
this is what i do... flash a new rom. get it setup the way i want. install all apps and extra settings i want. reboot into recovery, run switchrom.sh and let it do its thing. now when you have created your back up and want to flash a NEW ROM, not one of your backups, wipe internal memory of course but instead of wiping all of ext 3 drop down to recovery console and do the following
Code:
# mount /system/sd
# rm -rf /system/sd/app*
# rm -rf /system/sd/dalv*
this will prepare your ext3 for a new install of a new rom. when you are going back and forth between your backups you do not need to wipe ext3 at all. the script takes care of all of that. if you have any more questions PM me or hit me up on gtalk - palosjr
NOTE- this script is case sensitive as i found out the hard way... when bookmarking and tagging ROMs be sure to use all lowercase. if you use uppercase the script will fail. hope this helps bro.
thanks guys, i got it to work.

wiping dalvik not on sd?

any one know how to wipe dalvik NOT on sd with RA recovery?
its boggling my mind and ive searched this place believe me
why do you need to wipe it?
alt+x
mount /data/
rm -r /data/dalvik-cache
reboot
IT WILL take longer to boot after this because it has to rebuild the cache , then it will boot normally .....
thank you so much. the reason i want to wipe it is because i want to start with a fresh phone and try out the new bluetooth fix from eugene for hero roms. he has it working on his (ibelieve). its not neccasary i just wanted to do it.
well if you were going to flash a new rom, doing a wipe/data factory restore would have gotten the job done. You would only need to delete it if it were on your sd card.

Nexus One Rom/Memory Issues

Hey guys, I have a memory issue with my Nexus One when it comes to available storage space. The rom available memory seems to get lower and lower everytime I flash a rom than the previous time. When I load roms like CM6 or Kang-o-Rang or MicroMod Supercircle 2.7 or any others I have 4-16 MB available and nothing has installed yet. I usually use A2SD EXT3 for these but now its extremely difficult to do anything when booting with so little space to begin with. A week ago, on most roms I have well around 150 MB free before installing anything. What may have caused this issue? I even tried booting CM6 with a different SD card not partitioned for A2SD and wiping everything and same result and now I really can't install anything. So is my phone faulty or is there something I can do? I am currently running recovery Amon RA 1.7.0.1 and issues seemed to have come up since using this recovery. I was using Clockwork Mod latest one before this a few days ago.
Any ideas?
Have you been wiping data + cache each time you flash?
Make sure you're calculating data space and not system space (which can be as low as it gets to be, it doesn't matter).
codesplice said:
Have you been wiping data + cache each time you flash?
Click to expand...
Click to collapse
I have wiped, cleared cache, delvik many many times. I suspect that the wipe is not working properly. I have tried two different recoveries and nothing works. My available space now running on Nexus FRF91 stock with root only I have 53.64 MB free. I have installed no third party apps yet whatsoever. I have not even logged in to google yet because it will download all my apps again. I have rebooted as well. I think theres an issue with my device and memory. Should I call HTC or my warranty is void?
Sounds like a weird problem, I would've tried to wipe a time or two more. I just wiped my device after flashing nightlies for the last two months without wiping and I noticed I had 170MB free when I booted up with a few apps installed.
I agree with SBS_. It sounds like the wipe isn't doing the job properly. Try to do it in all the possible ways (wiping through the ROM - using "Factory Reset" option, wiping through recovery - clearing data, cache and Dalvik-cache, and wiping through ADB command line), see if it changes anything.
Jack_R1 said:
I agree with SBS_. It sounds like the wipe isn't doing the job properly. Try to do it in all the possible ways (wiping through the ROM - using "Factory Reset" option, wiping through recovery - clearing data, cache and Dalvik-cache, and wiping through ADB command line), see if it changes anything.
Click to expand...
Click to collapse
I've tried everything except ADB command line. I will have to read into doing that as I am unsure what to do. I have wiped from recovery and through the rom at least 15 times each! lol
When you load a new ROM, did you try to use Root Explorer to see what's on your DATA partition? (under directory /data).
Jack_R1 said:
When you load a new ROM, did you try to use Root Explorer to see what's on your DATA partition? (under directory /data).
Click to expand...
Click to collapse
Great idea. Actually I have but not sure what suspicious files I should be looking to delete. I do own root explorer so any suggestions would be great. Thanks!
timahawk said:
Great idea. Actually I have but not sure what suspicious files I should be looking to delete. I do own root explorer so any suggestions would be great. Thanks!
Click to expand...
Click to collapse
I have this exact issue. I know how to wipe. I have gone as far as reloading HBoot and placing the stock EPF30 image. I have gone thru using clockwork and Amon. I know how to do factory resets. I know how to go to storage options with clockwork and format all partition options. I have spent months on this. Below is a readout, after blowing away everything.
~ # du -hc /data
du -hc /data
2.0K /data/lost+found
4.0K /data
4.0K total
~ # df -h
df -h
Filesystem Size Used Available Use% Mounted on
tmpfs 192.9M 0 192.9M 0% /dev
/dev/block/mtdblock5 196.3M 109.5M 86.8M 56% /data
~ #
Another user that I have been working with has the exact issues as the user here and me. He contacted HTC. They are replacing his N1. There is something weird going on with some of these units. Just like a few months back, no one knew anything about the bad boot blocks issue causing many developers to change their ROM installs to accommodate those users with this issue. This low space on /data issue is another one that sooner or later will start to show up more and more, IMHO. For instance, at best using either Evils Sense Roms or MicroMods Hybrid sense Roms, I have 23MB free on initial install. This is after basically wiping formatting, resettings factory Data etc etc. At best, lets say using Enoms latest AOSP, I have maybe 75Mb free Internal memory, after initial install and NO applications downloaded installed on my part.
I really wish that folks here and on other threads would start to take this issue a little more seriously than basically saying a user isn't properly wiping his setup prior to an install. I have my beloved N1 since third week of January this year. Never had a problem with rooting, installing any of the original CM, or Paul M stuff from the early days here and on their Kitchen setups. Something has basically changed to cause these issues on a number of Nexus one setups. I have root explorer too and no manner of deleteing, via changing partition permissions from RO to RW makes any difference after wiping, formatting whatever prior to a fresh clean install of any current ROM.
I have approximately the same issue. I can't install anything..
Even after a full wipe of /data and all caches, I installed latest nightly-219-passion and the only possible way to install apps is by manually typing the adb push commands in commandline. It DOES NOT WORK using Market, File Manager, Titaniumbackup, ....
When I nandroid restore I have all my apps back but still CANNOT install any new apps using Market, File Manager, Titaniumbackup, ....
I already tried the fix_permissions script in both Amon_RA and RomManager but without success. I have system:system permissions on /data.
Is there a way to wipe /system aswell prior to an install, or does that happen when you flash a .zip?
Saphroxx said:
I have approximately the same issue. I can't install anything..
Even after a full wipe of /data and all caches, I installed latest nightly-219-passion and the only possible way to install apps is by manually typing the adb push commands in commandline. It DOES NOT WORK using Market, File Manager, Titaniumbackup, ....
When I nandroid restore I have all my apps back but still CANNOT install any new apps using Market, File Manager, Titaniumbackup, ....
I already tried the fix_permissions script in both Amon_RA and RomManager but without success. I have system:system permissions on /data.
Is there a way to wipe /system aswell prior to an install, or does that happen when you flash a .zip?
Click to expand...
Click to collapse
How did you install the nightly. Even with my issues of 109Mb used up on data before I install anything, I have the latest nightly running along with latest Gapps and approx 50 of my own apps, with 79Mb free internal. I used clockwork recovery, then under storage options, you can run format options, on boot, system, data, cache, and SD-EXT and then under advanced, wipe dalvik-cache. I also added the data factory reset option also. I then clean installed the nightly. Then after an initial setup to just have it running, flashed the gapps. I did initially have approx 75Mb free Internal before the Gapps install. Then I went down to 53MB after gapps. I verified I had the correct settings in settings:Cyanogen Mod for the file system. I then flashed the latest Dark Tremor script, ran the commands for a2sd check, a2sd reinstall, a2sd zipalign and a2sd cachesd to move the dalvik-cache to sd. I have an EXT3 setup on my SD card. After moving Dalvik cache I jumped from 28Mb free to 79Mb free where it's pretty much staying now. Not as much as others that don't have the issues on /Data but at least useable.

[Q] About Darktremor A2SD

I am using the rom which is Darktremor A2SD compatible. Every time I change another rom then all apps will get force close. I need to reinstall those apps.
Is it normal?
Anyone can help me? Thanks!!
When you change ROMs, it's advised to ALWAYS WIPE EVERYTHING. That includes EXT partition.
If you want your programs to run after moving to another ROM - back them up using Titanium, change ROM, and restore them.
Jack_R1 said:
When you change ROMs, it's advised to ALWAYS WIPE EVERYTHING. That includes EXT partition.
If you want your programs to run after moving to another ROM - back them up using Titanium, change ROM, and restore them.
Click to expand...
Click to collapse
Actually I'm not sure wiping EXT is necessary but certainly data, caches etc.. If problems continue, then wipe EXT too.
EXT should just have the APK's on it, they should just work.
If you're wiping /data, then you're left with APKs on EXT and no data structure for them in /data/data. Might be just the reason for force-closes.
Jack_R1 said:
If you're wiping /data, then you're left with APKs on EXT and no data structure for them in /data/data. Might be just the reason for force-closes.
Click to expand...
Click to collapse
most roms detect and "re-install" the ext apps on first boot. All 200+ for me
Wiping ext would be the very last thing I'd do to solve a problem.
I used to do this. But i learned that it breaks some apps, and the built in rom restore function will restore any apps you got from the market. You need to do a full wipe when going to a new rom. upgrade may not need this, but some devs like king dont know how to make upgrades so all of his new versions require a full wipe.
Thanks you all! Seems that full wipe is necessary

Categories

Resources