[Tutorial] How to back up your ROM - A comprehensive guide.

Search This thread

taarzaan

Member
Jul 5, 2010
32
4
Budapest
thank you :)

Thanks for this tutorial :)

Almost finished dumping. I hope it will work for me, too.

p.s.: do you know a well working and small (clean?) rom?
 

devilhanson

New member
Oct 16, 2010
2
0
Beijing
I have finished every step ,
and seemingly everything goes well .
However the final file I got is just 4.77MB~~~
Jesus Christ~~
what's the matter???
 

jorisboytjuh

Member
Oct 8, 2010
21
0
Need WM 6.1 Dutch Stock Rom

Hello,
I need a original rom of WM 6.1 Dutch version.
I had my phone from Hi and he is Simlockfree.

I hope you can help me Thnx
 

u.b.o.o.t

Senior Member
May 27, 2006
175
78
I get a malware warning on htcrt.exe contained in KovskyKitchen.zip, even on the upx-unpacked version.

Maybe it's a false positive: http://www.virustotal.com/file-scan...8942d7bb06d4d25b32cb150428e2e01a1b-1287409397

But I found another htcrt.exe which is even newer and does not give virus alerts here: http://www.mediafire.com/?uzzm5kymgjl

Now, I tried backing up my SE M1i Aspen. I installed sdkcerts, checked security policies (which were already set to 1) in registry and did a soft reset.

pdocread.exe -l gives

Code:
459.13M (0x1cb20000) DSK1:
|           4.12M (0x41f000) Part00
|           6.00M (0x600000) Part01
|         180.00M (0xb400000) Part02
|         269.00M (0x10d00000) Part03
 14.84G (0x3b5900000) DSK2:
|          14.83G (0x3b5500000) Part00
STRG handles:
handle#0 cce8b86a  14.83G (0x3b5500000)
handle#1 ad34394a 269.00M (0x10d00000)
handle#2 cd3baf7a 180.00M (0xb400000)
handle#3 4d3baf56   6.00M (0x600000)
handle#4 6d3baf0e   4.12M (0x41f000)
disk cce8b86a
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk ad34394a
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk cd3baf7a
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk 4d3baf56
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
disk 6d3baf0e
0 partitions, 0 binary partitions
customerid=00000000 uniqueid= 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

But when I try pdocread -w -d DSK1 -b 0x800 -p Part00 0 0x41f000 Part00.raw it says
Code:
CopyTFFSToFile(0x0, 0x41f000, Part00.raw)
ERROR: ITReadDisk : read 0000004e bytes - The device is not ready for use.
 

TupiX

Member
May 27, 2009
8
0
Sampa
HEy, I'd like to backup my ROM before flash, but the links of XDATools aren't working...
xs4all.nl/~itsme/projects/xda/tools.html

Is there another place where I can find these files?!?
 

khakhi

Senior Member
Jul 1, 2010
322
2
--- Foreword ---

This guide is designed for those who find it hard to (or are too lazy to) search the forum for information on how to dump a ROM. This is specifically for the X1.
Some common sense and knowledge of computers and pocket pc's is required. I followed below steps myself to dump a ROM and dumping it worked flawlessly.
Update: The ROM I dumped has been tested and reported working perfectly!
EDIT: For those looking only for a stock ROm to dump with: Rapidshare

--- Special thanks to ---

Fards - Much of the below tutorial.
hungarian - The registry fix in step 2.
m@rco - UK generic ROM link.
Itje - Kovskykitchen.
And the guys who made XDA Utils!


--- Guide ---

1) Download and preparation of files

A good preparation makes it much easier, download the following files:

XDA Tools/Utils
X1 (Kovsky) Kitchen
Stock UK ROM
Sdkcerts.cab
Fdcsoft Taskmanager

- Extract Kovskykitchen to C:\KovskyKitchen and in Vista make sure that buildos+package_tools is able to run as administrator.
- Extract the XDA tools to an easy to access folder, for instance c:\Xdatools


2) Preparing your phone:

Before your X1 will allow the dumping to be done, the following Sdkcerts.cab file must be installed.

- Copy Sdkcerts.cab to your phone or storage card and install it to the device.

Also, your phone must accept changes that pdocread makes. You can do this with the regedit function of the FdcSoft Taskmanager.

- Set the following registry keys to "1":
* HKLM\Security\Policies\Policies "00001001"
* HKLM\Security\Policies\Policies "0000101a"

- Connect your phone to your pc with activesync.


3) pdocread

- Open up a command line and navigate to the folder where you extracted the XDAtools.
- Enter the following command: "pdocread.exe -l"

You'll get something like this:

| 3.12M (0x31f000) Part00
| 3.50M (0x380000) Part01
| 69.38M (0x4560000) Part02
| 134.38M (0x8660000) Part03

The bits in brackets are the important ones as you need to use what it says on YOUR device in the next step.



4) Extraction

Run the following commands one at a time. Replace the codes (.e.g 0x31f000) with the codes you get in step 3.
Extracting these files can take some time, do not disconnect your device until the command line sais it's done.


pdocread -w -d FLASHDR -b 0x800 -p Part00 0 0x31f000 Part00.raw
pdocread -w -d FLASHDR -b 0x800 -p Part01 0 0x380000 Part01.raw
pdocread -w -d FLASHDR -b 0x800 -p Part02 0 0x4560000 Part02.raw
pdocread -w -d FLASHDR -b 0x800 -p Part03 0 0x8660000 Part03.raw

The files will end up in the XDAtools folder.


5) Kovksy kitchen

- Open your Kovskykitchen folder.
- Copy your 4 raw files to the "baserom" folder.
- From the stock UK ROM extract the RUU_signed.nbh to Baserom folder as well.

There are decent walkthroughs for cooking roms, this kitchen is built on the Kaiser Kitchen.
If you want more info, search for "kaiser kitchen" on XDA.


- Start kovskykitchen.cmd
- Select (e) extract a rom, then (b) and let it work through.

When it's finshed it'll go back to the main menu.

- Now select (c) cook a rom, then (b)

It'll start up the buildOS + Package tools program.

- Select the buildos tab.
- Select "load rom" and navigate to your kovskykitchen folder.
- Press ok.

After a couple of seconds the green "go" arrow will light up press it.
It'll do lots and may come back with an imgfs error, but this doesn't seem to matter.


- When it's done close the window.

Back in the CMD window it'll be waiting for a keypress.
When pressed a lot of files will be processed.
Finally it'll popup with some info for the HTC rom tool.


- Click BUILD!
- Select Kovsky from the dropdown box.
- Press the 3 little dots ... next to the box that says OS.
- Select the OS-NEW.nb in the main kovsky kitchen folder.

Press BUILD! at the bottom, and give the file a sensible name, RUU_signed.nbh if you want to flash it from windows, Kovsimg.nbh if you want to flash it from microSD card.

- Close the htc_rom_tool when it's done.

It'll popup a hexeditor to change the Pagepool.
An error might occur that it can't find the nbh file.


- Close the hexeditor.

The command line will clean up the temporary files and allows you to flash your ROM.
If you just want to back up the rom of your device then close this window.

Enjoy!

i am stuck on step three...pls advice...do i open the programme on my laptop 'command prompt" and type in "pdocread.exe -l"?
 

przemke

Senior Member
Aug 23, 2011
111
5
hey guys
is this the way to create a full backup of ROM with apps, settings etc ?

I mean when I install a rom, some basic apps, make shortcuts and set things up and then I want to have like an image of the internal memory with everything like I make an image of a system partition on a PC

I guess there should be an easier way to make an image of what's there to be able to flash it later (or restore in other way through PC maybe) ?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hi might it be that my anti-virus software goes crazy while downloading X1 (Kovsky) Kitchen, i mean i get all these alerts about trojan in the file, did anybody have simillar problem?
    Sophos Anti-Virus' generic detection flagged "PKGTool.exe" on my system. I sent it to them and they said it's a false positive.

    I think the package (ie. the kitchen) is fine.