[Q] How to customize the partition table? - HD2 Android Q&A, Help & Troubleshooting and Genera

First of all, I ahve searched the forum and I am unable to get an idea on how to customize the partition table. I want to customize the partition table as follows,
Code:
misc ya 1M
recovery rrecov|ro|nospr 5M cwm_recovery_leo.img
boot yboot|ro 5M
system ya 200M
cache ya 2M
userdata ya|asize|hr allsize
No idea what does this means. I know how to use hd2tool kit if it is to be used.
I can change the system partition size and cahce size by this app but other than that I have no idea.
Is there anything to run this code to update the partition table?
thanks for helping me......

SUNNY ARSLAN said:
First of all, I ahve searched the forum and I am unable to get an idea on how to customize the partition table. I want to customize the partition table as follows,
Code:
misc ya 1M
recovery rrecov|ro|nospr 5M cwm_recovery_leo.img
boot yboot|ro 5M
system ya 200M
cache ya 2M
userdata ya|asize|hr allsize
No idea what does this means. I know how to use hd2tool kit if it is to be used.
I can change the system partition size and cahce size by this app but other than that I have no idea.
Is there anything to run this code to update the partition table?
thanks for helping me......
Click to expand...
Click to collapse
well, if you are using clk 1.5.x.x it's extremely simple, just change partition layout from there (in settings), otherwhise on magldr just open the flash.cfg with a text editor and change the layout from there (then flash magldr you edited)... if you are on clk 1.4.x.x, upgrade to clk 1.5.x.x and change layout from there

I don't use cLK but in MAGLDR the above instructions aren't very clear. You have to download a CWM package to your PC then go into the CWM folder and open the file flash.cfg (not flash.cfg.txt) in notepad (which happens by default on Windows). Edit the values to whatever you need for your ROM (make sure to keep the formatting the same) then save the file. Boot your phone into MAGLDR and flash the CWM with the new partition table from the USB Flasher option.
Sent from my Nexus 4

Related

[Q] HD2 internal memory only 284MB after clean rom

HI guys
I just flashed [DAF-CLEAN] BOYPPC-SHIFTPDA GINGER_HoneyComB_V12 (01.Apr)
After flashing, i found out that my TOTAL internal memory is only 284. Anyone also having this problem?
I tried few other roms. it seems that the total stays around this number.
i did a Task29, but seems to be having the same problem after reflashing the same rom.
Anyone have any ideas? or is this normal?
It depends on which cwm partition layout you are using for /system and how many apps you have etc
Are you using euro or tmous phone?
using Euros one. How do i check the cwr partition part?
Open the cwm partition folder and open "flash.cfg" in notepad+ and edit the /system to desired size.
So if your system folder in your rom is 90mb and you have used 150. You have approx 60 mb that could be used if you change the flash.cfg to eg 95. But you should then do a nandroid backup. Reflash cwm with the new layout and then restore
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 100M<-------------- Edit this to the value you want.
cache ya 10M
userdata ya|asize|hr allsize
Edit: Or use apps2sd, apps2sd+ data2sd or delete ringtones, bootanimations and stuff using root explorer/droid explorer.
Thanks a lot for the info. Actually i dont have a cwr partition. My sd card is not setup for cwr. I did install cwr before though..
Sent from my HTC HD2 using XDA App
its not on the sd card , its on the nand of your device
He is flashing a DAF, not a CWM-Zip. Also, 248mb sounds kind of normal, depends on how big the ROM is.
You can flash a daf rom and apply latest cwm at same time....
Look at the flash.cfg for the daf rom, copy the boot and system lines to the cwm flash.cfg( or edit the ones already there so the size is standard and bigger than the system.img file in the daf folder) then copy the system.img and boot.img files from daf folder to the cwm folder and run daf.exe in the cwm folder,,,, it will apply cwm and flash the daf rom. Then, if you want a clean backup, use cwm to back up completely then if you want to reflash that rom use the backup instead of the original daf.
Hi All
Thanks for all the replies.
Here's some notes on the nand Rom
From the DAF Zip (after unzipping) i found out the
system.img = 109MB.
boot.img = 2.9MB
From the file flash.cfg: Here's all the contents.
boot ya|boot|ro filesize+2M boot.img
system ya filesize system.img
cache ya 20M
userdata ya|asize|hr allsize
i guess in a way it is possible to have only 284MB free... Do let me know what you guys think. Thanks a lot for your advices

How to change recovery size

Sorry if this question has been asked before but how do I change recovery sizes for example one rom will says it only needs 350mb size recovery but my only option is the 400 mb recovery I heard there is a way to change it to 350 or any other size but I have no clue.I'm on tmobile hd2 by the way.
Sent from a guy living in a van down by the river
You have to find the flash.cfg file then open Wordpad and drag and drop it in Wordpad. Then look for this line of text.
misro 5M ---à system ya ???M cache ya 4M userdata ya
There should be numbers where I have the three question maks at just change that number to the size you want and save the file.
jriv said:
Sorry if this question has been asked before but how do I change recovery sizes for example one rom will says it only needs 350mb size recovery but my only option is the 400 mb recovery I heard there is a way to change it to 350 or any other size but I have no clue.I'm on tmobile hd2 by the way.
Sent from a guy living in a van down by the river
Click to expand...
Click to collapse
First of all you should tell us if you are using cLK or MAGLDR bootloader.
In MAGLDR partitioning is made when you are flashing ClockWorkMod Recovery. Find the file flash.cfg
it will look like this:
Code:
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 400M
cache ya 4M
userdata ya|asize|hr allsize
Change the
Code:
system ya 400M
to be like this
Code:
system ya 350M
And continue as usual.
In cLK partitioning is managed by cLK it self so you need to flash a specific cLK bootloader
you will find cLK with many different partitioning here: http://forum.xda-developers.com/showpost.php?p=11983838&postcount=2
Thanks for your help I'm using magldr.so I configure the flash.cfg file then I flash the recovery via daf is that correct?
Sent from a guy living in a van down by the river
jriv said:
Thanks for your help I'm using magldr.so I configure the flash.cfg file then I flash the recovery via daf is that correct?
Sent from a guy living in a van down by the river
Click to expand...
Click to collapse
Correct, that also mean that you need you 1st make a backup and restore your backup afterwards because new partitioning will erase your data.

[Q] Clockwork Mod Recovery - flash.cfg values

Hi All,
I've been flashing Android ROMs to my device for almost 10 months now.
This, off course, I've been doing using the Magldr and the CWMR.
Some developers seem to ask for specific values in the flash.cfg, before flashing the CWMR
My Question is:
What do these values actually control?
What effect do they have on my device internal/external memory?
Values usually are (values are example):
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 360M
cache ya 5M
userdata ya|asize|hr allsize
I'd really appreciate having an answer for this
Thank you.
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 360M
cache ya 5M
userdata ya|asize|hr allsize
The system ya 360M is the system portion. This is the space in your NAND memory that is to be allocated to your system (Android). So you do not want nit too small as your Android will not have space to operate, and you don't want it too big either cause you will not have enough space for apps and personal data.
The boot yboot|ro 10M is t5he potion for your boot. This is the space in your NAND memory that is allocated for the boot. This portion basically holds all the information your HD2 uses while booting up in top Android. You do not want it too little as you will not be able to boot your Android. If it is to big you will just have wasted space on i n your NAND.
The cache ya 5M is the space in NAND allocated to your cache. Same thing you don't want it to small or too big
Hope that helps.
T-Macgnolia said:
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 10M
system ya 360M
cache ya 5M
userdata ya|asize|hr allsize
The system ya 360M is the system portion. This is the space in your NAND memory that is to be allocated to your system (Android). So you do not want nit too small as your Android will not have space to operate, and you don't want it too big either cause you will not have enough space for apps and personal data.
The boot yboot|ro 10M is t5he potion for your boot. This is the space in your NAND memory that is allocated for the boot. This portion basically holds all the information your HD2 uses while booting up in top Android. You do not want it too little as you will not be able to boot your Android. If it is to big you will just have wasted space on i n your NAND.
The cache ya 5M is the space in NAND allocated to your cache. Same thing you don't want it to small or too big
Hope that helps.
Click to expand...
Click to collapse
Dear T-Macgnolia
Thanx a million for clarification, your time and support
Best regards,

THC HD2 How 170MB system partition and at least 2MB cache partition

THC HD2 How 170MB system partition and at least 2MB cache partition with HD2ToolKit4.2.0.1?
Step bay step?
On left click 170, below that enter 2 in cache box, click repartition.
Cabron
Dasis said:
THC HD2 How 170MB system partition and at least 2MB cache partition with HD2ToolKit4.2.0.1?
Step bay step?
Click to expand...
Click to collapse
eiy seems like AOKP but using HD2Toolkit, min. for cache is 5mb, try the link below it could give you an idea
Installations:
Please use at least 170MB system partition and at least 2MB cache partition.
Please refer to ksubedi's HD2 NAND Toolkit and/or mskip's guide.
Cache partition (/dev/block/mtdblock4) is only mounted and used by CWM.
Cache partition size is not important because the data partition (/dev/block/mtdblock5) is used as the cache space when running Android.
If your HD2 has bad NAND blocks, you may need larger partitions.
Wipe
Wipe Data/Factory Reset while doing a fresh install. (Optional: also delete /sdcard/Android folder or format your SD card if you have any strange issue.)
Advanced -> Wipe Dalvik Cache while upgrading from an old version and wanting to retain data.
Flash this ROM.
I click custom and below that enter 2 in cache box, click repartition. Show new table "What do you want the custom partition size to be 5-445 MB allowed. I write 170 click OK.
I give table sorry chase size must be 5 to 45MB.
Where is I did mistake ?
samsamuel said:
On left click 170, below that enter 2 in cache box, click repartition.
Click to expand...
Click to collapse
raziel024 said:
Cabron
Click to expand...
Click to collapse
You haven't helped in any way, thats rude. Cabron.
Dasis said:
Installations:
Please use at least 170MB system partition and at least 2MB cache partition.
Please refer to ksubedi's HD2 NAND Toolkit and/or mskip's guide.
Cache partition (/dev/block/mtdblock4) is only mounted and used by CWM.
Cache partition size is not important because the data partition (/dev/block/mtdblock5) is used as the cache space when running Android.
If your HD2 has bad NAND blocks, you may need larger partitions.
Wipe
Wipe Data/Factory Reset while doing a fresh install. (Optional: also delete /sdcard/Android folder or format your SD card if you have any strange issue.)
Advanced -> Wipe Dalvik Cache while upgrading from an old version and wanting to retain data.
Flash this ROM.
I click custom and below that enter 2 in cache box, click repartition. Show new table "What do you want the custom partition size to be 5-445 MB allowed. I write 170 click OK.
I give table sorry chase size must be 5 to 45MB.
Where is I did mistake ?
Click to expand...
Click to collapse
1 -In the main HD2 android NAND toolkit window, look left for "Choose system partition size(MAGLDR)" and select "CUSTOM"
2 -Below this window change "cache size", but smallest possible is 5MB. It doesn't matter if it's bigger, won't give trouble.
3-after those step choose "Repartition" button below 'Functions' and type desired (4) system partition size.
Have fun.
Dasis said:
I click custom and below that enter 2 in cache box, click repartition. Show new table "What do you want the custom partition size to be 5-445 MB allowed. I write 170 click OK.
I give table sorry chase size must be 5 to 45MB.
Where is I did mistake ?
Click to expand...
Click to collapse
retsam88 said:
2 -Below this window change "cache size", but smallest possible is 5MB. It doesn't matter if it's bigger, won't give trouble.
Click to expand...
Click to collapse
as retsam88 said, it deoesnt matter the cache size, most people leave it at 5, some roms say 45, (but i haven't seen that for a while).
As far as i know, (i've read it once or twice) on most roms, only recovery uses the cache partition.
misc ya 1M
boot yboot|ro 5M or 6M // According to their Recovery
system ya 150M // Minimal Installation
system ya 240M // Full Installation
system ya 150M - 275M // Custom Installation
cache ya 2M
userdata ya|asize|hr allsize
if you have Bad Sectors, please add 5MB more, to System Partition
I like to do this partition. What do i have to make it work with hd2toolkit ? Thanks
saigon66 said:
What do i have to make it work with hd2toolkit ? Thanks
Click to expand...
Click to collapse
you cant because the toolkit writes a new flash.cfg each time when you choose custom, or uses an .nbh when you choose a preselected size.
You should find the daf.exe flash version of cwm, and when you extract it into a folder you will find one file called flash.cfg, , open that in notepad you will see a list like teh one you posted, , edit the numbers, save it, then run daf.exe with teh phone in usb flasher mode.

[Q] exusHD2-JellyBean-4.1.2-CM10 V1.1 [NativeSD] not worked

Hi All!
I'm installed exusHD2-JellyBean-4.1.2-CM10 V1.1 [NativeSD] .but i have an error!
when my HTC hd2 device is booting , this still on android logo and not boot android
after 15 min on logo android not boot.
Same here... Stays on logo that goes round and round but nothing...
Make sure you have a ext4 partition on your sdcard
Sent from my NexusHD2 using xda premium
after you installed the rom don`t forget to change on services/bootsettings/ad sd dir/(from 4extr to --> NativeSD)
beshkan said:
Hi All!
I'm installed exusHD2-JellyBean-4.1.2-CM10 V1.1 [NativeSD] .but i have an error!
when my HTC hd2 device is booting , this still on android logo and not boot android
after 15 min on logo android not boot.
Click to expand...
Click to collapse
I had the same problem before increased the partition size. Make sure you got this when installing:
misc ya 1M
recovery rrecov|ro|nospr 7M recovery_leo.img
boot yboot|ro 5M
system ya 320M
cache ya 2M
userdata ya|asize|hr allsize
If you are using NativeSD method, don't need to change system partition size.
You just need Ext4 partition and define the boot folder to NativeSD.
Using NAND you have to increase system partition size to the recommended.
NexusHD2 JellyBean
non funziona internet con 3g gprs
AndWhale said:
I had the same problem before increased the partition size. Make sure you got this when installing:
misc ya 1M
recovery rrecov|ro|nospr 7M recovery_leo.img
boot yboot|ro 5M
system ya 320M
cache ya 2M
userdata ya|asize|hr allsize
Click to expand...
Click to collapse
how do i increase my partition size?
---------- Post added at 03:37 PM ---------- Previous post was at 03:21 PM ----------
djxcee said:
Make sure you have a ext4 partition on your sdcard
Sent from my NexusHD2 using xda premium
Click to expand...
Click to collapse
how do i do that?
bhayat2 said:
how do i increase my partition size?
---------- Post added at 03:37 PM ---------- Previous post was at 03:21 PM ----------
how do i do that?
Click to expand...
Click to collapse
i don't have hd2 t-mobile.
must i use Native-SD or SD method for installation?
how
Magic2010 said:
If you are using NativeSD method, don't need to change system partition size.
You just need Ext4 partition and define the boot folder to NativeSD.
Using NAND you have to increase system partition size to the recommended.
Click to expand...
Click to collapse
how can i Create Ext4 partition and define the boot folder to NativeSD?
beshkan said:
how can i Create Ext4 partition and define the boot folder to NativeSD?
Click to expand...
Click to collapse
ext4: steps are:
1) format sd card cia SDFormatter
2) use any partition tool (I use Gparted LiveCD, you can also use windows programs - use google) to decrease the size of the main fat32 partition (make enough space, like 1 or 2 gbs). create new primary partition with ext4.
2.5)using sdformatter before is important because (at least in my case) it leaves 4KB at the beginning of the sd card, dont know exactly what it is for but i think maybe it is important. so in order to get an ext4 partition its best to first format the sdcard with sdformatter in order to get that partition table WITH the 4KB section at the beginning and then just decrease the fat32 size to make space for ext4 at the end. so at the very end the partition table looks like this: 4KB(unallocated)-FAT32-EXT4
^
if you dont know how to properly use it, make yourself familiar with it by watching tutorials etc.
partition programs can wipe your whole system by a click, so be careful and KNOW what you do
boot folder is set by going into MAGLDR (press and hold power button at phone start), select "services" and then "set ad sd dir". there you can set the new folder (nativesd in your case). you can also use that to, for instance, boot into ext4recovery

Categories

Resources