[Tool][[windows] Make CWM Recovery .img's into .tar.md5 odin flash-able files 1 CLICK

Search This thread

Dr.Ghobar

Senior Member
Dec 8, 2014
183
5
Where to put recovery.tar.md5 ?

it goes in ONE PACKAGE
PDA will brick the phone..

Hello to you
I have converted recovery.img to recovery.tar.md5 (although, after editing runme.bat).
The recovery.img that I converted was for Galaxy Ace GT-S5830 (I downloaded it from http://forum.xda-developers.com/showthread.php?t=2691135).
I have two groups of questions:
1. Is it safe to flash the recovery via Odin? Won't it damage my phone? Is it reversible, i.e. can I return the phone to present condition?
2. Where should I put "recovery.tar.md5" in Odin (PDA, One Package, etc.)?

Please answer my questions if you are sure about your answer.

Thanks in advance
Dr.Ghobar
 
Last edited:

mark-1978

Senior Member
Jun 17, 2015
691
144
Hello to you
I have converted recovery.img to recovery.tar.md5 (although, after editing runme.bat).
The recovery.img that I converted was for Galaxy Ace GT-S5830 (I downloaded it from http://forum.xda-developers.com/showthread.php?t=2691135).
I have two groups of questions:
1. Is it safe to flash the recovery via Odin? Won't it damage my phone? Is it reversible, i.e. can I return the phone to present condition?
2. Where should I put "recovery.tar.md5" in Odin (PDA, One Package, etc.)?

Please answer my questions if you are sure about your answer?

Thanks in advance
Dr.Ghobar

thought to unbrick a phone you have to do 'one package' and put the tar file there. Further select 'ops. and put the ops file there.
 

TheromsMan

Member
Oct 2, 2015
43
4
didnt work for me.

i rename the recovery file to - "recovery img" and move the file to the foldor that i extrack for rar

and then i run the file- "RunMe.bat"

and it say me error somthing worng?
 

arcmanov

Senior Member
Jan 30, 2010
250
23
Script is invalid due to `tar` command

FIX :

1-right click "Runme.bat" and choose "edit" from menu.
2-convert second line which is
Code:
bin\tar -H ustar -c recovery.img > recovery.tar
to
Code:
bin\tar -cf recovery.tar recovery.img
3-save file and close notepad.
4-put recovery.img file in the folder and run "Runme.bat"

make sure to first remove the existent recovery.tar.md5 from the folder (I don't think it matters but prompt wouldn't come up for overwrite).

@cabloomi good effort and nice tool, saved me personally the trouble of rebooting every time I have to create a .tar.md5 from a .img, I don't know why you used the tar command in this way though, `man tar` clearly states command `tar -cf archive.tar foo` to create .tar files. Please clear that up for me. Same thing with `md5sum`, if you look up man for it, the command is different.

EDIT: I attached a file with the script fixed.

Worked perfectly for me. Thanks.

Can I use this for ROM files, or only recovery files?
 

Jack Mayerz

Member
Jan 27, 2012
25
33
Worked perfectly for me. Thanks.

Can I use this for ROM files, or only recovery files?

I don't see why not. ROM images are bigger though so it'll take longer for the script to finish, so just run it and wait for the .tar.md5 file to appear. It won't show any progress but it'll run in the background.
While it should work, It could mess up the signature especially that image roms are usually factory. If that happens Odin flash will fail before the process even starts.
 

codex101

New member
Apr 3, 2016
1
0
didnt work the program seems to be limited based on the gid_t ranges my mod exceeded that range by far.
 

mrsim

Senior Member
Mar 10, 2014
819
224
london
www.china-devices.com
how to convert these types of files back the other way...from tar.MD5 to .img files...need to extract a recovery file from a downloaded tar.MD5 file from samobile in order for a friend to create a custom recovery for me on a broken screen samsung which is screen locked and has no usb debugging enabled in order to get the data off of the device for a friends wife...she really wants the pictures in the phone
 

Shark5060

Senior Member
Jun 26, 2014
309
140
37
Hamburg
shark5060.net
how to convert these types of files back the other way...from tar.MD5 to .img files...need to extract a recovery file from a downloaded tar.MD5 file from samobile in order for a friend to create a custom recovery for me on a broken screen samsung which is screen locked and has no usb debugging enabled in order to get the data off of the device for a friends wife...she really wants the pictures in the phone

rename the tar.md5 into .tar and open with the zip-tool of your choice. Winrar for example, or 7zip or whatever.
The IMG file is inside.
 
  • Like
Reactions: mrsim

awadh730

Senior Member
Feb 23, 2015
77
6
can i modify in my samsung rom via android kitchen to edite some apps or add some language and thin use this tool to flash rom with it to my phone?
 

alzou

Member
Aug 21, 2013
18
3
tasikmalaya
Ok so i made this tool for personal use, but i saw a lot of people wanted this, so here it is

Step 1. Download it from ATTACHMENTS
Step 2. Decompress it to a folder
Step 3. Download your recovery for your SAMSUNG device from here
http://www.clockworkmod.com/rommanager/
Step 4. Rename it to "recovery.img" then move it to the folder you decompressed the tool at earlier
Step 5. Open the "Runme" file and theres your recovery.tar.md5 File ready to flash with odin

please if you used my tool give me some credit and relink to this page as the tool you used to make the file
Rate this thread and press the thanks button

it's not working
Untitled.jpg


:confused::confused::confused::crying::crying::crying:
 
  • Like
Reactions: Jamboozlez

ket19

Member
Oct 31, 2013
5
0
Very awesome, Thank you for the share!! This tool allows me solutions to some of my crazy ideas.

RootedXposedNote3_SM-N900P_5.0/Sprint
 

slyzi

New member
Apr 25, 2021
1
0
Ok so i made this tool for personal use, but i saw a lot of people wanted this, so here it is

Step 1. Download it from ATTACHMENTS
Step 2. Decompress it to a folder
Step 3. Download your recovery for your SAMSUNG device from here
http://www.clockworkmod.com/rommanager/
Step 4. Rename it to "recovery.img" then move it to the folder you decompressed the tool at earlier
Step 5. Open the "Runme" file and theres your recovery.tar.md5 File ready to flash with odin

please if you used my tool give me some credit and relink to this page as the tool you used to make the file
Rate this thread and press the thanks button
hello, i have problem to find the "attachement" section. i am sorry, i'm newby dan new on this forum.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 321
    Ok so i made this tool for personal use, but i saw a lot of people wanted this, so here it is

    Step 1. Download it from ATTACHMENTS
    Step 2. Decompress it to a folder
    Step 3. Download your recovery for your SAMSUNG device from here
    http://www.clockworkmod.com/rommanager/
    Step 4. Rename it to "recovery.img" then move it to the folder you decompressed the tool at earlier
    Step 5. Open the "Runme" file and theres your recovery.tar.md5 File ready to flash with odin

    please if you used my tool give me some credit and relink to this page as the tool you used to make the file
    Rate this thread and press the thanks button
    82
    I had the same error that several others had when trying this out (out of gid_t range). I fixed it by editing Runme.bat and adding --group=1 to the tar line so that it looks like this:

    Code:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar

    Great tool, once editing this it did exactly what I needed! Thanks!
    30
    FIX for script errors and not running

    Script is invalid due to `tar` command

    FIX :

    1-right click "Runme.bat" and choose "edit" from menu.
    2-convert second line which is
    Code:
    bin\tar -H ustar -c recovery.img > recovery.tar
    to
    Code:
    bin\tar -cf recovery.tar recovery.img
    3-save file and close notepad.
    4-put recovery.img file in the folder and run "Runme.bat"

    make sure to first remove the existent recovery.tar.md5 from the folder (I don't think it matters but prompt wouldn't come up for overwrite).

    @cabloomi good effort and nice tool, saved me personally the trouble of rebooting every time I have to create a .tar.md5 from a .img, I don't know why you used the tar command in this way though, `man tar` clearly states command `tar -cf archive.tar foo` to create .tar files. Please clear that up for me. Same thing with `md5sum`, if you look up man for it, the command is different.

    EDIT: I attached a file with the script fixed.
    11
    I had the same error that several others had when trying this out (out of gid_t range). I fixed it by editing Runme.bat and adding --group=1 to the tar line so that it looks like this:

    Code:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar

    Great tool, once editing this it did exactly what I needed! Thanks!

    How do you do this excatly? Sorry such a noob question.

    Figured it out! Thanks!

    For those who don't know, you can right-click on the "recovery.img" file you moved into the folder you extracted the tool into and open it with cmd (command prompt)(browse for cmd if it's not listed) and then copy the code gIMpSTa wrote above and paste it in the cmd and press enter to send that command and then it's done. A TAR file called "recovery" shows up in the folder you extracted the tool into and you then just use that file in odin! ta-da!
    7
    Very useful, but for win 8.1 x64 the first line in the "runme.bat" will be
    Code:
    bin\tar --group=1 -H ustar -c recovery.img > recovery.tar
    not the
    Code:
    bin\tar -H ustar -c recovery.img > recovery.tar

    Thanks to gIMpSTa