i am currently runnning HERO ROM , if i back Up my sd card and re partition my sd card for 96MB linux swap , do i have to re flash the rom over ?
also im doing this because i hear runninq a 96MB linux swap , makes the Hero rom run smoother nd faster , any truth to this before i re partition ?
also any inputs?
thnx
96 from what i hear is good but starts to lag after a while. also if you just re-partition the linux-swap then you shouldn't have to flash the rom, but if you do ext3 as well then you should re-flash the rom
i vee been reading and relize i have to try a couple of settings , question bro if i repartion the linux swap dont i have to re partition everything else as well ?
GangstaThug420 said:
i vee been reading and relize i have to try a couple of settings , question bro if i repartion the linux swap dont i have to re partition everything else as well ?
Click to expand...
Click to collapse
it depends on how big your current ext3 and linux-swap partitions are.
if the ext3 partition is between 500 and 600mb then you should not have to touch the fat32 partition. what i would recommend doing though (do this once and it will give the ability to easily try out different sizes for linux-swap)
in recovery console in cyanogen's 1.4 recovery image. use this formula for your partition sizes
total size of card=xx linux-swap=96mb ext3=500mb (thats what recommend by most everyone)
xx-96=y
y-500=z
substitute the actual numbers in for the variables in below
back up anything on your sdcard that you do not want to lose!!!
Code:
parted /dev/block/mmcblk0
print (look for the number by disk size /dev/block/mmcblk0)
rm 1
rm 2 (if it exists)
rm 3 (if it exists)
mkpartfs primary fat32 0 z
mkpartfs primary ext2 z y
mkpartfs primary linux-swap y xx
quit
upgrade_fs
ums_enable (while plugged to computer will mount sdcard, now put rom on phone)
ums_disable (will unmount sdcard)
reboot recovery
now you can wipe and flash your rom
whenever you want to change the size of your linux-swap to something less then 96mb. again this in the recovery console
x=some number in previous linux-swap boundaries (can be start point)
y=some number in previous linux-swap boundaries (can be end point)
Code:
parted /dev/block/mmcblk0
resize 3 x y
quit
reboot
there you go.
in case you are wondering, yes i like math
Related
what does it mean to convert ext 2 to 3 or ext 3 to i dont understand what that means? what does it do? is it necessary?
Basically it helps against your second partiton from getting corrupted during shutdown. Its a good thing to do and if you have cyanogen's recovery image just boot into recovery, go to the recovery console hit enter and type "upgrade_fs" without quotes then wait for the # prompt to appear again and type "reboot" without quotes and you are set. Sorry for the bad format i'm using my g1 to type
so do i do it when i have an ext3 linux swap?or do i do it when theres only an ext and ext2?
k1293 said:
so do i do it when i have an ext3 linux swap?or do i do it when theres only an ext and ext2?
Click to expand...
Click to collapse
is your sdcard partitioned as so fat32, ext2, linux-swap or either fat32, ext2? it will only apply to the ext2. it doesn't matter if you have 100 partitions upgrade_fs targets /dev/block/mmcblk0p2 which is your second partition.
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?
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.
My phone constantly tells me it's running out of room. I used to be able to have 10+ apps, but I now only have 4 and it still gives me the message sometimes. I've slowly had to keep removing apps as it keeps appearing even though I remove apps.
I have no documents, no music, no videos, etc. on the phone. My four apps total less than 4MB.
What the hell is wrong? Is there a way to "clean up" the phone?
what build are you running?
thoughtlesskyle said:
what build are you running?
Click to expand...
Click to collapse
myn's latest release.
have you tried cleaning out your cache? A lot of people said web browsing alone would start eating up space. look in the recommended apps thread for recommendations
Yes, look for the app "CacheMate" in the market or online. It will clear all cache and speed up/clean up your phone. Also, if you ever find yourself running out of room because of so many apps (not really the case here, though) I strongly recommend doing system on NAND and data on SDCard Partition (ext2 partition). You can set an ext2 partition on your card from within android on the terminal. I reallly like it because you can have like 500mb for data, rather than the 128mb or whatever is available on our phones. Let me know if you'd like instructions or help with CacheMate or setting up a data partition.
Thanks guys.
I found a TON of downloaded .apk files from the market in /cache so I deleted them and I'm good to go.
drewden123 said:
I strongly recommend doing system on NAND and data on SDCard Partition (ext2 partition). You can set an ext2 partition on your card from within android on the terminal. I reallly like it because you can have like 500mb for data, rather than the 128mb or whatever is available on our phones. Let me know if you'd like instructions or help with CacheMate or setting up a data partition.
Click to expand...
Click to collapse
Hey, can you please let me know how I can set up a data on an ext2 partition. I have a 1gb ext2 partition but and changed the boot menu to "data on ext2 partition" but when I check the Internal Phone Storage in settings, it shows a low MB free and not the around 1GB like I thought. You mentioned something about the terminal... thanks
my2sense said:
Hey, can you please let me know how I can set up a data on an ext2 partition. I have a 1gb ext2 partition but and changed the boot menu to "data on ext2 partition" but when I check the Internal Phone Storage in settings, it shows a low MB free and not the around 1GB like I thought. You mentioned something about the terminal... thanks
Click to expand...
Click to collapse
Ok, first try choosing the option "Data on SDcard partition" that is the option you want. If you choose "Data on ext2 Img" it will do it on your fat32 partition of your memory card. Let me know if you need more guidance.
Ah, that's what I was missing, I didn't know I was suppose to choose the "data on SDcard partition" although it makes total sense now.
The weird thing is my card was originally partitioned like this:
6.5GB FAT32
1.0GB ext2
32MB linux-swap
It didn't work and kept telling me that there wasn't enough room. I deleted the 32MB linux-swap and combined the partitions to:
6.5GB FAT32
1.xGB ext2
and it told me that it couldn't find any ext2 SD partition so I finally formatted it like this just for the heck of it:
6.5GB FAT32
32MB linux-swap
1.0GB ext2
and it worked! I've read a lot of stuff on app2sd and they always stated to format the SDcard like how I had it originally. Oh well, thanks for the help.
Yeah, i just had to reformat mine to 1: fat32 2: swap 3: ext2, if swap and ext2 were flipped then it tried to use the swap part as an ext2 part
mrono said:
Yeah, i just had to reformat mine to 1: fat32 2: swap 3: ext2, if swap and ext2 were flipped then it tried to use the swap part as an ext2 part
Click to expand...
Click to collapse
It's because the installer is hardcoded to look for the 2nd part for system and 3rd for data. So if you only have two partitions, it won't let you put data there.
As far as the internal phone storage - I think it shows the remaining space on the system partition, not the data partition.
mrkite38 said:
It's because the installer is hardcoded to look for the 2nd part for system and 3rd for data. So if you only have two partitions, it won't let you put data there.
As far as the internal phone storage - I think it shows the remaining space on the system partition, not the data partition.
Click to expand...
Click to collapse
I had 3, just with swap and ext2 changed positions, it worked in V4 but not V5 of warm donut
mrono said:
I had 3, just with swap and ext2 changed positions, it worked in V4 but not V5 of warm donut
Click to expand...
Click to collapse
Interesting... the installer doesn't care what file system is there, it reformats it anyway if you 'wipe data.'
Code:
elif [ $RM_dataloc -eq 1 ] ; then
if [ $RM_wipedataforsys = "yes" ] ; then
/bin/mke2fs -F /dev/block/mmcblk0p3 > /dev/null
So could you set it up with 4 parts, fat, ext2, ext2, swap? I've never used swap...
mrkite38 said:
Interesting... the installer doesn't care what file system is there, it reformats it anyway if you 'wipe data.'
Code:
elif [ $RM_dataloc -eq 1 ] ; then
if [ $RM_wipedataforsys = "yes" ] ; then
/bin/mke2fs -F /dev/block/mmcblk0p3 > /dev/null
So could you set it up with 4 parts, fat, ext2, ext2, swap? I've never used swap...
Click to expand...
Click to collapse
no idea, I only ever set up fat32 ext2 swap, never needed a second swap partition
How do I make an ext2 partition and can I transfer data to it without reinstalling?
What is a swap partition? Do I need one?
For those of us who want more space but want to use Myn's Warm Donut, here is how you install your data into the SD card Ext2 Partition.
First you must have your SD card formatted correctly, If you wish to format it a different way then use the following partition layout:
1: Fat32
2: Swap
3: Ext2 (512mb recomended)
You have to have all 3, otherwise it may not work.
Pro's
- More space
- Can still mount the card through the phone on the computer
- easy to switch between NAND and haret.exe
Con's
- Slower Access
- Can't remove the SD card
Required
- Micro SD card, obviously, any size.
- ADB Shell or if your VERY persistant you can do formatting all through the terminal on the phone
- Basic knowledge on how to use your computer, phone, and adb, i'm not here to hold your hand
FORMATTING
*WARNING*
BACK UP ALL DATA ON SD CARD, THIS WILL DELETE EVERYTHING ON IT.
Here's how to access adb shell and such http://forum.xda-developers.com/showpost.php?p=5544939&postcount=568
If you want to do it through adb with the phone booted or with the on phone console then skip steps 1 & 2, else skip step 2B
1 - Boot into the install console and go into recovery mode
2 - Connect your phone to your computer and go into ADB Shell
2B - Type 'su' [enter]
3 - Type the following
Code:
parted /dev/block/mmcblk0 [enter]
print [enter]
4 - Find the line that says "Disk /dev/block/mmcblk0: xxxxMB". Write this down!
5 - Delete all partitions then check to make sure they were deleted.
Code:
rm 1 [enter]
rm 2 [enter]
print [enter]
6 - Once the SD card is blank, create the primary partition. (This is the amount of space you want for your music, pictures, etc.)
Code:
mkpartfs primary fat32 0 XXXX [enter]
(XXXX = How many MB of storage you would like. Remember to leave 256-512 MB for your app partition, and about 64 MB for swap. You may need to put the number you wrote down for start in place of the zero if you are having trouble.)
7 - Create a swap partition. (Large sizes are unlikely to be useful, try 64MB or so.)
Code:
mkpartfs primary linux-swap XXXX YYYY [enter]
(XXXX = This will be the same XXXX number from step 6)
(YYYY = XXXX + [256 or 512] (or whatever size you want to make this partition)
8 - Create the ext2 (application) partition.
Code:
mkpartfs primary ext2 YYYY ZZZZ [enter]
(YYYY = This will be the same YYYY number from step 7)
(ZZZZ = The end of your SD card (the initial size you wrote in step 6)
9 - Exit parted and reboot then re-enter the install console.
Code:
quit [enter]
INSTALLING DATA
Once you have your card partitioned correctly then do the following to change /data
You must have space on the fat32 partition, 300~mb
1 - If you had the third option selected "( ) Data on Ext2 Data.img" then restore your Data.img to an andboot folder on your sd card.
2 - Load phone into the kernel install console.
3 - Ensure that your current data location is selected.
4 - Select option "5. Backup /data" and hit enter and wait for it to finish with no errors.
5 - Move up and select "( ) Data on SDCard Partition" and hit enter.
6 - Select option "6. Restore /data" and hit enter and wait for it to finish with no errors.
7 - Reboot phone and check the phone storage in the settings.
8 - Go on an installing spree with the market.
Note:
Formatting instructions taken from http://wiki.cyanogenmod.com/index.php/Apps2SD
Nice work man!!!
Thanks for documenting this.
I've linked this from Post 1 in the Warm Donut thread.
How do you enter the recovery console??
thebulletfromhell said:
How do you enter the recovery console??
Click to expand...
Click to collapse
Hold down the center button or vol up when you see the prompt while booting
That just say press enter to quit recovery mode. I just use that to mount the SD card.
thebulletfromhell said:
That just say press enter to quit recovery mode. I just use that to mount the SD card.
Click to expand...
Click to collapse
yeah when that message is on the screen just connect it to the computer and go into the adb shell
i've created fat32, swap and data partition |10k,3k,3k (roughly) is it ok?
Is there a way to do this in Windows using my card reader? This seems overly complicated.
slow88lx said:
Is there a way to do this in Windows using my card reader? This seems overly complicated.
Click to expand...
Click to collapse
no, it won't allow you to create multiple partitions on removable media.
mrkite38 said:
no, it won't allow you to create multiple partitions on removable media.
Click to expand...
Click to collapse
Windows doesn't support ext formatted partitions
mrono said:
Windows doesn't support ext formatted partitions
Click to expand...
Click to collapse
Right, but the installer will format them for you. You just need partitions. You could use diskpart to create the right structure on a hard disk, but not on a removable disk.
I don't even know where to begin with these instructions. What is "recovery mode"? What is "adb shell"?
slow88lx said:
I don't even know where to begin with these instructions. What is "recovery mode"? What is "adb shell"?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showpost.php?p=5544939&postcount=568
mrkite38 said:
http://forum.xda-developers.com/showpost.php?p=5544939&postcount=568
Click to expand...
Click to collapse
First post updated
mrono said:
yeah when that message is on the screen just connect it to the computer and go into the adb shell
Click to expand...
Click to collapse
thanks. I just did it with the builtin term emu.
I used gparted to create the partitions, and I'm not sure if I did it right.
First I simply resized my existing Fat32 partition. Second, I created a 512MB ext2 partition. Third I created a 64MB ext2 partition.
I'm trying to install Android sys on NAND and data on SD ext2 partition. How will I know if it's using the 512MB ext2 partition instead of the 64MB one?
Also, any reason not to use ext3 or ext4?
Dukenukemx said:
I used gparted to create the partitions, and I'm not sure if I did it right.
First I simply resized my existing Fat32 partition. Second, I created a 512MB ext2 partition. Third I created a 64MB ext2 partition.
I'm trying to install Android sys on NAND and data on SD ext2 partition. How will I know if it's using the 512MB ext2 partition instead of the 64MB one?
Also, any reason not to use ext3 or ext4?
Click to expand...
Click to collapse
The installer looks at the partitions in order, from the 'left' side of the card. system can only go to the 2nd partition and data can only go to the third partition.
we don't have drivers for ext3/4 iirc
So, in gparted it was 6gig Fat32>512 ext2>64 ext2. Does that mean that the data is going onto the 64 MB ext2? Does having sys on NAND even use the 3rd ext2 for swap file?
Dukenukemx said:
So, in gparted it was 6gig Fat32>512 ext2>64 ext2. Does that mean that the data is going onto the 64 MB ext2? Does having sys on NAND even use the 3rd ext2 for swap file?
Click to expand...
Click to collapse
1. yes.
2. i'm not sure, i don't ever use swap.
mrkite38 said:
The installer looks at the partitions in order, from the 'left' side of the card. system can only go to the 2nd partition and data can only go to the third partition.
we don't have drivers for ext3/4 iirc
Click to expand...
Click to collapse
If install app is hardcoded for...
- Partition-1 is for Fat32
- Partition-2 is for EXT2 (System installation)
- Partition-3 is EXT2 (Data installation)
What partition number is for the Linux Swap?
Thanks...