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

Technical

Senior Member
Jun 2, 2008
3,427
1,197
253
I tried but it isn't working for me on windows 8 64 bit :(. I don't remember the error now but it was like recovery.tar not found
Not working here for me either.
I'm on Windows 8 x64 and the error is the following:

bin/tar: recovery.img: Cannot stat: No such file or directory
bin/tar: Exiting with failure status due to previous errors
Thank me at xda @cabloomi
Thank me at xda @cabloomi
Thank me at xda @cabloomi
Thank me at xda @cabloomi
Thank me at xda @cabloomi
Thank me at xda @cabloomi
Pressione qualquer tecla para continuar. . .

There directory files are:
 

Attachments

gIMpSTa

Senior Member
Sep 8, 2009
1,169
167
0
Maine
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!
 

ngr.hd

Senior Member
Oct 27, 2010
330
75
58
Hello

I'll be making the .tar for Samsung Galaxy Note 2 (N7100 Intl.)...if possible could you please provide what options to check and what not...a step by step if possible.

Thanks
 

chdiryoung

Member
Jul 11, 2013
39
22
0
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!
 
Last edited:

Jack Mayerz

Member
Jan 27, 2012
25
33
0
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.
 

Attachments

Last edited:

nale

Member
Jan 7, 2011
13
6
0
I got error:
bin/tar: value 4294967295 out of gid_t range 0..2097151
bin/tar: Exiting with failure status due to previous errors

Any solution?
Edit Runme.bat file and change tar command ustar to gnu, like this

bin\tar -H ustar -c recovery.img > recovery.tar

change it to

bin\tar -H gnu -c recovery.img > recovery.tar

save file and run it.

It worked for me and installed CWM img file like a charm....
 

ssss25

Senior Member
May 19, 2008
141
5
0
Hi,

I tried to patch the .bat file with the suggested fixes, but I still get:
Code:
C:\Users\Shadi\Desktop\root\create odin tar>Runme.bat
bin/tar: value 4294967295 out of gid_t range 0..2097151
bin/tar: Exiting with failure status due to previous errors
Thank me at xda [user=4514188]@cabloomi[/user]
Thank me at xda [user=4514188]@cabloomi[/user]
Thank me at xda [user=4514188]@cabloomi[/user]
Thank me at xda [user=4514188]@cabloomi[/user]
Thank me at xda [user=4514188]@cabloomi[/user]
Thank me at xda [user=4514188]@cabloomi[/user]
Press any key to continue . . .
although I do see the .tar.md5 created... is that ok? should I flash using odin now?

Thanks,
 

zameer_yus

Senior Member
Mar 14, 2013
60
4
28
how to make a wipe able csc for samsung phone

how to make a wipe able csc for samsung phone
i m using this below command for making odin flash able file but it doesnt wipe data after flash

$ tar -H ustar -c cache.img.md5 hidden.img.md5 > csc.tar
$ md5sum -t csc.tar >> csc.tar
$ mv csc.tar csc.tar.md5

i want to know how to put a (wipe data/factory default) command in that to erase all phone after flash or automatically perform a full wipe after flash



like here is some sample of csc files these below files erase all phone after flash

CSC_ITV_I9505ITVAMDB_526507_REV06_user_low_ship_MU LTI_CERT.tar.rar

https://mega.co.nz/#!vENDyA6D!cMY2Ws...qx0PuHq hByU

CSC_ITV_I9505ITVAMDB_526507_REV06_user_low_ship_MU LTI_CERT.tar.md5

CSC_OJV_S7560OJVAMF5_1231180_REV02_user_low_ship.t ar

i dont know the exact name of these kind of csc files but i think some people call it multi csc
please help me
 

SeaFargo

Senior Member
Feb 24, 2011
322
59
58
Rome
rvd.it
Does not work for me also.

On Windows XP 32bit. Just a rar with zero byte is created. Offcourse i've renamed the file to recovery.img.

How to install the .img, anyway?
 

shikhar623

Senior Member
Feb 18, 2013
365
63
0
Nba
My cwm got broken (my phone is working ok , but I am not able to flash anything),
Now I have extracted boot.img from the kernel.
I want to flash it with the odin.
when I convert the boot.img using your software. it just makes a 11kb file. and the terminal shows the following information,(in the image).

1) How shall I convert boot.img to boot.tar.md5
2) In the Odin , Where shall I pick the boot.tar.md5 file . (in bootloader, in pda, in phone, or in CSC?)

Regards,
Shikhar
 

Attachments

evilmansin

Member
Dec 24, 2007
29
9
33
Salt Lake City
Updated batch files.

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
Here I have updated the package that @cabloomi so nicely put together for us.

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.


Edit Runme.bat file and change tar command ustar to gnu, like this

Code:
bin\tar -H ustar -c recovery.img > recovery.tar
change it to

Code:
bin\tar -H gnu -c recovery.img > recovery.tar
save file and run it.

It worked for me and installed CWM img file like a charm....

_
_
_
_
_
_

Thanks to @cabloomi @Jack Mayerz @nale

_*~*_Here is an updated package_*~*_.

_*~*_EviLMaNSiN Public gDrive_*~*_
 
Last edited:

m2geek

Senior Member
Jan 10, 2012
632
100
0
38
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!
Thank you sir you made my day :)
 

Guatiao

Senior Member
Feb 22, 2012
520
55
48
Thanks to the OP and the others that fine tuned this great tool, it just worked for me to flash AOKP on my phone after a bad flash on my hercules.