[GUIDE] Flashing Your First HD2 Clockwork Mod Android Rom [For Newbs]

Search This thread

parmar.saab

Senior Member
Jun 7, 2008
581
65
Punjab
I flashed a ROM that required CWR and added a 1024 MB partition on my SD card via CWR. Now I'm switching back to an older ROM that doesn't require CWR and hence, I formatted my SD card via my PC but I didn't get the 1024 MB space added back to the card. The free space still shows to be around 13 GB and change, where it should be 14 GB and change (for a 16 GB card). Any help would be greatly appreciated.
 

Zimaia

Senior Member
I flashed a ROM that required CWR and added a 1024 MB partition on my SD card via CWR. Now I'm switching back to an older ROM that doesn't require CWR and hence, I formatted my SD card via my PC but I didn't get the 1024 MB space added back to the card. The free space still shows to be around 13 GB and change, where it should be 14 GB and change (for a 16 GB card). Any help would be greatly appreciated.

Windows can't see ext partitions so you must format you sdcard using other app

try this one, MiniTool Partition Wizard Home Edition 5.2, it's free
google it!!

Then delete the ext partition and resize the fat32 to full space.
 

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
I flashed a ROM that required CWR and added a 1024 MB partition on my SD card via CWR. Now I'm switching back to an older ROM that doesn't require CWR and hence, I formatted my SD card via my PC but I didn't get the 1024 MB space added back to the card. The free space still shows to be around 13 GB and change, where it should be 14 GB and change (for a 16 GB card). Any help would be greatly appreciated.
Use SD Formatter 3 to format your micro sd card.

In the program goto 'Option' then change 'Format Size Adjustment' to ON. That will give you back the full size of the storage card.

Mark.
 
  • Like
Reactions: Ratleme and poyensa

Fishawy

Senior Member
Mar 26, 2010
3,718
1,312
Melbourne
Google Pixel 7 Pro
Dear Mark,

Your guides are always the most organized self-explanatory ones out there, your answers are always helpful, and your attitude in offering assistance is truly appreciated by us, the Leo community members.

Thank you & apologies for the off-topic post. :)

Cheers!
Fishawy
 
  • Like
Reactions: Ratleme

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
Dear Mark,

Your guides are always the most organized self-explanatory ones out there, your answers are always helpful, and your attitude in offering assistance is truly appreciated by us, the Leo community members.

Thank you & apologies for the off-topic post. :)

Cheers!
Fishawy
Thank you for your very kind words but I dont do anything special I just try my best to help whoever needs it :)

Ohh and I dont mind at all that its off-topic lol :D

Mark.
 
  • Like
Reactions: Ratleme and ridsco

Dunc001

Inactive Recognized Developer
Apr 6, 2010
2,705
1,462
Hiding out south of the border...
Hi Mark, I wonder if you could indulge me with answers to a few CWM noob questions please. I finally jumped to NAND and have been running Hyperdroid CM7 which uses 150MB with 1GB Ext3 on SD. I get that if I now want to flash say a Sense 3 ROM I need to reflash CWM with a larger partition but...

1. However do I then also need to use the CMW Wipe Dalvik Cache option before flashing the new zip as this is in my Ext partition?

2. Also, what happens with all of the apps that are on Ext through A2SD? Do they automatically reappear on the new ROM after flash or do I still need to use Titanium to backup apps/data and restore after flash?

3. Is it in any way advisable to Task29/MAGLDR/CWM before each new flash to an entirely new ROM (not just an update to newer version of current) - ie moving CM7 to Sense? Similarly is it necessary at any time to wiper and reformat my SD card?

Sorry for all the questions - can write widgets in LUA for CHT but not a clue (yet ;)) about much to do with Android!
 

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
Hi Mark, I wonder if you could indulge me with answers to a few CWM noob questions please. I finally jumped to NAND and have been running Hyperdroid CM7 which uses 150MB with 1GB Ext3 on SD. I get that if I now want to flash say a Sense 3 ROM I need to reflash CWM with a larger partition but...

1. However do I then also need to use the CMW Wipe Dalvik Cache option before flashing the new zip as this is in my Ext partition?

2. Also, what happens with all of the apps that are on Ext through A2SD? Do they automatically reappear on the new ROM after flash or do I still need to use Titanium to backup apps/data and restore after flash?

3. Is it in any way advisable to Task29/MAGLDR/CWM before each new flash to an entirely new ROM (not just an update to newer version of current) - ie moving CM7 to Sense? Similarly is it necessary at any time to wiper and reformat my SD card?

Sorry for all the questions - can write widgets in LUA for CHT but not a clue (yet ;)) about much to do with Android!
Hey :)

1. Before flashing a new Rom all you need to do is a wipe (wipe data/factory reset) as it will format all neccessary parts including any external partitions you set up for A2SD. A wipe is always recomended before flashing a new Rom.

2. Im not exactly sure what happens if you dont format the external partition before flashing a new Rom but if you are flashing a brand new Rom I would recomend you do what I do which is use Titanium Backup to backup your apps and then restore them after the flash.

3. In my opinion performing a Wipe via CWM is just as good as a Task29, even better in some respects as a wipe will format your A2SD partition where as Task29 will only format the phones internal NAND partition.

Formatting the SD Card is a good idea if you are starting to have problems that you cant explain. One good format should usually be enough for the life span of the card if you use the SD Formatter v3 program that I mentioned a few posts ago.

Hope all this has helped to explain things a bit :)

Mark.
 
  • Like
Reactions: Ratleme and Dunc001

Dunc001

Inactive Recognized Developer
Apr 6, 2010
2,705
1,462
Hiding out south of the border...
Thanks for the reply Mark. Can I just say I find you one of the most helpful people here on XDA, having followed many of your tutorials and explanations over the last couple of years - we're really lucky to have guys like you here to keep us all right :D

I didn't realise what the Wipe option in Recovery actually did! So it actually clears the Ext partition contents too?
 

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
Thanks for the reply Mark. Can I just say I find you one of the most helpful people here on XDA, having followed many of your tutorials and explanations over the last couple of years - we're really lucky to have guys like you here to keep us all right :D

I didn't realise what the Wipe option in Recovery actually did! So it actually clears the Ext partition contents too?
Yes of course you can say that and im very touched by your kind words. Knowing people appreciate what I do is what keeps me coming back here every day :)

I just made a Backup, Wipe and Restore via CWM to double check everything and make sure it all worked as I explained lol. All 3 stages completed perfectly.

Backup will backup your boot, recovery image, system, data, .android_secure, cache and sd-ext (A2SD Partition).

Wipe will format /data, /cache, /sd-ext and /sdcard/.android_secure.

Restore will restore the the complete backup or if you select Advance Restore then you can restore selected parts.

So to answer your question (in a long winded way), yes a wipe will format the external partition.

Mark.
 
  • Like
Reactions: Dunc001

Dunc001

Inactive Recognized Developer
Apr 6, 2010
2,705
1,462
Hiding out south of the border...
Since I posted yesterday I found a problem and am not sure what I'm doing wrong? I decided I'd try a Sense 3 build so I used the Backup option in CWM to backup my CM7 Hyperdroid stuff, then back into CWM and followed your Wipe instructions. Then back into MAGLDR>USB Flasher and flashed the new CWM partition layout required for Sense 3 build. Then flashed Sense 3 through CWM and played about for a while, got really p***ed off with it hanging all the time so gave up...;)

Back into USB Flasher and reflashed the 150Mb CWM layout. But here's the thing (finally!) - CWM full restore of the Hyperdroid backup I took, restored fine but when I then clicked Reboot after the restore MAGLDR gave me a Kernel error and took me straight to the MAGLDR menu rather than just booting the phone. I tried a couple of times to CWM Restore but got the same result both times. Then I tried flashing the original Hyperdroid zip through CWM - all OK and booted fine, so then tried the Restore again and back to the same problem.

Am I missing something about CWM Restore? I thought it backed up EVERYTHING so you could just flash back to where you were before you tried something else/messed up your phone/etc?
 

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
Since I posted yesterday I found a problem and am not sure what I'm doing wrong? I decided I'd try a Sense 3 build so I used the Backup option in CWM to backup my CM7 Hyperdroid stuff, then back into CWM and followed your Wipe instructions. Then back into MAGLDR>USB Flasher and flashed the new CWM partition layout required for Sense 3 build. Then flashed Sense 3 through CWM and played about for a while, got really p***ed off with it hanging all the time so gave up...;)

Back into USB Flasher and reflashed the 150Mb CWM layout. But here's the thing (finally!) - CWM full restore of the Hyperdroid backup I took, restored fine but when I then clicked Reboot after the restore MAGLDR gave me a Kernel error and took me straight to the MAGLDR menu rather than just booting the phone. I tried a couple of times to CWM Restore but got the same result both times. Then I tried flashing the original Hyperdroid zip through CWM - all OK and booted fine, so then tried the Restore again and back to the same problem.

Am I missing something about CWM Restore? I thought it backed up EVERYTHING so you could just flash back to where you were before you tried something else/messed up your phone/etc?
As far as im aware you did everything correctly and it should have restored without any problems. Did the backup process go through without any error messages? All I can think of is that something went wrong with the process or that flashing CWM partitions does something to 'break' the restore.

If you have time to experiment then you could try flashing a NAND Android version, then go into CWM and back it up. Wipe and restore to check the backup worked and then try retoring your previous backup. If the newer backup works and the older one doesnt then I would say there was a problem with the original backup.

You could also try flashing a new CWM partition and see if the backups will still restore.

Let me know how it goes.

Mark.
 
  • Like
Reactions: Dunc001

neverFollow

Senior Member
Mar 24, 2007
451
46
Istanbul
...Back into USB Flasher and reflashed the 150Mb CWM layout. But here's the thing (finally!) - CWM full restore of the Hyperdroid backup I took, restored fine but when I then clicked Reboot after the restore MAGLDR gave me a Kernel error and took me straight to the MAGLDR menu rather than just booting the phone. I tried a couple of times to CWM Restore but got the same result both times. Then I tried flashing the original Hyperdroid zip through CWM - all OK and booted fine, so then tried the Restore again and back to the same problem...

Same here... I even tried the following:

1. Flash CWR partition from scratch
2. Install ROM via CWR (phone boots OK)
3. Then, boot into Recovery and do full backup
4. Then, boot into Recovery and do full restore
5. Phone won't boot anymore

Used to work with ROMs couple of weeks back, really annoying. Using My Backup now to restore settings, call logs etc.
 

sweetdoc

Senior Member
Oct 3, 2008
60
11
Sargodha
data image

hi mark.
i was using dl desire 4XX on sd card, till yesterday when i switched cwm rom dl desire 5X using your instructions. i have data image of the previous rom. is there a way i can use that image on the latter rom. forgive me for being naive.
 

Matchpoint

Member
May 8, 2008
8
2
Thanks to all

Salutations, this is the first time I write in the forum, translated by google I read for years, but as no English, did not dare to write.
I need from here, to thank all those who do us easier life selflessly.
My most sincere congratulations on such wonderful work.:D
 

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
Salutations, this is the first time I write in the forum, translated by google I read for years, but as no English, did not dare to write.
I need from here, to thank all those who do us easier life selflessly.
My most sincere congratulations on such wonderful work.:D
You're welcome im glad you found it useful :)

Mark.
 

daz990

Member
Mar 14, 2010
37
0
Hi Mark, Appreciate the guides there bob on, but i am having an issue.

I have flashed magldr then cwm and then the 250mb recovery
I then put a miui clk zip folder on root of sd along with an intriz.gz file and a zImage
I followed procedure to install a zip from sd card.

Now when phone boots up it goes to boot from nand and then i get this error: -

nand kernel open failed (in red letters)

I'm stuck and I know it will be something simple but i'm well and truly stuck.

Thanks in advance.

Edit : Sorted didn't have a bloody kernel *continuous punching of my own head*

cheers
 
Last edited:

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
Hi Mark, Appreciate the guides there bob on, but i am having an issue.

I have flashed magldr then cwm and then the 250mb recovery
I then put a miui clk zip folder on root of sd along with an intriz.gz file and a zImage
I followed procedure to install a zip from sd card.

Now when phone boots up it goes to boot from nand and then i get this error: -

nand kernel open failed (in red letters)

I'm stuck and I know it will be something simple but i'm well and truly stuck.

Thanks in advance.

Edit : Sorted didn't have a bloody kernel *continuous punching of my own head*

cheers
Well at least you figured it out by yourself lol :D

Mark.
 

MarkAtHome

Senior Member
Feb 6, 2008
1,394
333
New Jersey
OnePlus 12
I had similar problems when I chose Restore.

I found that if you select Advanced Restore (I think that is what it is called), rather than Restore, after the failed boot, you can select individual parts of your backed up ROM.

I would try the first option (system?), and if that doesn't do it, additionally try the second; anything after that won't solve the problem.
 

mskip

Retired Senior Moderator
Mar 20, 2008
12,328
16,072
Norfolk
I had similar problems when I chose Restore.

I found that if you select Advanced Restore (I think that is what it is called), rather than Restore, after the failed boot, you can select individual parts of your backed up ROM.

I would try the first option (system?), and if that doesn't do it, additionally try the second; anything after that won't solve the problem.
Hey mate :D

Did you ever get used to Android or still using WinMo?

Mark.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 94
    This guide will explain how to install Clockwork Mod on your phone so you can flash CWM Roms, as well as performing other actions.

    Clockwork Mod is the traditional way of flashing, updating, backing up and restoring Roms on Android Phones. Many chefs are now only providing Roms in this form so it is best to have it on your phone and know how to use it.

    REQUIREMENTS BEFORE STARTING!! IMPORTANT, PLEASE READ THIS!!

    1. YOU NEED HARDSPL 2.08 INSTALLED ON YOUR DEVICE TO FLASH MAGLDR
    2. YOU NEED A RADIO WHICH SUPPORTS 576 RAM (2.08.50 or later should be fine but the Radio NEEDS to be 2.**.50.**). I recommend the 2.15.50.14 Radio
    3. YOU NEED MAGLDR V1.13 ON YOUR DEVICE TO INSTALL CLOCKWORK MOD


    THIS GUIDE ASSUMES YOU HAVE ALREADY FLASHED MAGLDR V1.13 ON YOUR PHONE. IF YOU HAVENT THEN PLEASE FOLLOW AND COMPLETE STEP 1 OF *THIS* GUIDE BEFORE CONTINUING WITH CWM.

    -------------------------------------------------------
    -------------------------------------------------------

    1. FLASH CLOCKWORK MOD TO YOUR DEVICE

    NOTE: There are 3 CWM images attached at the bottom of this thread. You only need to install 1 of the images depending on what type of Android Rom you want to flash. The larger the size of the CWM Partition the less space there will be left for programs installed to your phone.

    150MB Partition - For lite Roms without Sense such as CM7. Gives most internal space on your phone for apps
    250MB Partition - Standard size Roms or squashed Sense Roms
    400MB Partition - Full Sense Roms. Hardly any internal space for apps. 512ROM Leo's will need A2SD external partition set up

    If you arent sure which size you need then check the first few posts of the Rom you want to flash as it will usually tell you which size partition it needs.

    1. Download the CWM Partition you require and extract it to a new folder on your pc
    2. Connect your phone to your pc via the USB Cable
    3. Restart your phone and HOLD DOWN the 'End Button' (far right) until the Magldr Menu appears
    4. Keep pressing the 'Volume Down' button to goto Option 5. USB Flasher and press the 'Call Button' (far left) to select it
    *The screen should now say Wait USB...USB*
    5. Run DAF.exe (Right Click and Run As Administrator if you have Vista or Windows 7) in the folder you extracted the image to and follow the intructions on your pc to start flashing
    6. After flashing the phone will reboot.
    HOLD DOWN the 'End Button' (far right) until the Magldr Menu appears

    To start Clockwork Mod keep pressing the 'Volume Down' button to goto Option 8. AD Recovery and press the 'Call Button' (far left) to select it

    NOTE: If the Rom demands a different size CWM then you can download any of the attached sizes, then extract the contents and edit the flash.cfg file with Notepad. Change the sizes on the following lines depending on what you need:

    system ya ***M (partition size)
    cache ya **M (cache size)

    -------------------------------------------------------
    -------------------------------------------------------

    2. PARTITION YOUR STORAGE CARD FOR A2SD ROMS (IF REQUIRED)

    NOTE1: Setting up a partition on your Storage Card will allow A2SD compatable Roms to automatically install apps to this partition rather than using your phones internal memory. This is useful for people that have alot of apps to install and for people who want to flash a Sense Rom and wont have much internal memory left.

    NOTE2: Once you create an A2SD partition on your Storage Card all information will be lost so make sure to backup everything to your pc so it can be copied back after. The accessible space on your Storage Card will be made smaller by the amount of the partition you set up so only make it as big as you need make it huge if you dont have many apps to install)

    1. Boot into the Clockwork Mod menu
    2. Go down to 'Advanced' and select (by pressing 'Call Button')
    3. Select 'Partition SD Card'
    4. Select Size of required partition not sure then 1024M is a good size)
    5. Make ABSOLUTELY sure you want to continue and then select 0M Swap Size

    Your Storage Card will now be partitioned with the size you selected.
    ALL DATA ON YOUR STORAGE CARD WILL BE LOST!!

    -------------------------------------------------------
    -------------------------------------------------------

    3. FLASHING A CWM (CLOCKWORK MOD) ROM

    1. Connect your phone to your pc via the USB Cable
    2. In the Clockwork Mod main menu select 'wipe data/factory reset' and then 'Yes' on the next screen
    3. When the data wipe is complete, select 'install zip from sd card' in the main menu
    4. Go down to 'choose zip from sdcard' and select
    5. Scroll down to your CWM Rom (which you should have copied to the Root of your Storage Card) and select it
    6. Select 'Yes' from the options and wait until you get a message saying 'Install from sdcard complete'
    Note: You can repeat steps 3-5 if you have more zips to install such as gps data or screen mods
    7. Once finished press the 'Back' button to get to the previous menu screen
    8. Select 'reboot system now' to restart your phone and your Android Rom should boot
    9. Once Android has booted and you have gone through the setup screens, LONG PRESS the 'End' button and select reboot to reboot your phone to avoid possible FC (Force Close) problems

    NOTE: The first boot of your Rom will take alot longer than subsequent boots so leave it and give it time (15 minutes max)

    -------------------------------------------------------
    -------------------------------------------------------

    4. UPDATING AN EXISTING CWM (CLOCKWORK MOD) ROM

    1. Connect your phone to your pc via the USB Cable
    2. In the Clockwork Mod main menu select 'install zip from sd card'
    3. Go down to 'choose zip from sdcard' and select
    4. Scroll down to your CWM Rom update (which you should have copied to the Root of your Storage Card) and select it
    5. Select 'Yes' from the options and wait until you get a message saying 'Install from sdcard complete'
    6. Once finished press the 'Back' button to get to the previous menu screen
    7. Select 'wipe cache partition' and then 'Yes' on the next screen
    8. Select 'Advanced', Select 'Wipe Dalvik Cache' and then 'Yes' on the next screen
    9. Select 'Fix Permissions' and wait for it to complete
    10. Once completed press the 'Back' button and then select 'reboot system now'
    11. After the phone boots into Android you will probably get alot of 'Force Close' messages. Pull the battery, plug it back in and press the 'Power' button to boot up and everything should work fine

    -------------------------------------------------------
    -------------------------------------------------------

    USEFUL INFORMATION

    HOW TO ENTER THE CLOCKWORK MOD MENU SCREEN
    1. Restart your phone and HOLD DOWN the 'End' button (far right) until the Magldr Menu appears
    2. keep pressing the 'Volume Down' button to goto Option 8. AD Recovery and press the 'Call' button (far left) to select it

    -------------------------------------------------------

    HOW TO COPY FILES TO YOUR PHONE
    NOTE: This can be used to copy music or data across to your Storage Card and for copying your CWM Rom (with .zip extension) to the Root of your Card for flashing

    1. Connect your phone to your pc via the USB Cable
    2. In the Clockwork Mod main menu select 'mounts and storage'
    3. Go down to 'mount USB storage' and select
    Note: The Storage Card will now appear as a drive on your pc
    4. When finished copying files select 'Unmount'

    -------------------------------------------------------

    HOW TO BACKUP THE CURRENT ROM ON YOUR PHONE
    NOTE1: This can be used to make a complete backup of your Rom, installed apps and all settings. You can then try a different Rom and restore your backup at a later date if required.
    NOTE2: Multiple backups can be made as they are stored in seperate folders (named by date and time)

    1. Connect your phone to your pc via the USB Cable
    2. In the Clockwork Mod main menu select 'backup and restore'
    3. Select 'backup'
    Note: Your entire Rom and all associated data will now be saved to your Storage Card. You can rename this folder at a later date if you wish

    -------------------------------------------------------

    HOW TO RESTORE A BACKUP TO YOUR PHONE
    1. Connect your phone to your pc via the USB Cable
    2. In the Clockwork Mod main menu select 'wipe data/factory reset' and then 'Yes' on the next screen
    3. When the data wipe is complete, select 'backup and restore' in the main menu
    4. Select 'restore'
    5. Select the backup folder you wish to restore and then 'Yes' on the next screen
    Your entire Rom and all associated data will now be restored from your Storage Card

    NOTE: You can also restore parts of the backup by selecting 'Advanced Restore', selecting the backup and then choosing which part of the backup you want to restore (boot, system, data, cache or sd-ext)

    -------------------------------------------------------

    To SCROLL through the Menu Options use the 'Volume Up' and 'Volume Down' buttons on the left side of the phone

    -------------------------------------------------------

    To SELECT an Option in Clockwork Mod, press the 'Call' button which is the far left button at the bottom

    -------------------------------------------------------

    To GO BACK in the Clockwork Mod Menu, press the 'Back' button which is next to the 'End' button at the bottom

    -------------------------------------------------------

    *DISCLAIMER*
    I take no responsibility for any fault or damage caused by any procedures within this guide. No warranties of any kind are given.
    11
    **Reserved**
    5
    Thanks a lot. That's a superb user guide.

    I have a question: I have a TMOUS HD2 so I have a 1024MB ROM. Assuming I'm not going to install far too many apps, is there any reason I should consider using a smaller CWM than the 400MB version? Is there any downside/compatibility issue? e.g. what would happen if I install a ROM where the cook says it has been made for a smaller CWM?
    Setting a 400MB partition for a Rom that only requires a 150MB partition would have no negative impact on your device or speed. The only negative is that if you flashed a Rom that only needs a smaller partition then you would waste around 250MB of ROM but since you have a 1024LEO and you said you arent going to install much then you would 400MB-500MB of internal space available to install apps so you dont have too much to worry about.

    The only reason why you should never install a 400MB partition is if you never plan on trying a Sense Rom. They are the only Roms that require soo much space so it would be pointless to waste the space for no reason.

    Hope that answers your question.

    Mark.
    2
    I have a TMOUS HD2, am currently on 150mb CWM on MIUI and CM7 alternately, if I change the CWM to 400mb version, is that mean that I can flash any ROM including the MIUI, CM7, Sense etc without having to change the CWM?
    many TIA
    Yes it does (in general) but you are always better off flashing the size recomended by the chef to get the best results.

    Mark.
    2
    Is there a way to use SD builds with CMW?
    What would be the right instructions?
    Thank you..
    No there isnt.

    Mark.