[Q] Custom MTD Partitions: nothing done ? - Wildfire Q&A, Help & Troubleshooting

As I often have problem of internal memory (not enough),
I tried to apply on my Wildfire the Custom MTD Partitions, as explained here:
http://forum.xda-developers.com/showthread.php?t=1233340
(and which seems very interesting)
But even all steps seems to do something, it doesn't have any impact on the size of the memory...
I tried to apply this size of memory: 145 10 (mtdpartmap.txt)
In order, I did this:
backup, reboot to CMW Recovery, Nandroid Backup, copy the 3 files needed on the SDCard,
format /cache, then format /data, then format /system, then perform a Wipe Data / Factory Reset, then flashed recovery zip, then Reboot Recovery, then Restore the nandroid backup
=> Remark: at the end of the retore of backup, I had an error: "Error while formatting /sd-ext!" (don't know if it's normal)
Then I flashed the boot zip, and finally reboot the Wildfire.
But when I'm checking the memory, sizes are the sames: 183 interal (including 40 for cache).
What I did wrong ?
HTC Wildfire S-Off, CM7 n215
Recovery: 4.0.0.2
S2E used

Make sure your not naming the txt mtdpartmap.txt.txt only have 1 .txt at end.
Sent from my HTC Wildfire using XDA App

Yes, as I saw that someone did it, I verified it.
I tested without any extension too (only mtdpartmap), but result was the same.
I will try again, by changing the values-number in the file...
Maybe an additional question: inthe topic is written:
"When you flash a new ROM, you WILL lose the new settings ("partially"). To overcome this, after flashing your new ROM, flash the boot-v1.5.8-Beta-CustomMTD_S attachment immediately after flashing the ROM before restarting your device."
Does it mean that I should do these operations each time I want to install the last build of cm7 ?

Yes, you have to flash the 'boot' attachment only everytime you flash a new nightly (or a new ROM, or even restore an old ROM, for that matter). If you don't, the device will not boot. (This is applicable even if you do not wipe before flashing a new nightly)
For your issue, although I can't really seem to figure out what the issue is, I would say try flashing a fresh install once just to check whether the procedure itself works or not.
If it still doesn't work after a fresh ROM install, try with the older version of the Custom MTD Script: (Although this shouldn't really be the problem)
http://db.tt/JjGxneZD
http://db.tt/C5noTQl9

this happened to me, but i realized rooted phone doesn't mean s-off, double check it has s-off?

I can solve this issue lol i think. Do this order instead
:backup, reboot to CMW Recovery, Nandroid Backup, copy the 3 files needed on the SDCard
Wipe Data / Factory Reset
Flash bravo-recovery-v1.5.8-CustomMTD.zip
format /cache, then format /data, then format /system
Reboot Recovery, then Restore the nandroid backup
BEFORE REBOOT:Flash bravo-boot-v1.5.8-CustomMTD.zip
Now should work. Well this is how i do it and works. I did the order you said the first few times
I hope this helps

Thx to all for your help.
Yes, my wildfire is S-OFF, I verified again.
About the version v1.5.8, I got it, and will install it quietly in the order you indicated below, I will inform you if it's ok by this ;-)

I just tested in this order, and I'm blocked at the end on the blank screen HTC.
But, little question: I used the files recovery-v1.5.8-Beta-CustomMTD_S.zip et boot-v1.5.8-Beta-CustomMTD_S.zip (so tagged as beta). Are they the sames files than the ones you used ?
HTC Wildfire S-Off
HBOOT 6.01.1002, CM7 n228
S2E used

Just for info:
finally I just tested again the same order, but I flashed an new build instead of to restore my last backup.
It booted correctly, and as I can see, I have now more memory available.
Many thx
Now, I have to restore my apps and data (thx titanium )

flippy12 said:
Just for info:
finally I just tested again the same order, but I flashed an new build instead of to restore my last backup.
It booted correctly, and as I can see, I have now more memory available.
Many thx
Now, I have to restore my apps and data (thx titanium )
Click to expand...
Click to collapse
Damned, I talked too quickly.
This didn't impact the memory, even I flashed MTD for 145 10, I still have the sotck format memory

Only once have I had problems loading custom mtd values,I tried for hours and figured out it was the cwm 2.5.0.7 version which was causing problems cos as soon as I tried with 3.2.0.0 it applied 1st time. Have you tried different cwm?
sent from my wilderbeast:buzz

Which cmw are u using? I used version 5.0.2.0
Sent from my HTC Wildfire using xda premium

Ah yes, interesting point...
On ROM Manager (4.7.0.5), I see that CWM is 5.0.2.0.
In recovery mode (used to backup/restore for this operation) , CWM is v4.0.0.5.
Does this version a correct one, or should I upgrade it to the 5.0.2.0 ?

flippy12 said:
Ah yes, interesting point...
On ROM Manager (4.7.0.5), I see that CWM is 5.0.2.0.
In recovery mode (used to backup/restore for this operation) , CWM is v4.0.0.5.
Does this version a correct one, or should I upgrade it to the 5.0.2.0 ?
Click to expand...
Click to collapse
In order to ignore (solve I mean) this problem of CWM version, I flashed directly the version 5.0.2.0 by the terminal: now it's ok in recovery mode too.
So, I will start again this afternoon the MTD update..
Many thx, I think this time I'm in a good way to success the update
I will give you news...

Mtd certainly works with cwm 5.0.2.0 so you shouldn't have any problems.
sent from my wilderbeast:buzz

Finally, yesterday, I started all since the beginning:
downloaded again the files, installed CM7.1.0.1, followed the described procedure for MTD, and it's ok, I have the Power of ... my wildfire
Again, thx for your help, and I don't forget to thank 3xeno for the guide

Same problem with Custom MTD Partitions
I have flash the boot and recovery files. I have made a nandroid backup i restore it. The mtd file looks like : mtd 170 22 . The rom memory is 512 /system & /cache partitions have only 192 mb. Memory for my applications is only 274 mb. In "About Phone" says i have 118/310 (free/avail).Where it's manager of application i have 245 used and 29 free.I should have 55 mb free.. bot no. Rest of my memory to 512 where it is? Should i delete the nandroid backup? Danke!

amNezic# said:
I have flash the boot and recovery files. I have made a nandroid backup i restore it. The mtd file looks like : mtd 170 22 . The rom memory is 512 /system & /cache partitions have only 192 mb. Memory for my applications is only 274 mb. In "About Phone" says i have 118/310 (free/avail).Where it's manager of application i have 245 used and 29 free.I should have 55 mb free.. bot no. Rest of my memory to 512 where it is? Should i delete the nandroid backup? Danke!
Click to expand...
Click to collapse
Its 512MB and not 512MIB/MO. Hence, the actual usable capacity is actually 483MB instead of 512MB (If I am not mistaken). (The analogy is similar to any flash drive / hard disk you buy - the actual formatted capacity is lower than the rated capacity)

Related

No ROM Manager downloads [SOLVED]

Apparently no one else is having this issue so it's gotta have something to do with what I'm doing, and I can't figure it out. My problem is that when I press download ROM in ROM manager, the only manifests it retrieves are the all device ones, which only include the two superuser binaries. It doesn't actually download or display the espresso manifests. I checked my build.prop to make sure everything said espresso, not something else, and it does. There was ONE thing that said htc_espresso, but no one else is having the issue so it can't be my build.prop. I have a premium license, and advanced mode is enabled, and there are no options in the settings menu to set the manifests manually. Erghhh. Anyone have any suggestions? I don't see why it just doesn't show up for me. I just did a full wipe before I flashed cm7 RC1 last night, so it can't be that.
Edit: figured out part of the problem. Apparently, it relies on you actually installing clockwork recovery, which I have avoided doing, one, because I have my cache bind mounted to data, so when it tries to flash update.zip from /cache/download, it fails, and my roms don't install, and two, I use cw3, and it's permanently flashed. So I have just been manually overriding the installation, which is why it doesn't show rom downloads. Any workaround to this, or some way to put the cw3 img into a zip?
Edit 2; solution: Took some hoop jumping and a LOT of tedious nandroiding and such, but I finally got it to work. In the end, I had to raise my cache from 1.5 mb to 2.5 mb and push the update.zip for 2.5.0.7 recovery to /cache, while in recovery (can't do it while booted, since /cache is just bound to /data/cache, hence the whole issue in the first place). So, when you reboot into recovery from rom manager, yes, it still copies an update.zip to what it THINKS is /cache, but is actually /data/cache, but it doesn't matter since I've already pushed a pre-existing update.zip to the REAL /cache (partition scheme is now 140 mb /system and 2.5 mb /cache, only 1mb of /data lost)
Ultimately, the issue with no downloads was that I had overridden the installation of clockworkmod recovery, so ROM manager showed for the version as clockwork unknown, which I guess meant unknown device as well. Once I installed cw recovery via rom manager, downloads began appearing again. I re-fastboot flashed cw2 over cw3, since it was causing compatibility issues with ROM Manager. If anyone is going to try this solution however, make a nandroid, it corrupted my entire internal storage and I had to restart without a nandroid, redoing mtd and everything. Thank god for titanium backups, eh?

Need help flashing Hboot to change partition layout

Hi, I've already S-offed my device and installed Leedroid. I don't have the SDK/ADB setup, so I downloaded the .zip file and attempted to install the zip through Recovery. I used the data++ partition layout. However, in Leedroid, when I go to Settings>Applications>Manage Applications, my total storage (All tab) is only 148 MB.
Is this normal, or what have I done wrong?
Its normal, you can increase the size from recovery. Or format the partition as ext4 and use SuperNova ROM instead of Leedroid
fterh said:
Hi, I've already S-offed my device and installed Leedroid. I don't have the SDK/ADB setup, so I downloaded the .zip file and attempted to install the zip through Recovery. I used the data++ partition layout. However, in Leedroid, when I go to Settings>Applications>Manage Applications, my total storage (All tab) is only 148 MB.
Is this normal, or what have I done wrong?
Click to expand...
Click to collapse
This is not normal. Don't mind the incompetent comment above. Settings->...blabla shows the size of the /data-partition and this should be 252 MB. Please do some reading on alpharev.nl!
It clearly says, that you DON'T flash hboot via recovery but have to rename the file, so hboot recognizes it and updates the partion-layout itself. Just follow the instructions.
Okay, thanks a lot. Have yet to tried it, but I have another question:
If a ROM does not specify the partition layout, does that mean I should flash the stock layout?
Btw I tried renaming it to PB99IMG.zip, booting into HBOOT, but it gives me an error about some CID thing and tells me update failed. I did some research and I think that's because I need a goldcard. Then I tried using the flasher tool and it works. But what's really strange is that I flashed the .img without reflashing my ROM or restoring my nandroid, and yet when I boot into my ROM, everything works, except that the /data has increased to 217MB (which is correct already). So do you need to restore nandroid or not?
fterh said:
Okay, thanks a lot.
Click to expand...
Click to collapse
No need, just hit the button.
If a ROM does not specify the partition layout, does that mean I should flash the stock layout?
Click to expand...
Click to collapse
in general, yes. But you can check the size of the system-Folder inside the rom.zip you want to flash and then choose a hboot-layout with sufficient /system-size. Then you should be fine. Maybe you have to flash a fix that moves market-downloads to sd-card (instead of /cache-partition, which may be too small for larger downloads, but afaik thats already built into most custom roms. However if larger market-downloads cause problems, you need to flash that fix).
But most of custom roms available in this forum clearly state in first post, which hboot-layout is best. But it's always down to the size of the /system-partition, so stock-hboot fits all.
But what's really strange is that I flashed the .img without reflashing my ROM or restoring my nandroid, and yet when I boot into my ROM, everything works, except that the /data has increased to 217MB (which is correct already). So do you need to restore nandroid or not?
Click to expand...
Click to collapse
If everythink works nice, then why bother?

Question related to flashing Sunaabh Rom

Hi all,
I was using the CM7 nightly 203, with the custom MTD partition 140 40. Just wanted to try Sunaabh ROM. Wil the old MTD partition give problems when i flash this new ROM? This ROM is 122MB in size. plz explain how to go abt in flashing this sense rom
Yes, it will. Sense ROMs need upwards of 200MB system partition. You will have to remove the Custom MTD Partitions before proceeding. (It can be removed by flashing Clockworkmod Recovery again, after wiping everything)
Thanks for the prompt reply I have not done that even once.. For this, i must go to ROM manager, Click on Flash ClockWorkMod Recovery and then press "Flash Recovery." Or if am wrong, could you pls explain me?
Not sure if this will work for you too but it did for me, I first changed the settings in the txt file then flashed a new rom and ran the bravo boot zip again.
I did that going from cm7 to sfm and it worked for me without having to flash cwm.
I think if you just change the txt file to fit your new rom then run it all again as you install, should be fine.
Sent from my HTC Wildfire using xda premium
No, that is the temporary way to do it, and it will not touch your actual Clockworkmod Recovery. I would recommend the Fastboot Method.
I have attempted to explain it here:
http://forum.xda-developers.com/showpost.php?p=17633085&postcount=93
So, first boot to Clockworkmod Recovery, Go to Mounts and Storage, then select:
- format /cache
- format /data
- format /system
This will remove all data from your phone (Except stuff on the SDCard). Then, reflash Clockworkmod Recovery from the procedure I linked above.
EDIT: Or you can follow what Scratch wrote above. Make your settings the default (ie 250 40 by changing the values on the text), then proceed. Now that I think of it, his method is way more efficient.
Works perfect. But one question. I had values 190 and 40. But titanium back up shows 262mb of which 94 is free for system and 183mb of which 113 alone is free for internal. Have I done anything wrong ?
Sent from my HTC Wildfire using xda premium
It seems to have reverted back to the Stock settings somehow... BTW, Ti Backup isn't the most reliable one to check the partitions. Use Terminal Emulator, and type su , followed by busybox df -h to get the exact values of all partitions.

[TUT]Custom mtd partitions

After tons of googling ive finally been able to customize the size of my data partition.
Im sharing it with you all...
Install Instuctions
It really is quite simple
1.download FR-recovery-v1.5.6-CustomMTD_S.zip and FR-boot-v1.5.6-CustomMTD_S.zip
2.create mtdpartmap.txt and put on /sdcard/ see configuration *
3.reboot to recovery
4.nandbackup
5.wipe cache + data
6.flash FR-recovery-v1.5.7-CustomMTD_S.zip(follow onscreen instructions)
7.reboot to recovery
8.Either : -
Nandrestore
or
Flash ROM + extras
9.flash FR-boot-v1.5.7-CustomMTD_S.zip
10.reboot
*For cyanogenmod- write "mtd 135 15"
this will give ur system 135mb, cache 15 mb and rest for data!!!!(u can change the values but be sure u give enough to system otherwise ull face problems while flashing)
NOTE-each time u flash a rom u MUST flash FR-boot-v1.5.7-CustomMTD_S.zip.
NOTE-if u reduce cache size by a large amount, market and other apps depending on cache will fc.
credits-Firerat for the files and instructions at http://forum.xda-developers.com/showthread.php?t=717874
as sense roms are heavy...this wouldnt be of much help.
PS-as always im not responsible if u brick ur device.
PRESS THANKS IF IT HELPED!
Can someone test this please? To OP: does it work?
Want to do it, but don't want a bricked phone.
I just need a 100 mb more for data, so i dont need the build in "move to sd" option from android.
Henry_1 said:
Can someone test this please? To OP: does it work?
Want to do it, but don't want a bricked phone.
I just need a 100 mb more for data, so i dont need the build in "move to sd" option from android.
Click to expand...
Click to collapse
Chicken. As I wrote in the other thread....it works.
Be careful not to undersize your Cache partition though or Market and other apps that rely on it for temp storage will force close.
The guy that said he uses a 10 MB cache partition is on better drugs than I can afford...
dude,
i followed all the mentioned steps by letter but unfortunately i still have the stock part intact
1-copied the files to Sd
2-creating the text file mtd 150 25
3-flashed the recovery attached
4-flashed the rom (caynogenmod 7)
5- flashed the boot file
still have the original partitions :S i am missing smthing ?
wildfire S , **UNLOCKED**
draconian said:
dude,
i followed all the mentioned steps by letter but unfortunately i still have the stock part intact
1-copied the files to Sd
2-creating the text file mtd 150 25
3-flashed the recovery attached
4-flashed the rom (caynogenmod 7)
5- flashed the boot file
still have the original partitions :S i am missing smthing ?
wildfire S , **UNLOCKED**
Click to expand...
Click to collapse
Yes.
First this is a confusing and partially explained tutorial...No offense. Here it is for CM7.x with updated script files and an mtdpartmap.txt for CM7.x
1/ Create the txt file and do not hit enter. Make sure there is no carriage return taking you to a second line.
2/Now save it as "mtdpartmap.txt" (For CM7x you can use 145 20 with no worries).
3/ Copy the recovery file, the boot file and the mtdpartmap.txt files to the root of your SD card
4/Copy Alquez's latest nightyly CM7 zip to the root of your SD card along with the latest gapps zip
5/Reboot to recovery
6/ Erase user data
7/ Under Mounts, format system
8/ Install zip from SD card and run the Recovery zip
9/ Go back to mounts and format data, cache and system partitions
10/ Go to advanced menu and reboot to recovery
11/ If you are restoring a NANDROID backup do so now using backup/restore
12/ If you are installing CM7.x Install zip from SD and flash the CM7 zip and the gapps zip
13/ Install zip from SD card and now flash the boot zip.
14/ Return to recovery main menu and reboot device
15/ Enjoy your roomy CM7.x install!
Don't listen to 135 for CM7! It's not close to enough.
Will it work with Wildfire S with unlocked bootloader (via HTC webpage)? Or is it only for S-OFF phones?
I have the bootloader unlocked and it seems that it does not work :-( Maybe I am doing something wrong?
Y not 250 20?
HTC WILDFIRE S
Cm7
@ d33spx the tutorial is perfect and complete.the steps u posted are unnecessary.
@everyone with s on but bl unlocked: it won't work.
@everyone with soff and cyanogen mod: 135 15 is more than enough...
For sense roms which are debloated 250 20 is good...
135 means I'll have Oly 135 MB internal?
HTC WILDFIRE S
ROM:CM7
1 GB INTERNAL MEMORY
806MHZ OVERCLOCKED
ELECTRIC CYAN THEME
szpaq69 said:
will it work with wildfire s with unlocked bootloader (via htc webpage)? Or is it only for s-off phones?
I have the bootloader unlocked and it seems that it does not work :-( maybe i am doing something wrong?
Click to expand...
Click to collapse
only on s-off phones !!
If i do a nandroid backup and after partition if i do a nandroid restore will the partition go??
kp.nikhil said:
If i do a nandroid backup and after partition if i do a nandroid restore will the partition go??
Click to expand...
Click to collapse
Follow the OP... Simple as that.
kp.nikhil said:
If i do a nandroid backup and after partition if i do a nandroid restore will the partition go??
Click to expand...
Click to collapse
You need to flash flash "FR-boot-v1.5.7-CustomMTD_S.zip" immediately after flashing a new ROM or Restoring any nandroid backup before restarting your device. This will keep your partitions.
Cheers!!
What mtdpartmap would you recommend for modpunks CM9?

Damn you data! Problem with creating a backup.

Hello. As a happy owner of a DHD, I thought that I could try Kitkat, for one day or two, as I use my phone daily and a stable rom is a must.
For now I'm stuck with CM10.1, but I'm looking forward to the new release.
Anyway, I wanted to create a backup and neither CWM 5.8 Touch or TWRP 2.6.3 go past creating a backup of /data.
CWM just says Error: Could not back up image of /data or something like that, and TWRP says Backup Complete and Failed in red, below it.
Any ideas?
No, I don't have too much apps, TWRP says the ones I want to back up are as following:
Boot (4 MB)
Cache (76 MB)
Data (371 MB)
Android Secure (75 MB)
System (343 MB)
Over 10GB of free space on my microsd card (32GB, class 10), so it's not lack of space.
Help, I'd love to check out Kitkat and Ubuntu Touch...
Fix permissions
maltazar1 said:
Hello. As a happy owner of a DHD, I thought that I could try Kitkat, for one day or two, as I use my phone daily and a stable rom is a must.
For now I'm stuck with CM10.1, but I'm looking forward to the new release.
Anyway, I wanted to create a backup and neither CWM 5.8 Touch or TWRP 2.6.3 go past creating a backup of /data.
CWM just says Error: Could not back up image of /data or something like that, and TWRP says Backup Complete and Failed in red, below it.
Any ideas?
No, I don't have too much apps, TWRP says the ones I want to back up are as following:
Boot (4 MB)
Cache (76 MB)
Data (371 MB)
Android Secure (75 MB)
System (343 MB)
Over 10GB of free space on my microsd card (32GB, class 10), so it's not lack of space.
Help, I'd love to check out Kitkat and Ubuntu Touch...
Click to expand...
Click to collapse
First fix permissions in TWRP recovery advanced tab.. then try backing up again.. If u can boot use backup software like titanium backup to backup app data and settings... You can restore the settings too..
gkprashu said:
First fix permissions in TWRP recovery advanced tab.. then try backing up again.. If u can boot use backup software like titanium backup to backup app data and settings... You can restore the settings too..
Click to expand...
Click to collapse
I know about the possibility of using Titanium Backup, don't worry, the thing is that I wanted to see if I can just use the nand backup once, to make everything simpler.
I'll try the permissions and see, thanks for the tip
Edit:
Fixed permissions without problems, didn't work, same thing.

Categories

Resources