How to create custom ClockworkMod Recovery partition size for HTC HD2?

150MB, 250MB and 400MB ClockworkMod Recovery partition layout sizes are enough for HTC HD2 CyanogenMod, AOSP, MIUI and standard Sense ROM. However, it maybe not be suitable for disk space hungry Android 4.0 ROM for HTC HD2. So creating a custom ClockworkMod Recovery partition layout size to match the exact size that require by Android 4.0 ROM will provide some extra user disk space.

flash.cfg file in ClockworkMod Recovery partition layout is the one that control the sizes that install. You will see these values in 250MB partition layout. Normally, you need to change 3 values which are boot, system and cache. And ROM chef will provides the ROM partition layout size like 7/200/10 (boot/system/cache) or 220/7 (system/cache).

[quote_box_center]misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 250M
cache ya 5M
userdata ya|asize|hr allsize[/quote_box_center]

Example 1 – 7/200/10
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 7M
system ya 200M
cache ya 10M
userdata ya|asize|hr allsize

Example 2 – 220/7
misc ya 1M
recovery rrecov|ro|nospr filesize recovery-raw.img
boot yboot|ro 5M
system ya 220M
cache ya 7M
userdata ya|asize|hr allsize

Step by Step Guide

  1. First of all, download 250MB partition layout here.
  2. Extract all files to Recovery folder.
  3. Edit flash.cfg to match the sizes require by Android ROM.
  4. Save it and that’s it.

Continue with How to Install ClockworkMod Recovery v1.3 on HTC HD2? (Video) installation guide then.