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

Search This thread

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
You will have to repeat the steps in that case, since when you flash a new Recovery (Using any "permanent" method like flash_image or fastboot), Custom MTD partitions are lost.

It should work with the version you posted, I don't see why. Try with the previous version and check again (5.0.2.6). If it still doesn't work, then use an "official" build for the Wildfire, the last of which is 5.0.2.0
 
  • Like
Reactions: chintu_a_b

chintu_a_b

Member
Jan 7, 2011
49
2
You will have to repeat the steps in that case, since when you flash a new Recovery (Using any "permanent" method like flash_image or fastboot), Custom MTD partitions are lost.

It should work with the version you posted, I don't see why. Try with the previous version and check again (5.0.2.6). If it still doesn't work, then use an "official" build for the Wildfire, the last of which is 5.0.2.0
Thanks for the hint. BTW where can I find latest official img file. The one downloaded by rom manager or available on cwm site is zip format.
 

chintu_a_b

Member
Jan 7, 2011
49
2
I'm guessing the backup I taken before the process might be corrupt as restoring previous backup brought my phone back to normal.

---------- Post added at 09:58 AM ---------- Previous post was at 09:52 AM ----------

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

What's the changelog for this version?
 

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
I'm guessing the backup I taken before the process might be corrupt as restoring previous backup brought my phone back to normal.

---------- Post added at 09:58 AM ---------- Previous post was at 09:52 AM ----------



What's the changelog for this version?

Changelog can be found here:
Upto v1.5.6-
http://xdaforums.com/showthread.php?p=7061471#post7061471

For v1.5.8- (Check the README at the bottom of the page)
https://github.com/Firerat/CustomMTD
 
  • Like
Reactions: chintu_a_b

Slymobi

Senior Member
Jan 29, 2011
5,184
5,408
Here
Thanks for the link. I just did flash_image and followed the steps again for custom mtd but now I got bootloop!
Can someone please guide me how to fix it?

i had some issues with some cwm versions not restoring a nandroid from a different cwm version. eg. nandroid from 3.2.00 not restoring on 2.5.*.* so this might be the case here for you too.
not sure which versions i had the problems with so i just used the eg.versions as that !! an example.cheers.
 

Slymobi

Senior Member
Jan 29, 2011
5,184
5,408
Here
Hi all. I posted before about mtds not working on cwm 2.5.0.7 for me but can someone confirm this. I'm asking cos I prefer to have a cwm which will flash anything instead of having to use temp cwm for certain flashes.like I said I have tried setting mtd with cwm 2.5.0.7 but it never worked for me,however I may have done something wrong(lol very unlikely though).
P.s I'm not looking for anything else regarding mtds because i have it set up with cwm 3.2.0.0. Just want confirmation on requested cwm. Thanks,Slymobi.

sent from my wilderbeast:buzz
 

eikcihc

Senior Member
Mar 26, 2011
191
7
i suspect that after flashing the script i;m facing usb issues... like i can't connect my phone to usb now, it will cause a auto reboot.

Anyone else has similar situation?
 

GlennBrownie

Senior Member
May 31, 2011
300
48
Manchester
Hello,

I have used this guide a few times and I have had no problems with it, but with my current rom and previous rom I have found conflicting partition table reports.

With my current rom, I have found the same errors and I am curious as to how I have got this?

I set my system partition to 109mb & cache to 30mb in the mtdpartmap.txt file, but please look at screenshot1.png it reports system as 114mb in Titanium Backup, but if I use the busy box command (adb shell busybox df -h) it reports 109MB as well (see screenshot3.png)

My data partition is also being reported as 2 different figures, in screenshot1.png it is reported as 341MB by Titanium Backup, and in in screenshot2.png it is reported as 326MB by Darktremors A2SD GUI, and the same again (326MB) by busybox (screenshot3.png again)?

Has anyone else had this problem?
 

Attachments

  • screenshot1.png
    screenshot1.png
    33.8 KB · Views: 102
  • screenshot2.png
    screenshot2.png
    24.3 KB · Views: 98
  • screenshot3.jpg
    screenshot3.jpg
    17.3 KB · Views: 91
  • mtdpartmap.txt
    6 bytes · Views: 23

3xeno

Senior Member
Dec 6, 2010
3,569
1,416
Bangalore
TI Backup always shows numbers a bit off than the actual values (It shows me 314MB for what is a 300MB partition). The values you see in busybox, and the values in mtdpartmap.txt are correct.
 
  • Like
Reactions: GlennBrownie

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