Switchrom and Wipe ext3 - G1 Q&A, Help & Troubleshooting

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.

Related

[Q] Wiping ext2 partition, then restoring it.

I want to clean up my ext 2 prtition because my phone has been running funny lately. If I perform a backup using Backup for Root users (which I think backs it up on the fat32 partition), then wipe my ext2 partition using
adb remount
adb shell
rm -r /system/sd/*
Then I use Backup for Root Users to restore everything, That should work fine right?
(I also have My Backup Pro, but I think it is terrible)
Any information or opinions would be appreciated.
Um no all wrong. No app in my knowledge backups your ext2 partition. Why should you want to back it up anyways? If you restore your apps then they'll automatically go back to your sdcard and so will dalvik cache (depending on what ROMS). You can always "adb pull /system/sd/* C:\Users\xxx\Desktop" that will backup your ext2 partition and you can push it back after. Sorry for the long answer and having the answer at the end

new vision and apps2sd?

just wondering if im doing something wrong? got NV installed with all 3 partitions and I had 77mb of internal mem. when I install new apps it takes away mem, am I doing something wrong, did I not config something right? I have read that apps2sd are automatic and to do nothing or it will break the system. dont mind the 77mb but would like to have my apps on my sd. any help would be great.
Do you have ext3? Drizzy expressly says you need it. So I assume if you only have ext2 there might be probs with your a2sd.
If that's not it. Did you follow all of these steps before flashing?...
This is how I installed without any problems:
: rename to update.zip
: place in the root of sd card
: shut off device
: boot into recovery
: wipe
: go to console and hit enter
(enter)
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
: now wipe again
: repair ext system
: flash
Enjoy!!
"DO NOT RUN ANY OTHER APPS TO SD IT WILL BREAK YOUR SYSTEM"
JUST EXT3 & LINUX-SWAP 32MB
kree said:
just wondering if im doing something wrong? got NV installed with all 3 partitions and I had 77mb of internal mem. when I install new apps it takes away mem, am I doing something wrong, did I not config something right? I have read that apps2sd are automatic and to do nothing or it will break the system. dont mind the 77mb but would like to have my apps on my sd. any help would be great.
Click to expand...
Click to collapse
your apps are going to the sd..your dalvik-cache is not
yup. checked thru the the console that in fact I do have an ext3 partition. I went thru an infinate loop with out it, also followed all the steps as best as an old newb could, I mean Im not new to flashing roms coming from the herald and wing, but concidering ow these android roms are becoming like full linux distro installs its getting a little hard to keep up, but still willing to try. gonna look up the dav thing to see where that leads me. definately an adventure! thanks!

some questions about swap and apps2sd and flashing

im using the newest full drizzy hero rom and im curious how do i tell if my swap and apps2sd is workin. do i need to enable it manually or is it automatic. also i neeed to know how to wipe my ext2/3 i gointo recovery mode and go to console and i type
mount -o rw /dev/block/mmcblk0p2 /system/sd
rm -r /system/sd/*
with the asterix and all but it tells me the file is in use is it still wiped do i just reboot or did i wipe wrong.
thanks for any help. ive searched these forums but i cant seem to find an answere its prolly here somewere i just havent ran across it.

Need some advice. Simple problem you guys can assist with.

Hey guys,
I have a problem that I know you can assist with. I recently rooted my G1. I installed the CryogenMod 4.2 OS. I then decided to give the Dizzy's White Champion V2 OS a whirl. I wasn't too impressed with it due to the lag and slowness. I then did a wipe and installed the CryogenMod 4.2 OS again. This time around I am stuck on the G1 screen. I can enter the recovery mode by pressing home and power. I know I am missing something easy. Can you guys tell me what I should do? I can supply more information if needed.
I appreciate you guys.
Ira
iraqmilner said:
Hey guys,
I have a problem that I know you can assist with. I recently rooted my G1. I installed the CryogenMod 4.2 OS. I then decided to give the Dizzy's White Champion V2 OS a whirl. I wasn't too impressed with it due to the lag and slowness. I then did a wipe and installed the CryogenMod 4.2 OS again. This time around I am stuck on the G1 screen. I can enter the recovery mode by pressing home and power. I know I am missing something easy. Can you guys tell me what I should do? I can supply more information if needed.
I appreciate you guys.
Ira
Click to expand...
Click to collapse
Sounds Drizzy's ROM left some crud on your ext partition..
Open the command line in recovery..
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r /dalvik-cache/*
reboot recovery
then wipe and reflash. That should fix it, otherwise you will need to delete your apps too :-(
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r /app/*
rm -r /app-private/*
reboot recovery
Thank you brother, Adrian.
I will give that a shot right now and I will let you know how it goes.
Thanks again
Ira
Alright,
I just followed the steps that you provided. My G1 said that I couldn't remove the following files because they weren't there. Something along those lines. I reformatted my sd card right before I attempted to reinstall cryogenmod. Maybe that has something to do with it. Any other ideas?
Thanks again.
iraqmilner said:
Alright,
I just followed the steps that you provided. My G1 said that I couldn't remove the following files because they weren't there. Something along those lines. I reformatted my sd card right before I attempted to reinstall cryogenmod. Maybe that has something to do with it. Any other ideas?
Thanks again.
Click to expand...
Click to collapse
Ah, right, I assumed your card had an ext partition which was set up for Apps2SD and some files got left behind. Sorry, I really should have asked before making suggestions >< Not really sure in that case :-/
I believe I did do that. I followed these steps originally:
#parted /dev/block/mmcblk0
#print (to verfiy we know what size card we are dealing with, the details should be straight forward)
rm 1
rm 2
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
Then I installed Champion V2. I am at a loss right now. If you have any questions please fire away.
did you format the entire ext3 partition or just folder like was already suggested? if you just did folders then try rm -r /app_s/*. non hero roms will not boot up if you still have all the hero apps on your ext2/3/4.
I think the problem is that I had to create the 3 partitions in order to run the Hero rom. I am trying to return to the CyanogenMod now and that isn't needed. So, how I can I delete the partitions that I created for Hero. I think once those guys are gone then I will be good to go. Any ideas how I can do that?
Problem solved!
This is what I did:
I loaded the recovery flasher and entered the terminal. Keyed in the following:
parted /dev/block/mmcblk0
print
rm 1
rm 2
rm 3
rm 4
rm 5
quit
upgrade_fs
recovery
Wiped the data, reinstalled OS and she loaded up like a charm.
Seeing as you removed your ext3 partition and are now only using Fat, there must have been something left on your ext3. As David said, I think it was the /app_s/ folder which I forgot to mention. Oh well, you should be able to remake all your partitions and have all the apps on your internal memory moved to ext3.
iraqmilner said:
This is what I did:
I loaded the recovery flasher and entered the terminal. Keyed in the following:
parted /dev/block/mmcblk0
print
rm 1
rm 2
rm 3
rm 4
rm 5
quit
upgrade_fs
recovery
Wiped the data, reinstalled OS and she loaded up like a charm.
Click to expand...
Click to collapse
Just out of curiosity, why did you have 5 partitions?

What is the comand to wipe ext2/3

My in installed apps stay in the /system/sd even after i do a wipe, these apps never seem to work even when i run fix_permissions from console.
Is there a command to simply clean everything out of that partition?
I have been using parted to simply reformat that partition, but i an thinking there must be an easier way.
Thank you
ekeefe41 said:
My in installed apps stay in the /system/sd even after i do a wipe, these apps never seem to work even when i run fix_permissions from console.
Is there a command to simply clean everything out of that partition?
I have been using parted to simply reformat that partition, but i an thinking there must be an easier way.
Thank you
Click to expand...
Click to collapse
Hi, click here for instructions on how to wipe.
yeah go to consol and type this
"mount -o rw /dev/block/mmcblk0p2 /system/sd" (hit enter. ps that is a zero, not an "o"
"rm -rf /system/sd/*" (hit enter. yes you need that star thingy)
"reboot recovery"
there you go! make sure to backup all your apps using Backup for Root users via market beacause wiping your ext2/3 erases all your apps!

Categories

Resources