yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] dsMA:
[Q]

Is it possible to change the partition sizes without wiping and flashing the rom again?

OK so this question prob doesn't make any sense so let me explain what I mean. What I want to do is after initially applying the mod, I want to go in abd delete apps from system/app, I then want to resize the system partition to recovery that now unused space. Is this possible?

I suppose I could apply the mod, delete the apps, nandroid back up, modify mtdpart, apply mod from step 1 using nandroid restore....is this the way I would do the above or can I just modify the mtdpartmap file the flash recover and then flash boot?
[Hero CDMA Android Development] dsMA:
I am running cm6 and I have this mod working for me. I am using 2.2s native support for moving apps to the sdcard. It is pretty nice because I don't have to partition the card any more since it will read fat32 just fine. Apps are installed to android.secure folder on the sdcard.

As for when your using internal storage I am not sure where they are being installed too. I thought apps were installed to system/app but maybe only the apps that are part of the rom are installed there because I couldn't find any of my installed apps there.
[Hero CDMA Android Development] Bowlsnapper:
Dude, guys.......... what in the world are you filling all your nands up with? Like 80 3meg apps? Holy crap man. I have my emulators, wiimote crap, xda, barcode reader, and some other things that are all 1-3 megs in size each. I have never even come close to filling it.......

What awesome resource-depleting activity am i missing out on here? Shizzle...
[Hero CDMA Android Development] KyleIsTheBeast:
Well, I am back to report this. I am using BitterSweet V2.0 Beta 2. (It is a modded version of the Cellular South 2.1 RUU ROM) and apps install into /data/app and private apps install into /data/app-private. I have tried doing this 3 times already now and I am still getting the "Insufficient Storage" error! I did notice this though, in step 10, it says "itll say "formatting cache..." at the bottom of your screen". This did NOT happen for me. It just booted up the recovery. Any help PLEASE?!?!
[Hero CDMA Android Development] Firerat:
not sure if people are still having problems with the size of cache

the important thing is the boot script 06BindCache

this bind mounts /sd-ext/cache ( or /data/cache if sd-ext is not mounted )

by default this script is installed to /system/etc/init.d

most cm based roms will correctly execute this script, if you not using a cm based rom then you may need to work out how to get the script executed on boot.. If you link your rom in the original thread I may be able to help with that ( and possibly 'automate' in a future version )

you can quickly work out if it ran by doing

su
df

in terminal

if you see a line containing /dev/cache the script ran ok

nb, if you have a froyo based rom, you don't actually need cache at all ( older roms use /cache as a temp space for market, froyo uses /sdcard/download )

due a re-write very soon, and seeing as this is working on none dream/magic I'm going to try and improve on the default system size logic ( will look at the current used size of system, will fit most peoples need by default this way )

I've put the 'source' up on github

http://github.com/Firerat/CustomMTD

v1.5.5 is not stable ( will probably work )

tbh, if its working you don't need a new version ( development is to improve compatibility )
[Hero CDMA Android Development] aiwetir:
use the one with the same version number as you are using for the others. Fyi, mine doesn't really seem to work so I usually mtd 170 130, I probably just need to download fr-remove again.
[Hero CDMA Android Development] ch1naski:
Ah. That would be KEEPING fr installed, just with enough space to go stock, right?

And anyway, if I REALLY wanted to get rid of it, there's always RUU.
[Hero CDMA Android Development] 24601:
If you flash a new recovery, or reflash your recovery it will also erase the firerat settings.
[Hero CDMA Android Development] aiwetir:
I suppose you are right and I'm not even drunk.

posted via tappa tappa tappa
[Hero CDMA Android Development] shortarm:
i've got a question. i seem to be turning up weird things this weekend.

when i did firerat's this time (1.5.8), i did 125 25. mainly because i didn't want to mess anything up and i don't think i need more than 300 for data.

everything was working fine until i went to use the market and realized/remembered that i hadn't re-done sobe's fix for the market after this install.

i got an unexpected message when i went to mkdir /cache/download : "can't create directory 'cache/download': Out of memory"

how can i be out of memory if i set it to 25?

i thought it must be some kind of mistake. maybe i didn't set it to 25.

so, i did df -h and saw that in fact i did have 25 and 0 available / 100% full.

I rebooted to recovery and cleared the cache and rebooted. went into df -h and it was now 1.1 and 95% available. Sobe's Market fix was a success. I am downloading from the market a-ok now.

So after all that, my question is: how did my cache fill up to 25 and why is not at 1.1?
[Hero CDMA Android Development] aiwetir:
It's happened to me twice on first run, I'm not sure, but it's probably building dalvik on cache then running out of room. rebooting shows that cache is full so it puts it on data after that.
[Hero CDMA Android Development] ch1naski:
easy enough.

π

sent from GB hero.
[Hero CDMA Android Development] old.ghost:
Will try out, thanks.
[Hero CDMA Android Development] jcj77d:
i had to update my prl, so i redid this mod from 115 2 (running cm6.1) to 160 4 to nand restore my sense rom to update prl, & it did & everything went fine.

but when i redid my partitions back to 115 2 & nand restored my cm6.1 rom, which went just fine, but now when i go to recovery (ra 1.6.2), theres an error msg at the bottom that says: E: error in CACHE/recovery/log not enough space on device:confused:, why is it saying this?,, as everything loads fine, & phone says i have plenty of space 343mb total & 171mb free, so why am i getting that error msg, & how can i fix it?

oh yea,, wooo hooo, i just called sprint & complained about my poor signal i get in my house, & they gave me a FREE Airave & even waived the monthly fee:D.

i mean poor signal, ive seen it @ -136dbs, & usually stays around -98dbs, & the highest its ever been was -93dbs or 2 bars, & my data is even worse, it is mostly @ 1x, not 3g w/ DL speeds of under 120kbps, like 50-90kbps is what it usually DL's at.
[Hero CDMA Android Development] vayman:
I've seen that message before when restoring a nand and it's been reported throughout this thread to just ignore it. If your ROM/nand boots up and everything is fine then you're good to go! ;)
[Hero CDMA Android Development] Drunkpilot:
You really don't need anything larger than 2mb for the cache because it will be symlinked into the data partition (at least from what I have read on this thread from Firerat and others). I know this to be true with 2.2 and 2.3 anyway. Just make sure that you have enough room for your system or you will get bootloops or other anomalies. I have (mtd 110 2) on aosp/cm7 4/29 with a theme and still have a good 10mb over, just in case I want to add a different boot animation or something.
[Hero CDMA Android Development] oostah:
which version works best for the hero. i havent used this sense 1.5.3 i see newer ones. thanks for any info/help

edit i got it thanks lol
[Hero CDMA Android Development] chiill:
So what did you find out? I've been using 1.5.7 and wondering if I should bother with the newer versions.
[Hero CDMA Android Development] il Duce:
I think the version numbers don't actually change the functionality of firerats, it's just adding support for more devices. I am currently running 1.5.8, and last I checked the newest version was 1.5.9. I have used 1.5.3 as well.
[Hero CDMA Android Development] vayman:
You're correct duce. The newer versions are just support for more devices. I've only ever used 1.5.3 myself. :)

Sent from my Sweet Gingerbread Super HeroC
[Hero CDMA Android Development] oostah:
im using 1.5.6 it said it was stable. so went with it. i know over on there thread they was talking about one of the newer ones that we will be able to just flash reboot to recovery flash rom. no wipe to save some steps. dont know if they ever got it.

edit wrong thread sorry
[Hero CDMA Android Development] aiwetir:
If I'm not mistaken the newer versions let you make partitions with smaller increments.
[Hero CDMA Android Development] madeSICC:
Been using this with aosp2.3 for a while and just went back to 2.2. I am using the same partition size as before but wanted to se how much space I am using. When I put df -h into TE is says the directory doesn't exist. Any idea why?
[Hero CDMA Android Development] il Duce:
Did you su first? You could try "busybox df -h" too
[Hero CDMA Android Development] jasonmaloney:
il Duce's solution is correct. In case you were curious as to the "why" -- the `df` command in this ROM image is symlinked to `toolbox` which doesn't support the -h parameter. It's trying to find a directory called `-h` instead.
[Hero CDMA Android Development] madeSICC:
Thanks for the help guys. The busybox commaand worked.
[Hero CDMA Android Development] chiill:
Thanks! I guess I'll stay with what's working.
[Hero CDMA Android Development] gigermunit:
Is there anyway of me changing me recovery to a new version without having to start my phone from scratch?
[Hero CDMA Android Development] jasonmaloney:
Flash a new recovery from recovery using flash_image, and then immediately flash fr-recovery before rebooting. That should be all that's necessary.
[Hero CDMA Android Development] gigermunit:
Anyone else agree?
[Hero CDMA Android Development] kyouko:
i do /10char
[Hero CDMA Android Development] gigermunit:
Exactly how do I flash before rebooting btw?
[Hero CDMA Android Development] jasonmaloney:
While in recovery, you put the recovery image on the sdcard and use flash_image via adb. Then, before doing anything else, while still in recovery, you immediately flash fr-recovery.
[Hero CDMA Android Development] gigermunit:
Alright thanks mate.
[Hero CDMA Android Development] motoelliot:
Brand new fr user here,(don't know why I was so scared it was easy) one question tho... if I change partion sizes do I have to start all over or just re-flash fr boot? A lil confused still...

One more thing. Does neone have a hercimg. Of 2.5.0.7 recovery I can keep on SD root? Just in case. I'm s-off. ;)

Sent from A.W.E.S.O.M-O
[Hero CDMA Android Development] kyouko:
Here ya go
[Hero CDMA Android Development] unCoRrUpTeD:
SIMPLE:

If you flash a new ROM then you need to flash fr boot after flashing the ROM.

If you change the size you will need to

wipe

flash fr recovery

wipe

flash rom

flash fr boot

If you want to remove this mod, either flash the remove zip or reflash amonRA or cwm recovery.
[Hero CDMA Android Development] c00ller:
Long way, I've used it and it works

0) modify mtdpartmap.txt

1) nandroid backup

2) wipe all

3) flash fr-recovery

4) wipe all

5) reboot recovery

6) restore nandroid backup

7) flash fr-boot

8) reboot normally

jasonmaloney's method a few posts back is much shorter and might work too since flashing a new recovery and flashing fr-recovery does essentially the same thing
[Hero CDMA Android Development] motoelliot:
Thanks guys got it now...

Sent from A.W.E.S.O.M-O
[Hero CDMA Android Development] <Spartan>:
Ok, I'm sorry if this has been asked before but does anyone know what to type in the mtdpartmap.txt file, I don't have either of the rims mentioned in the instructions. I have the latest version of AOSP GB CM7.
[Hero CDMA Android Development] 808Bill:
If you set the partitions to 80 4, you should be fine.
[Hero CDMA Android Development] 24601:
With a full set of gapps you may need closer to 90 for system. Install the rom first without firerat settings, type in df -h in terminal emulator and see what you have for system size. Add 5 mb to that number and use it as your system number.
[Hero CDMA Android Development] alexdemonumber3:
Kyouko, I've been looking for a copy of a HERCIMG.zip with cwm 2.5.0.7 in it, I tried flashing via hboot of course, and no luck :( any ideas?
[Hero CDMA Android Development] kyouko:
er... that one I attached before doesn't work? :confused:

I know it's cwm 2.5.0.7 and that the one I have on my sdcard works fine (even though I'm using FireRat, just hboot flashed it to test and it worked for me)

What exactly isn't working?

- HERCIMG.zip doesn't show up in hboot

- HERCIMG.zip fails to apply

- etc.

Edit: attached the zip I just tested again.

make sure it's on the root of your sdcard (/sdcard/HERCIMG.zip)
[Hero CDMA Android Development] alexdemonumber3:
The first one you posted said it applied but wouldn't boot into cwm recovery? :/ I'm trying this one though, thanks a bunch, ill let you know how it goes!
[Hero CDMA Android Development] alexdemonumber3:
Well I tried it again and no luck :/ the funny thing is; darch's 1.7 recovery, cwm 3.0.0.5 and cwm 3.0.2.8 all successfully flash via hboot...? Im not sure why..
[Hero CDMA Android Development] kyouko:
Lol..uh we have to find out if the zip works for anyone else then :D

for all those other recoveries did you make the zip yourself or download them? Regardless of how you got them, you can use the cwm 2.7.x.x img you have and replace it inside one of the other HERCIMG.zips you have that did work.

If you don't have the 2.7.x.x recovery image, download it with ROM Manager - don't use the one I posted.. just to see if that's the problem or not.
[Hero CDMA Android Development] vayman:
+1 I use 90 for /system on 4/29 aosp and the OP gapps.

Sent from my Super Sweet Gingerbread HeroC
[Hero CDMA Android Development] alexdemonumber3:
Thanks for the help kyouko, wish me luck! Lol I definitely need it!
[Hero CDMA Android Development] il Duce:
Here's my hboot zip of cwm 2.5.0.1, just rename it to "HERCIMG.zip"

http://dl.dropbox.com/u/5669105/HERCIMG2501.zip
[Hero CDMA Android Development] Jurellz:
How Do You Remove This MOD ? When i backup a file in recovery and then try to reboot it stays on htc screen and im getting really pissed at this and eventually ill have to reflash the whole rom and start over.
[Hero CDMA Android Development] Riff76:
Go to the top of this screen and click on "Search this Thread"
[Hero CDMA Android Development] Jurellz:
there is no 1.5.3 remove file
[Hero CDMA Android Development] c00ller:
To remove the mod just reflash your recovery. Also, are you sure you flashed fr-boot before rebooting?

You can find all the firerat files here

http://www.mediafire.com/?lifib6a9ptj5j#0,1

you could also flash fr-remove. It should do the same thing as reflashing recovery.
[Hero CDMA Android Development] alexdemonumber3:
Thanks man, testing it shortly. I appreciate the help!
[Hero CDMA Android Development] alexdemonumber3:
@il dice, hboot didn't seem to recognize the HERCIMG.zip :( there is something seriously wrong with this phone :/
[Hero CDMA Android Development] laie1472:
Check you q&a thead. I posted a link there

Root/Hack-Mod_Always *
[Hero CDMA Android Development] <Spartan>:
24601 and 808Bill thanks for your help.
[Hero CDMA Android Development] Sputnikk23:
I have a few questions please...

I'm interested in expanding my memory. Currently running CM7, can I still do this mod?

Also, i understand you need to completely wipe before attempting this but is it possible to do a backup in clockworkmod, wipe, resize partitions and restore the backup onto the new partitions - essentially resulting in the same setup you just had with this mod in place?
[Hero CDMA Android Development] 24601:
Yes, and yes. FR works with CM7. To keep your setup:

1. Change (or create) mtdpartmap.txt to 130 18.

2. Nand backup

3. Factory/data reset

4. Mounts and Storage > wipe system and boot

5. Flash FR recovery 1.5.8

6. Wipe data, system, cache

7. Reboot recovery

8. (Optional) Wipe data, system, cache

9. Restore nand backup

10. Flash FR Boot 1.5.8

11. Reboot
[Hero CDMA Android Development] Sputnikk23:
thank you.. x10

Edit: i'm reading the pri hilarious thread in your sig.. ... HAHAHAHAHHAHA

"This thread will serve as an excellent Penis Removal Interface for the op and his boyfriend."
[Hero CDMA Android Development] <Spartan>:
Is there a benifit to using 1.5.8 vs 1.5.3?

Sent from my Aosp 2.3.4 Firerat 1.5.3 Hero, thanks devs
[Hero CDMA Android Development] il Duce:
Yes, read the discussion between jasonmaloney and 24601 in the last few pages of the CM7 nightlies thread - or maybe it was the CM7 official thread....

EDIT: or read below ;)
[Hero CDMA Android Development] 24601:
jasonmaloney has pointed out that 1.5.8 contains updated script for dealing with market and cache. With 1.5.8, you do not need to do either ninja's market fix (06BindCache removal), or s0be's market fix script.
[Hero CDMA Android Development] il Duce:
Also, it's newer. No wonder when you all switched to 1.5.8 the market fix was unneeded, it only took a ninja to explain the code lol.
[Hero CDMA Android Development] aiwetir:
this explains why I didn't need the market fix. market however works much smoother if I delete 06BindCache, unless something else changed recently.

posted via tappa tappa tappa
[Hero CDMA Android Development] 24601:
AFAIK 1.5.8 does not create 06BindCache, thus no need to delete.
[Hero CDMA Android Development] <Spartan>:
Can someone tell me where 1.5.8 is or give me a link? I've checked the thread linked in the firerat instructions and it only has up to 1.5.6

Sent from my Aosp 2.3.4 Firerat 1.5.3 Hero. Thanks devs and xda community
[Hero CDMA Android Development] il Duce:
Its the same instructions, use the link in the op for the mediafire site with all the versions.
[Hero CDMA Android Development] aiwetir:
It does, it's there every time I flash cm nightly. Unless I've somehow named all my fr files incorrectly.
[Hero CDMA Android Development] c00ller:
I can confirm, 1.5.8 was the only version of firerat's I've ever used and it's always there after flashing fr-boot.
[Hero CDMA Android Development] jasonmaloney:
This is incorrect. The 1.5.8 variant changed the threshold for creating the cache-bind script from 30M to 15M. So if you use a cache size greater than 15M, the script does not get created.

And if you use a cache size less than 20M, CyanogenMod will correctly handle market downloads. So the best bet is to go with 1.5.8 using 18M cache partition.
[Hero CDMA Android Development] 24601:
Thx ninja, for correcting my inaccurate information :o
[Hero CDMA Android Development] oOMavrikOo:
I've been pondering whether or not to try this mod for a long time but haven't had any success getting adb to install on my computer. Is there any way to flash this without adb?
[Hero CDMA Android Development] dpeeps74:
You don't need adb if you're using clockwork recovery as it has a reboot recovery option.

~maybe I set it too high...
[Hero CDMA Android Development] oOMavrikOo:
Really? So I can just do it all from the phone? Very awesome! What are the values for using aospCMod?
[Hero CDMA Android Development] 24601:
I installed aosp's 5/23 last night and my system size is 76. If you use 1.5.8, you need to have your cache set between 15 and 20 to have Market d/l properly without using any tweak or fix. I would use mtd 85 18.
[Hero CDMA Android Development] oOMavrikOo:
Please forgive the newbie question, but when I create the .txt file, do I just add ".txt" to the end of the file or is there an option to create that particular type of file? I'm doing everything from the phone mind you.
[Hero CDMA Android Development] il Duce:
You can do it with root explorer.
[Hero CDMA Android Development] oOMavrikOo:
Thanks
[Hero CDMA Android Development] oOMavrikOo:
Just to make sure... are the instructions in the OP up to date? Do I need to do anything differently than what is already described (other than the values which have already been given to me)?
[Hero CDMA Android Development] il Duce:
They are fine, other than using CWM to "reboot recovery" instead of ADB. The ADB way still works, but it also works using CWM for that specific step.
[Hero CDMA Android Development] vayman:
Yes, the OP instructions are up to date. In step 9 though you'll be "rebooting recovery" from CWM and not adb as dpeeps suggested. ;)

OFF TOPIC: Congrats Duce! I just saw that you're gonna be a daddy! Way to go man!

EDIT: Duce beat me to it!
[Hero CDMA Android Development] oOMavrikOo:
Edit: Do I need to be on the latest version of CWM? I'm on the one before the latest release.

Thanks guys... and congratulations on the baby bro!
[Hero CDMA Android Development] oOMavrikOo:
Ok I did everything according to the directions with the exception of using adb and I used the values mentioned earlier for the new release of AOSP. Everything seemed to work properly and rebooted fine, but after flashing only the 3/25 GApps, I only have 156 out of 160 total memory. What did I do wrong? I'm gonna try again without the GApps and see if that helps.

Edit: I think the first time I formatted the boot on the second wipe after flashing the FR-recovery file. Was I not supposed to do this?
[Hero CDMA Android Development] il Duce:
Thanks (and thanks vayman)

I have done FR with CWM 2.5.0.1, 2.5.0.7, 3.0.2.4 - all are fine AFAIK.

EDIT: saw your latest post. What did you set your mtdpartmap.txt to? Also, after flashing ROM/gapps did you remember to flash FR boot?
[Hero CDMA Android Development] trip187:
Did you flash the fr.boot.zip after flashing gapps? Everytime you flash something (gapps, kernal, whatever) you have to flash the fr.boot.zip before you reboot

Edit: Duce beat me to it
[Hero CDMA Android Development] oOMavrikOo:
I think the first time I tried the mod I formatted the boot on the second wipe after flashing the FR-recovery file. Was I not supposed to do this? I'm trying it again without formatting the boot on the second wipe. And yes, I'm flashing the FR-boot file.
[Hero CDMA Android Development] il Duce:
It's not necessary, and it won't hurt either, it must be some other step you are missing...
[Hero CDMA Android Development] trip187:
Depends. After flashing the recovery you MUST reboot your recovery before doing the second wipe
[Hero CDMA Android Development] oOMavrikOo:
Woooooooohoooooooo!!! 323/357!!! Is that right? Am I reading this right?
[Hero CDMA Android Development] oOMavrikOo:
I didn't reboot my recovery. I just pressed the back button after the wipe and installed the zip. Anyway, I've got ass amount of memory now!
[Hero CDMA Android Development] trip187:
That's it. Nice huh. Now on to the market fix ;-p
[Hero CDMA Android Development] il Duce:
That's not needed on FR 1.5.8 with a cache of 18, fyi...
[Hero CDMA Android Development] trip187:
Really, I did not know that. Thanks. Btw, Congrats on the baby.
[Hero CDMA Android Development] oOMavrikOo:
I DLed everything and used the values mentioned earlier and the Market still won't DL anything. How do I fix the Market?
[Hero CDMA Android Development] trip187:
if your market isn't downloading correctly donate all your money to s0be ;P!

He is the man and fixed it.

Here is the s0be's fix.

Type these commands in Terminal Emulator. Press enter after each line

su

mkdir /cache/download

chown system:cache /cache/download

chmod ug+rwx /cache/download

chmod a+x /cache/download
[Hero CDMA Android Development] oOMavrikOo:
Thanks. I went ahead and found the 1.5.8 and did a nand restore. I'm just gonna do it all over again with the latest build. Thanks for everyones help!

Edit: I just did my restore and got a message saying there was no more space on the device. Will this keep me from rebooting?
[Hero CDMA Android Development] oOMavrikOo:
I flashed the newer version and all is well. I love this mod and all this free memory. Thanks devs!
[Hero CDMA Android Development] NineInchNails:
I've finally needed to use this mod lol.. I showed the old lady how much space I had compared to her 17mb left. Still won't let me root it ;) less problem for me but having the extra room is pretty nice now. Just never dl'd enough apps to want it til now.

®paralell universe®