Remove All Ads from XDA

[MOD][RECOVERY] Firerat's Custom MTD Partitions (resize Data,System and Cache)

616 posts
Thanks Meter: 26
By Foo_Blyat, Senior Member on 14th August 2010, 09:51 PM
Post Reply Email Thread
If you dont understand what this Modification is doing, why it needs to be done, or what possible benefits come from it, then...



***Even tho it is impossible to brick your phone when flashing this i still highly recommend you UNDERSTAND what you are attempting to do before you do it. If someone explains you are freeing up internal memory from other places not using it and you still have to ask what the benefit is, then you obvisouly dont fully understand the mod and your phone and should turn away now.***

Thank You.

Now onto the mod: Heres a quick description of what this mod is doing. Pretend your phone is a pizza cut into 3 even pieces. Each piece is memory for /cache, /system, /data. Your aneroxic sister "aka cache" doesnt eat a lot so most of her slice will always be left, your fat obese brother "/data" always eats his whole slice and is left wanting more. You are healthy "/system" and only eat what you need and never less never more.

What this mod is doing is taking that original pizza and RECUTTING the slices to better fit whos eating them, so since your aneroxic sister barely eats and your obese brother is always hungry it takes all the extra pizza "aka memory" from your sister and gives it to your brother. As for you "aka /system" you only eat exactly what you need "aka the size of the rom and files it install" so it resizes your own slice to exactly the number it needs to install the rom and its gapps/files and leaves you with just a little wiggle room.

That being said, i tried this on my buddies CDMA Hero that i rooted for him and it worked like a charm. he went from something around 170mb internal storage to around 350+mb internal storage while on CM6 - Froyo 2.2.

***One thing i noticed when using a hero CDMA is that adb is crucial. one of the steps after flashing the recovery file is to reboot back into recovery and i noticed it was impossible to do it the right way without plugging your phone in and using ADB***

Original Files and Instructions: Firerats Original G1/MT3G thread found here -

After you read thru firerats original instructions just know that itll be slightly different on your hero!

1. Click on the link i posted above and download these files: and

2. Put both those files onto your SDCard.

3. While in your SDCard, make a .txt file named "mtdpartmap.txt"

4. Open your new mtdpartmap.txt file and...
- If you are using CM6 then type
mtd 102 2
- If you are using a larger Sense Rom like Fresh or ZenHero then type
mtd 182 4
5. Once all 3 files are saved on the root of your SDCard, reboot your phone into recovery

6. Format/Wipe your system and cache.

7. Flash the file:

8. Once the file is done flashing, itll prompt you to wipe cache, system, and dalvik again.

9. Once its wiped, plug ur phone in and pull up command to adb reboot recovery (if you try to reboot into recovery any other way itll mess up the partitions and ull get cache memory.log errors and that will mean the mod didnt work correctly) by using this
adb shell
reboot recovery
10. if you did step 9 correctly, then youll get back to your recovery menu and itll say "formatting cache..." at the bottom of your screen but your recovery menu is instantly able to be used and you dont have to wait. ***On the newest version i think it no longer says this and your just got to go***

11. Flash CM6 if you used 102 for /system or Flash your larger Sense Rom if you used 182 for /system

12. Optionally, flash any kernal you may be choosing to use

13. Flash the file:

14. Click the top option on your recovery menu to reboot your system.

15. Once your system is fully booted you can go into menu > settings > sd card and internal storage , and check all the new added internal memory you have.

FYI : anytime you flash a new rom after this mod, or flash a new kernal to a currently flashed rom, you will ONLY NEED TO FLASH THE SECONDARY FIRERAT BOOT file named "".

so say after this mod you want to try a new kernal, you flash the kernal, flash boot, and reboot the system.

or say you want to flash a new cm6 nightly update, you flash the new rom/update, flash boot, reboot.

or say u want a new nightly and a new kernal, you flash the nightly, flash the kernal, flash the boot, reboot.

its very simple, if anything u flash overwrites current kernal specifications, u need to flash the boot file to make sure it knows how to set itself up. this goes for nandroid back ups aswell.

Fine Tweaking/Trouble Shooting: To get the most space you possibly can do go into adb or terminal and type
df -h
and it'll tell you what % you are using on your system. if you are at 60% then you can go ahead and decrease your /system value in your mtdpartmap.txt to about 2mb over the value it says you are using. so if your rom uses 115mb of /system you can change your mtd to "mtd 117 2".

So if you are getting an error while trying to flash a rom after doing this modification you most likely dont have enough /system space and will want to up your value to something more then enough like "mtd 200 4" then run the above code and re-scale down back to 2mb over what the current rom is using.

Enjoy CDMA users!!!
The Following 14 Users Say Thank You to Foo_Blyat For This Useful Post: [ View ] Gift Foo_Blyat Ad-Free
14th August 2010, 09:56 PM |#2  
Senior Member
Flag Boston, MA
Thanks Meter: 182
Donate to Me
Not sure if Ill try this personally, but thank you.
14th August 2010, 10:00 PM |#3  
Foo_Blyat's Avatar
OP Senior Member
Flag Chicago
Thanks Meter: 26
Originally Posted by tailsthecat3

Not sure if Ill try this personally, but thank you.

Trust me, well worth it. At first i thought it was amazing gains on the g1 and mytouch, but after being the first person in the world to try it on the Sprint Hero CDMA the benefits blow all passed expectations out of the water.

It nearly doubled my buddies internal memory.

i remember on his stock rom with a handful of his favorite apps he was at around 40mb internal memory. after i rooted his phone and flashed FRESH HERO onto his phone with apps2sd he had around 150, now with this mod-cm6-apps2sd hes got over 300.
15th August 2010, 12:36 AM |#4  
Senior Member
Thanks Meter: 112
my win7 drivers are goofy and sometimes won't do adb when its in recovery mode. if you screw up the restart part - ie: can't get into adb to reboot by typing the command and those messages appear - is the device bricked or anything? Is it a one-time? Recoverable? etc...
15th August 2010, 11:57 AM |#5  
hunterd13's Avatar
Thanks Meter: 9
thank you for the info. i was down to bout 20 mbs free and now well over 100. kept running into problems until i changed the cache size to a little bigger. i had a spare hero to experiment with so alls good.
15th August 2010, 05:19 PM |#6  
Senior Member
Thanks Meter: 6
Skeptical...idk why. I don't wanna risk bricking yet another Hero I guess.
15th August 2010, 07:31 PM |#7  
Senior Member
Thanks Meter: 438
Originally Posted by SammyM00782

Skeptical...idk why. I don't wanna risk bricking yet another Hero I guess.

Can you please enlighten us as to how you bricked your Hero?
16th August 2010, 01:26 AM |#8  
danaff37's Avatar
Senior Member
Flag Saint Petersburg, FL
Thanks Meter: 899
I've been thinking about trying this. I hate having 80+ mb free in system that I can't use. Would love to just add it to /data
16th August 2010, 02:52 AM |#9  
zenulator's Avatar
Retired Recognized Developer
Thanks Meter: 309
Donate to Me
This won't brick your hero. The only way you can brick it is by flashing the wrong bootloader or radio. This does none of these.
The Following User Says Thank You to zenulator For This Useful Post: [ View ] Gift zenulator Ad-Free
16th August 2010, 03:03 AM |#10  
Big-O-Devil's Avatar
Senior Member
Flag Miami
Thanks Meter: 30
Hey has anyone tried this on a different rom..
The Following User Says Thank You to Big-O-Devil For This Useful Post: [ View ] Gift Big-O-Devil Ad-Free
16th August 2010, 03:43 AM |#11  
Senior Member
Thanks Meter: 6
Originally Posted by oldjackbob

Can you please enlighten us as to how you bricked your Hero?

Well.....first time was an accident. First time rooting, first time messing with a phone. I just kinda jumped right into it because when I found XDA it was pretty exciting. I always support the small guy coming from small businesses my whole life. Anyway, second time was probably due to incorrectly flashing a rom or something but regardless, I went to reboot and the phone was totally unresponsive afterwards. I trust you guys though, especially the devs. So do you think it's worth a shot?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes