help with ext2 / ext3 - G1 Q&A, Help & Troubleshooting

hey guys,
i have my phone all set up with ext3 but i haven't done anything with my phone in months and forgot how to do it. one time someone gave me a link (to another site) that had all the commands to wipe ext's and the commands to put ext's in place.
can anyone please put me in the right direction

Recovery image in my sig.

evilkorn said:
Recovery image in my sig.
Click to expand...
Click to collapse
i don't have the same recovery...i have the cyanogen one.

trexxcrap2 said:
hey guys,
i have my phone all set up with ext3 but i haven't done anything with my phone in months and forgot how to do it. one time someone gave me a link (to another site) that had all the commands to wipe ext's and the commands to put ext's in place.
can anyone please put me in the right direction
Click to expand...
Click to collapse
I'm sorry if I sound harsh or anything, but is it that hard to read sticky'ed posts? I mean, I know this is the question and answer section, but it's sticky'ed on here too! http://forum.xda-developers.com/showthread.php?t=535232

xAbstract said:
I'm sorry if I sound harsh or anything, but is it that hard to read sticky'ed posts? I mean, I know this is the question and answer section, but it's sticky'ed on here too! http://forum.xda-developers.com/showthread.php?t=535232
Click to expand...
Click to collapse
that link does not have the commands.

what i'm looking for is like this -
mkpartfs primary fat32 0 7437
mkpartfs primary ext2 7437 7937
mkpartfs primary linux-swap 7937 7969
but more detailed.

trexxcrap2 said:
what i'm looking for is like this -
mkpartfs primary fat32 0 7437
mkpartfs primary ext2 7437 7937
mkpartfs primary linux-swap 7937 7969
but more detailed.
Click to expand...
Click to collapse
why not just switch to amon ra's 1.5.2 recovery

Here's a good guide for creating ext2/ext3/ext4 patitions through console or adb on your phone
http://androidandme.com/2009/08/news/how-to-manually-partition-your-sd-card-for-android-apps2sd/
The commands to clean out your partition is as follows from console/adb in recovery
Code:
mount /system/sd (enter)
cd /system/sd (enter)
rm -R * (enter)
umount /system/sd (enter)

hiddengopher said:
why not just switch to amon ra's 1.5.2 recovery
Click to expand...
Click to collapse
Like I told him to do in my first post.

Related

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?

Unsure on procedure for partitioning SD/flashing new rom

So i have JACheroski installed and it looks great.. but god is it slow. I probably didnt partition my sd card correctly.... so help me out here guys.
I dont know what exactly i want either..(fat32/ext 2 or 3/linux-swap)
Now can i just go into recovery, type in the 5 or 6 lines of code givin in the guide on here and have my card partitioned the way i want? Or do i have to download the apps2sd app and install it and THEN go type in the code.
Or lets say I use http://forum.xda-developers.com/showthread.php?t=534714 do i have to install apps2sd then follow his guide and my phone will be set up for all these hero roms??
And do i really need adb?
You need all 3 (fat32/ext2 or 3/linux-swap) this is the guide I used because it gives you they way to do it for each card size (8gb,4gb,2gb) Just make sure you follow it exactly as described, make sure when you do the linux-swap you do the - inbetween the numbers, not just a space like with the fat32 and ext2.
justanothercrowd said:
You can use the recovery console and parted to format SDcards with 1.31 folks, no more going through hassles you have the tools on you G1!...here is an example of how to do this in recovery console using parted. DO NOT USE MORE THAN 32MB SWAP!!!
Example for 8GB card (this example plays it safe and will leave a small amount leftover regardless of the 8GB card)
Reboot and enter recovery
Enter console
#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 7200
mkpartfs primary ext2 7200 7700
mkpartfs primary linux-swap 7700 7732
#print (to verify we have the 3 partitions)
Example for my 4GB card
#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
Example for a 2GB card playing it safe
#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 1200
mkpartfs primary ext2 1200 1700
mkpartfs primary linux-swap 1700-1732
"End?" you need to place the last value for the linux swap eg.3964 for my 4GB card
#print (to verify we have the 3 partitions)
Next we need to "quit" parted and upgrade our ext2 partition to ext3
#upgrade_fs
Swap value is set to 30 currently, you can change this by modifying the "echo" value for swappiness in the a2sd.sh script
For a longer more detailed parted turorial read this
Click to expand...
Click to collapse
Now do i need apps2sd installed now? or after i partition everything?
that rom does apps2sd automatically so dont install any script for it or you will screw it up. Making the ext2/3 partition is what makes it work, basically no you dont need to do anything other then partition correctly, maybe wipe and reflash after but you shouldnt have to.
Thanks man!
Ill do it right away and see what happens.
Ignore that last bit.
Ok... it takes me to GNU parted 1.8.8.1.179.
i typed print and it gave me a huge list of info but i type rm 1 and it says unrecognised disk label
Actually its not recognizing any of my disk labels
prolly because you didnt make any partitions yet, and when you type print dont put a # just type print then you will see if you have any partitions, if it doesnt show any you dont need to do the rm 1 or rm 2
crpercodani said:
prolly because you didnt make any partitions yet, and when you type print dont put a # just type print then you will see if you have any partitions, if it doesnt show any you dont need to do the rm 1 or rm 2
Click to expand...
Click to collapse
Awesome i got it i think.
So now my phone should just run faster? Or is there more i need to do? And im i safe to swap to any other hero rom now?
nevermind.... it says damaged sd card now...
If i format will i have to repartition it?
It wont format now... this is frustrating haha
Yea you can switch roms but you need to wipe the ext2/3 partition, it says how to somewhere, hold on I will find it and edit it into here. Damn that sucks, when did it say damaged? Was it on the phone or when you mounted it to your pc? If you format it from your windows it will only find the fat32 partition, you need to go back into console and do rm 1
rm 2
rm 3
then re-do the partitions.
when you switch roms goto console and type this (hit enter after each line)
mount -o rw /dev/block/mmcblk0p2 /system/sd
cd /system/sd
rm -r *
My windows f's up sometimes when I mount it so if it is working on the phone I would just try a diff usb port, try unplugging it a few times.
Its on the phone, after i rebooted from partitioning. The phone will not reformat it, i go through the steps but nothing happens.
I cant format from console can i?
what happens when you do the rm commands? you when into gnu first right? (parted /dev/blcok/mmcblk0)
yeah it welcomes me to gnu but then tells me all commands are invalid, including print and rm1 rm 2 rm 3 etc.
when i start the phone up it first says the card is blank, then damaged.
hmmm you know I really have no idea, do you have any type of linux distrto like debian or ubuntu/kubuntu?
Nope... I dont even know what that is lol.
Weird.. I took it out and put it back in and it read it.. 3,882 mb left.
So do i format....or go into console and make sure all partitions are still there or what?
Im not lookin to ruin my new card
Oh its a OS for your computer. My only idea is to google for a program that will find linux partitions on a sd card cuz windows only sees the fat32 one so you cant format it on there. Hopefully someone else on here might have another idea for how to do it from console but if it is giving you invalid commands then I have no clue.
How many gb is your card? 2,4,8?

Bootloop all JACxHeroSkiv1.6+ & Twisted 4.5r5+

Ok so i have no clue what to do to get this fixed and what i don't get is i see all these ppl with there G1s and the versions being able to boot without problems. I have done a full format of the SD card. I partition it in parted
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
print (to make sure all went ok)
quit
upgrade_fs
reboot recovery
wipe
repair
apply update.zip
I can do this i dont know how many times and I still get a bootloop. If I flash any build before the ones listed in the title it boots fine. All of Drizzys roms boot fine. I would stay on Drizzys Elite v0.5 if it didn't have the text problems but i need my texting so I hope the new builds fix that. Any ideas how to fix this.
do u have the right spl?
Both my radio and SPL are from here
http://code.google.com/p/sapphire-port-dream/
did you make sure to see that the radio,spl were actually applied, check the versions
it looks like they are. I held the cam and power button and this is what it says
DREAM PVT 32B ENG S-OFF
HBOOT-1.33.2005 (DREA100000)
CPLD-4
RADIO-2.22.19.26I
Apr 20 2009, 15:30:43
via fastboot and command prompt =
fastboot erase system -w
fastboot erase boot
then use console in recovery mode to format EXT3 partition on SD card
# mount -o rw /dev/block/mmcblk0p2 /system/sd
# cd /system/sd
# rm -rf /system/sd/*
# reboot recovery
In recovery mode "repair ext filesystems"
and then try reflashing rom again!
or just use this command from the console of recovery
mke2fs -j /dev/block/mmcblk0p2
gtrplr71 said:
or just use this command from the console of recovery
mke2fs -j /dev/block/mmcblk0p2
Click to expand...
Click to collapse
lol seems easier that way...
Prod1702 said:
Ok so i have no clue what to do to get this fixed and what i don't get is i see all these ppl with there G1s and the versions being able to boot without problems. I have done a full format of the SD card. I partition it in parted
mkpartfs primary fat32 0 3420
mkpartfs primary ext2 3420 3932
mkpartfs primary linux-swap 3932-3964
print (to make sure all went ok)
quit
upgrade_fs
reboot recovery
wipe
repair
apply update.zip
I can do this i dont know how many times and I still get a bootloop. If I flash any build before the ones listed in the title it boots fine. All of Drizzys roms boot fine. I would stay on Drizzys Elite v0.5 if it didn't have the text problems but i need my texting so I hope the new builds fix that. Any ideas how to fix this.
Click to expand...
Click to collapse
I can't actually help you with this, but I just wanted to point out that your linux-swap partition should be around ~96MB for the new Hero ROMs to run smoothly.
thanks for the replys guys but that didnt work milesman I still get a bootloop on them. I did find out that i can get JACs 1.6r2b to work but not r2a. So there has to be something that was moved over that makes it so i am having problems booting.
anyone else have any ideas. i am starting to think that there might be some kinda of problem with the build but am not sure what it could be.
wipe your ext3. hero roms need a clear ext3 in order to boot properly.
heres the commands
go to console
hit enter
type this with no quotes "mount -o rw /dev/block/mmcblk0(thats a zero, dont type this) /system/sd hit enter
then type " rm -rf /system/sd/* (yes you need that) hit enter
"reboot recovery"
and that will take you to the recovery screen then apply the update and repair the extensions and your good to go
Oshizzle1991 hmm i dont know how many times i have done this, but like i said. I have formated the whole SD card more then 10 times and repartitioned it so that pretty much wipes my ext3 since the SD car is being formated. Still a no go. I am pretty much giving up right now unless there is something i havent done that wasnt been said in the other posts.
lol might be a dumb question but did you wipe the phone too? you know, alt w? lol. some people forget to do that because they only remember the ext2/3 partitions.
downgrade to RC29/RC7 and start the process over again if you reallllllly want it. That's basically guaranteed to get it to work...
oshizzle1991 yea i have wiped also the commands that milesman has said to use with adb in fastboot erases all data from the phone its self. so that is pretty much wiping everything. I don't really feel like I should have to start the root all over again going back to RC29 since all hero roms work but these newer ones. I am trying JACs 1.8 right now to see if that works but if that doesn't work I think i am going to give up on hero and stick with CM roms.
edit: JACs 1.8 loads fine for me so i don't know what he changed from 1.6r2a and 1.7r2 to 1.8 but all is fine now thanks for all the reapplies. Mod you can close this thread.
ME TOO!!!!!!!
i dont know why, but i had (kind of) the same problem too. all my rooting life, i used JAC's hero roms, then when i tried to use drizzy's or someone else's, it always goes into a bootloop.
Yea i spent hours and hours trying to get them to work. not sure what it is but it seems to be fine now with the 1.8. I am sure it was my erorr somewhere in the line. I have flash roms on my phone over 50 times now and i know how to do all this as if my life depended on it.

Swap Reformat

Yo I haevnt ever REformated my swap partition
And was wondering what are the commands to do so from console
And if I did reformat it would my phone semi brick (as in hang at android logo)
TIA
From my understanding, the swap partition is cleared out with every reboot, but you could either do the resize command in parted, or you could rm 3 then remake the partition.
jf4888 said:
Yo I haevnt ever REformated my swap partition
And was wondering what are the commands to do so from console
And if I did reformat it would my phone semi brick (as in hang at android logo)
TIA
Click to expand...
Click to collapse
lol full console line is
Code:
parted /dev/block/mmcblk0
rm 3
mkpartfs primary linux-swap (max start) (max end)
quit
upgrade_fs
done
only thing i see about your command is the upgrade_fs part, since that is only for converting ext2 to ext3.

How to make ext4 partiton?

Hey, I know how to get ext2 and "upgrade_fs" via console to get ext3 ... but How do you make a ext4 partition? Thanks.
parted will not create ext3/ext4 partitions...see beginning of post
to upgrade, enter:
upgrade_fs
you now have journaling(aka ext3)! if ext3 is all you want, skip next two commands.
you want ext4?
enter:
tune2fs -O extents,uninit_bg,dir_index /dev/block/mmcblk0p2
e2fsck -fpDC0 /dev/block/mmcblk0p2
Click to expand...
Click to collapse
Source: http://forum.xda-developers.com/showthread.php?t=534714
hope this helps
You need the newest Amon Ra recovery of course, it has the option to upgrade to 4 after upgrading to 3:
http://forum.xda-developers.com/showthread.php?t=566669
Cyan 1.4 is pretty old now
Ace42 said:
You need the newest Amon Ra recovery of course, it has the option to upgrade to 4 after upgrading to 3:
http://forum.xda-developers.com/showthread.php?t=566669
Cyan 1.4 is pretty old now
Click to expand...
Click to collapse
thanks bro, I feel dumb since I have Amon's old recovery never thought to look if he had an upgraded version :/ ... anyway how's the darkstar theme port to eclair 2.1 coming?
You stick it into your computer and run the command "mkfs.ext4 /dev/whatever".

Categories

Resources