[GUIDE] Custom MTD Partitions for the Wildfire (Increase Internal Memory Size)

Search This thread

Scratch0805

Senior Member
Jun 18, 2011
2,133
1,279
Sheffield
Well that was strange, I tried this on the Dk rom and got stuck at the splash screen for like 30 mins, tried nandroid restore same thing, fresh install of cm7, same again.......

Tried to redo clockwork with unrevoked and got the "your firmware is too new" looked at my hboot and it is now alpharev s off .02, I'm sure I downgraded with a gold card to .01 before to use alpharev.......
Anyway all sorted now had to run an ruu then use revolutionary to install clockwork, then I was able to flash cm7 latest nightly and this worked perfect then.

Sent from my HTC Wildfire using xda premium
 

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
Dunno how? I'm still learning!

Sent from my HTC Wildfire using xda premium

It's in this post. I would definitely recommend fastboot also.
http://xdaforums.com/showthread.php?p=14693680

- Download the android-win-tools.zip attachment
- Extract to any folder (Example: C:\Fastboot)
- Place the Clockworkmod Recovery.img file you want to flash in that folder
- Connect Wildfire to your PC, Enter Bootloader (HBoot) Mode, Select Fastboot
- Open Command Prompt, Navigate to the folder you created
- Type fastboot flash recovery <recovery.img filename>. Press Enter
- It will send the Recovery and will write it.
- Done

(Assuming you are on a Windows PC, Linux/Mac instructions are on that thread as well)
 
  • Like
Reactions: Scratch0805

Scratch0805

Senior Member
Jun 18, 2011
2,133
1,279
Sheffield
Thanks mate, will use that next time I mess up which will probably happen one day, I definitely did it the long way but at least I'm back up and running again!

Sent from my HTC Wildfire using xda premium
 

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
Thanks mate, will use that next time I mess up which will probably happen one day, I definitely did it the long way but at least I'm back up and running again!

Sent from my HTC Wildfire using xda premium

Fastboot is a life saver mate, as I said to Alex as well. Its what got me up and running when the new Clockworkmod couldn't do a Nandroid Restore on a bootlooping device because of a MD5 Mismatch, and the MD5 Fix also didn't work. I learnt my lesson and switched back to Clockworkmod 3.2.0.0
 

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
3xeno, are there any files on /data partition that this mod changes? If so, how can I revert them?

It doesn't change any files, but, it re-maps the internal NAND Memory, which is why you have to format all 3 partitions (/system, /data, and /cache) before implementing it. (And also if you want to remove it). Performing this without formatting will probably lead to dire consequences (lol).
 

pyroblazer

Senior Member
Oct 13, 2010
456
16
Ahmedabad
tried this with a cynogen nightly fresh install... was stuck on the splash screen for like 25 mins... i wiped everything flashed the brovo recovery then reboot recovery the the rom and then the brovo boot then booted up.... bt got stuck... anything i did wrong??
 

gmd1

Senior Member
Jan 9, 2011
54
5
Thanks for the tutorial I did not know anything close existed for the wildfire
Can now happily report I got this working on my wildfire using CM7.0.1 RC1

I had a real problem first time I tried to install, Home button stopped working and I couldn't receive calls.
A clean install of CM7 solved the problem guess it was more a problem with my backup rather than this procedure.

By far the best reason to root your phone I've found so far! :)
 

darkstep

Senior Member
Dec 4, 2010
239
63
3xeno if i flash cwm 5 then do all the steps again the custom mtd will work right?
 

rohillamanish

Member
Jan 2, 2009
24
0
NOIDA
HELP

I really want this and have tried it with many roms of cyanogenmod. Many nightlies and the rc of 7.1 but it never seems to work for me. I tries with values of 150 40, 160 40, 170 40 and 200 40 but it never worked for me. Always after I do everything as mentioned, I get to the home screen and have the increased memory but many of my previous apps fail to function. Sometimes even the system apps fail to function. And always I cannot get any network access and cannot access any contacts or messages. I have tried it with recovery v4 and v5. I always have to reflsh the recovery via fastboot and install the roms with standard memory configurations. And I even tried to backup and restore without flashing these files and my backups always work, ie, there are no problems with my backup. Please help.
 

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
I really want this and have tried it with many roms of cyanogenmod. Many nightlies and the rc of 7.1 but it never seems to work for me. I tries with values of 150 40, 160 40, 170 40 and 200 40 but it never worked for me. Always after I do everything as mentioned, I get to the home screen and have the increased memory but many of my previous apps fail to function. Sometimes even the system apps fail to function. And always I cannot get any network access and cannot access any contacts or messages. I have tried it with recovery v4 and v5. I always have to reflsh the recovery via fastboot and install the roms with standard memory configurations. And I even tried to backup and restore without flashing these files and my backups always work, ie, there are no problems with my backup. Please help.

I can only recommend making a fresh install after performing this (i.e. in place of restoring a Nandroid Restore, flash the Zip file of CM), and then install your backup app again (Titanium backup?) and then try to restore there. I have honestly no idea why so many functions are failing for your case, because, I am still using this guide since the time I posted this, and, have not had any problems whatsoever. (Yes, some initially installed user apps failed to show up the first time I performed it, but a clean install + Titanium restore got them back with no issues).

If you are having DTApps2SD installed, then try and uninstall that before performing this. It may just help.
 

t0mas_

Senior Member
Jan 26, 2011
686
247
Xiaomi Mi 8
flashing new recovery

for anyone interested, i just tried flashing a new recovery
i did a nand backup, flashed new cwm, booted in recovery, flashed bravo-recovery, rebooted recovery, restore nand backup, flashed bravo boot, and everything seems to work fine...
 
  • Like
Reactions: tin_95 and migu29

Scratch0805

Senior Member
Jun 18, 2011
2,133
1,279
Sheffield
Oh, I've just flashed new cwm 5.1 using root toolbox pro and didn't lose the custom settings.


I really want this and have tried it with many roms of cyanogenmod. Many nightlies and the rc of 7.1 but it never seems to work for me. I tries with values of 150 40, 160 40, 170 40 and 200 40 but it never worked for me. Always after I do everything as mentioned, I get to the home screen and have the increased memory but many of my previous apps fail to function. Sometimes even the system apps fail to function. And always I cannot get any network access and cannot access any contacts or messages. I have tried it with recovery v4 and v5. I always have to reflsh the recovery via fastboot and install the roms with standard memory configurations. And I even tried to backup and restore without flashing these files and my backups always work, ie, there are no problems with my backup. Please help.

Have you tried simply rebooting again, I have had missing apps a few times after running this and also dt a2sd script and they've always shown up again after rebooting.



Sent from my HTC Wildfire using xda premium
 
Last edited:

vimjam

Senior Member
Dec 13, 2008
656
734
donno why but after using this method cm7-nightly176 freezes then reboots itself, & the led seems ON all the time(even after un-plugging usb) until i reboot manually

few other details:
installed applications: only adw launcher ex
MTD partition size : 145 10
CWM: 3.2.0.0

didn't install any other tweaks/hacks/kernel's

EDIT:HAPPENED TWICE(without led problem)
 
Last edited:
  • Like
Reactions: Compizfox

rohillamanish

Member
Jan 2, 2009
24
0
NOIDA
Still not working

Okay I tried it all again. This time I flashed the rom zip instead of restoring the backup and my phone is stuck on the HTC splash screen for the past half an hour. Still waiting for it to boot. Will wait for another half an hour or 45 minutes and then if it still does not work, will lose all hope that it will ever work for me.
 

vimjam

Senior Member
Dec 13, 2008
656
734
does any one know what values (145 10) are to be used for MTD partition ?

i used 145.10 by seeing 3xeno's signature :p:D
 

Top Liked Posts

  • There are no posts matching your filters.
  • 82
    Custom MTD Partitions for the Wildfire

    WARNING - NOT recommended if you are using a Sense based ROM. Read Storage Requirements and Notes below.

    06/10/2011 - Updated version (v1.5.8) available. Check this post by zexcrazy. The version attached to this post works fine as well.

    Disclaimer - This procedure is given here in a "as-is" format. I have personally verified it and have it running, but, the ultimate responsibility of performing this lies on you. I will not be responsible for dead / bricked devices or any such similar unfortunate situations.


    This process has been tested by me using:
    - Cyanogenmod 7 Nightlies
    - Clockworkmod 3.2.0.0 j_r0dd's Mod
    - Clockworkmod 5.0.2.0

    I do NOT claim ANY credit for this. The credits all goes to the original creators of the scripts, and daedelus82 and HebrewToYou for their original how-to guides on their respective device fora. I am just recreating the thread(s) here in the Wildfire Section, (The only difference is I am attempting to make it as simple as possible) because there isn't one.

    What does this do?
    As you must know, the Wildfire ships with a 512MB ROM Image. Of this, 250MB is reserved for the /system partition (This is where your ROM is installed to), 183MB for the /data partition (This is your actual 'internal' memory for apps), and 40MB for the cache.

    Now, since no ROM for the Wildfire will ever get close to the 250MB limit of the /system partition, it is possible to 're-allocate' this extra space to the /data partition. If you want even more space, you can take around 20-25MB (Upto 35MB) from the /cache partition as well, implying you now have ~300MB on the /data partition for installing apps.

    Advantages:

    • Utilizes your internal memory better
    • Removes the needs for Apps2SD Scripts
    • Gives you a potentially smoother and stabler device (Apps will always be more "stable" when in the internal memory then when on EXT)

    Pre-Requisites:
    • S-OFF using AlphaRev X / Revolutionary
    • Clockworkmod Recovery (Preferably a version in which you know Nandroid Restore works without issues)

    The Actual Process:

    Step 1
    • First, make sure that you have backed up your entire SD Card somewhere else, like your PC. Also make sure your apps are backed up with an app like Titanium Backup (Just for insurance)
    • Now, Reboot to Clockworkmod Recovery (NOTE - Do not use ROM Manager to boot into Clockworkmod Recovery. Use HBoot)
    • Create a Nandroid Backup
    • Place the 2 attached files on your SD Card.
    • Create a new text file on your SD Card called mtdpartmap.txt (UPDATE - File Attached. Simply edit the values as per your needs) (This includes the file extension, so make sure you are not naming it as mtdpartmap.txt.txt, else, it will obviously not work)
    • In this file, type mtd followed by be 2 numbers. The first number will be the size of your /system partition, and the second number will be the size of your /cache partition.
    • Example: mtd 150 25 (Here, 150MB will be the size of the /system partition and 25 will be the size of the /cache partition)
    • There should NOT be anything else apart from the mtd text and 2 numbers in this Text file. Also, make sure that this is not placed in any folder or sub-folder.
    Step 2
    • Once this text file is created successfully, you WILL have to format your entire device. So, perform the following one-by-one
    • Go to "Mounts and Storage" in Clockworkmod Recovery
    • Here, select format /cache
    • Then select format /data
    • Lastly, select format /system
    • Then, perform a Wipe Data / Factory Reset in Clockworkmod Recovery. (Not essential, but I performed it anyway)
    • Then, flash the attached file bravo-recovery-v1.5.3-CustomMTD.zip
    • Once this is done, do NOT reboot. Go to Advanced Again and select Reboot Recovery
    • Once Clockworkmod Recovery Reboots, Restore your previously taken nandroid backup
    • Once restoring is done, without restarting, flash the attached file bravo-boot-v1.5.3-CustomMTD.zip
    • Done, then you can Reboot your Wildfire.
    • The reboot will take longer than normal, it is normal
    You should then see your new custom partition sizes. The command to check the partition (Before/After/Anytime) sizes in Terminal Emulator is busybox df -h. (After typing su, and also, you must have Busybox installed)

    Reverting back to Stock

    - Formatting all the 3 partitions. (i.e. /cache, /data, and /system)
    - You will then need to flash a "Stock" Clockworkmod Recovery Image. Links (and procedure to flash) available in the Index Thread

    To end, here's a screenshot:
    t3iUU.png
    JzU7D.png



    NOTE

    • When you flash a new ROM/Restore a Nandroid Backup, you WILL lose the new settings ("partially"). To overcome this, after flashing your new ROM, flash the bravo-boot-v1.5.3-CustomMTD.zip attachment immediately after flashing the ROM/Restoring the backup before restarting your device. This will again give you the new partitions. If you fail to do this step, you will be stuck on the White HTC Screen.
    • The standard Apps2SD Feature included in Android (Froyo and above) is unaffected. You can still move your apps to the SD Provided the app supports it. (Or use CM7's In-built App Moving Feature)
    • You can very well use this in conjunction with Apps2SD Scripts like DT, should your need be.

    ==================================================


    Storage Requirements for various ROMs (/system Partition)

    1: CyanogenMod 7 (And most probably it's derivatives/"based" ROMs)
    - 145MB (Keeping a 10MB buffer, includes GApps)
    - 10MB Cache (CM7 includes a script that automatically moves downloads (market, browser etc) to the /data partition if it is larger than the cache size)

    2: Sense Based ROM's
    - Sorry Guys, it seems Sense ROM's need ~210-225 MB, making this guide pretty much pointless. You can take the 40MB, but that will not make a substantial difference. Your best bet in such cases is to stick with A2SD Scripts like DarkTremor.

    To build this list, please post the space needed by the ROM you use. There's 2 ways:
    - Check the Graph of the "System ROM" memory usage in Titanium Backup (As you can see in the screenshot above)
    - Use the busybox df -h command in Terminal Emulator (after typing su). This will list ALL partitions and you will have to hunt a bit.
    8
    Im using 5mb /cache just fine. I just delete file 06BindCache from init.d which is created after flashing.
    Although im not using these scripts im using version 1.5.8

    boot: http://db.tt/KQRdLTce
    recovery: http://db.tt/rE99ivOy

    Sent from my HTC Wildfire using xda premium
    3
    yesterday i have tried custom mtd partition..!!but still the internal storage was 265 only..then i revert back to stock....formatted \cache, \data and \system...and then restore my nandroid backup...but from then my phone is stuck on white htc screen....i keep it whole night but still it is white screen only...

    then today in the morning i flashed cwm 4.0.1.4 and then tried to restore my nandroid then again it is stucked at white htc screen and its more than 4 hours...


    now plz tell me what to do??

    plz help me anyone..!! i thnik my phone is bricked:crying:..!!!
    Really, if you don't want to or can't read or don't understand what you're doing - why do you try out things? Do you like Russian Roulette also? :confused:

    Looking into your posts it turns out that you might have problems to understand even any basics. But instead of trying to learn, to understand how things work, you seem to try out all the stuff you stumble against - just to mess up any- or everything in the end. Then you come back with your problem, not letting us know what exactly your problem is. Furthermore you seem to not to respond to any questions of other members to understand your problem. Instead you open new threads for the same problem in another section of the forum - you mess up your phone, you mess up the forum, you're not willing to learn, you ignore questions and suggestions. You shouldn't be too surprised if nobody is willing to help you anymore.

    If you're not able to understand anything you're doing with your phone you should stay away from that. You'd probably feel better and it would free up the time of all the voluntary forum members for helping people who are a bit more thankful and value the help they get in here (and accept the fact, that this is not a user help desk but a place where you can kindly ask for help but shouldn't expect to get help for every problem - or poop or missing socks...)

    Regarding your problem - a perfect example for things mentioned above: If the custom mtd partitions didn't work for you could you please tell us, how it came to your mind to revert to stock - why did you do that? Just for fun? Because you thought you should give us yet another challenge?

    Regarding a solution for your problem: it's all in the forums here - just use the search. I'm not willing to do it for you (anymore) - besides giving you a last hint: if you still can boot into recovery your phone is not bricked (although I'm not sure if that wasn't just better for you and us).

    Have a nice weekend - good luck!
    3
    Anyone seen my sock?:p
    3
    hey eventcom...dont try to be over smart..u r nothing..!! i hv not askd for ur help...jst get lost if u dont wnna help me....!!

    and dont you get it twisted! you HAVE asked for his help,alongside asking the whole wildfire community for help,because thats how it works here....you ask 1 your adking us all and in your case its asking 1 too many times. now everything has been explained to you numerous times and cant be explained to you any simpler. so just stop and think to yourself that maybe its not us providing corrupt guides etc but in fact that it must be something YOU and YOU alone are missing.

    Damn now im getting pissed because youve made me post again where i said i wouldnt. :mad::mad: lol

    sent mysteriously via OTA