yashsingh1/xdaforums huggingface dataset:
[Verizon Droid Charge] distortedloop:
Each of those is a linux command and its parameters. Tar, md5sum, mv.

Tar command puts all the files into one file (like winzip does), md5sum calculates a hash for the file that lets you check that there's been no changes (corruption, etc) to the file from when you first created it, and mv is basically a rename command in this context. "package_name" is just a variable you replace with whatever you want to call the file.

There's probably Windows equivalents to each, but I don't know them. For Mac users the same commands exist but the syntax is slightly different.

You might be able to do them all on the phone itself with a terminal app; I'm pretty sure busybox has the same (or similar function) commands, but not near a phone to check right now.
[Verizon Droid Charge] andrewjt19:
How to CREATE the tar md5

I love the post; this is what I've been looking for... Question how do you make the tar file (or the tar.md5) in Ubuntu? Are the commands you wrote at the end of the post for linux or Windows? If it's linux, how do I do it in Terminal? When I typed "tar" it didn't recognize the command. Thanks in advance....
[Verizon Droid Charge] Boomwaller:
Thanks man that clears some things up!
[Verizon Droid Charge] andrewjt19:
Hey bro., Great post. Thanks a bunch.. Where is the last set of commands to be entered? The one to tar and md5sum? I saw in the post that you need linux (Ubuntu) to do this operation. I'm not to versatile in Ubuntu but can manage, and wasn't able to tar or md5 with these commands in terminal. Any suggestions or a complete list of commands from beginning to end in Terminal (Ubuntu). Thanks, I created all of the other files successfully.

andrewjt19
[Verizon Droid Charge] streetlightman:
can anyone confirm that this works with voodoo enabled? if not, does anyone have instructions for it to work with voodoo or if you just disable voodoo will it work?

Thanks a lot
[Verizon Droid Charge] papi92:
I suggest using the application samsung odinmaker from the market. Does it straight from your phone.
[Verizon Droid Charge] streetlightman:
Does it work (with voodoo or without)? Have you tried it?

Thanks
[Verizon Droid Charge] papi92:
Works with voodoo.
[Verizon Droid Charge] MitchTank:
any chance for a guide to create for EG2
[Verizon Droid Charge] bedwa:
Thank you!

This information was exactly what I was looking for with ALL the samsung phones, I know that I have to possibly change partitions, but this will be useful for the infuse. Thanks!
[Verizon Droid Charge] imnuts:
This guide will be identical regardless of what build you are running. The only thing that would change this guide is if Samsung would change the partitions. While I wouldn't put that past them, I have not seen any case where an update has changed where the partitions are, though some have changed their sizes some.
[Verizon Droid Charge] bash_array:
can you edit your original post to include commands to retrieve the cdma and lte modems for odin packaging?
[Verizon Droid Charge] imnuts:
You can't dump the CDMA modem.
[Verizon Droid Charge] SoCalNewb:
Thanks for the guide imnuts. I've had no way to preserve the state of my Samsung Charge, and this is the ticket.

To other newbs like myself that found the Linux instructions to create a flashable Odin packag daunting, I may have some help for you... I have no experience with Linux, which is needed to create a flashable Odin package once you've copied the 6 files from the phone, but I was able to install the VMWare Player on my Windows 7 computer, and then install a Debian instance in the VMWare Player (instructions HERE - I used "Option C").

The next step was to copy the 6 files from the Windows OS to the VMWare debian instance - I found instruction on how to do this HERE (see last section "Sharing files between Linux and Windows").

Finally, after copying the 6 files to the desktop directory on the debian instance, I was able to find the basic Linux commands HERE on how to change directories, etc, so that I could customize the "tar -H" commands to be specific to the directory locations I was using.

I have not yet used Odin to restore the new tar.md5 file that I created. I have used Odin to flash a ROM on this device with no problems. Are there any special instructions that I should follow when using Odin to restore the tar.md5 to my Charge, or can I just follow the Odin instructions HERE? Is there any special risk of bricking my phone when doing this, above and beyond the normal risk of flashing a ROM in Odin?

p.s. I'm excited to see a version of CWR with a functional restore capability make its way to release. Keep up the good work!
[Verizon Droid Charge] jmaher1023:
This may seem like a dumb question, but will this work on the Fascinate, or would some of the command lines be different?
[Verizon Droid Charge] imnuts:
You'd need to change the if= lines to be the proper device nodes. Other than that, it'd work.
[Verizon Droid Charge] mweeuser:
I consistently fail on flashing just as it starts cache.rfs like some others have had. Anyone have thoughts on what to try? I have done it twice with battery connected and three times without battery, exact same result.
[Verizon Droid Charge] Cilraaz:
imnuts, I'm pretty new to dealing with the nitty gritty of Android, but I'm fairly knowledgeable about linux in general (I have a web server running at home, so I at least know that much). If I head out a .tar created by busybox v1.18.2, it appears to be using the ustar format by default. At that point, is it not possible to create the tar and cat in the md5sum directly on the phone, assuming that you have busybox installed? I wrote a script to do this, but don't want to share it if my logic is incorrect.
[Verizon Droid Charge] absens:
This would be awesome!
[Verizon Droid Charge] ceredics:
Much appreciated for all the flashing that's going on with this ep1w.

*DC!*
[Verizon Droid Charge] leaveone:
ext4 vs rfs

does this same process work if you have enabled the voodoo-lagfix stuff and have partitions formatted as ext4 instead of rfs? i see in the OP that you have /system being backed up to a factory.rfs file. Being a daily linux user i realize that file extensions don't really mean anything so i'm inclined to think that it would work just fine. right?
[Verizon Droid Charge] AlexDeGruven:
It should work just fine. In the case of a personal backup like this, you're also backing up the kernel, which is set up for ext4/voodoo already.

If you're not backing up the kernel, and you make the factoryfs.rfs file using an ext4 filesystem, your restored system will fail to boot.
[Verizon Droid Charge] trabel:
hi

anyone can help with file system of i9100 ?

im trying to read as i did with my i9000 but i getting errors about no such files

i guess its in a different address ?

dd if=/dev/block/stl10 of=/sdcard/factoryfs.rfs bs=4096

dd: can't open '/dev/block/stl10': No such file or directory

and so on

thx
[Verizon Droid Charge] AlexDeGruven:
From that command line session, issue the 'mount' command. That will tell you what block device is mounted as which filesystem.

If you're on an international SGS, it's likely that the partition layout is different, and /dev/block/stl10 doesn't exist.
[Verizon Droid Charge] trabel:
mount

rootfs on / type rootfs (ro,relatime)

tmpfs on /dev type tmpfs (rw,relatime,mode=111)

devpts on /dev/pts type devpts (rw,relatime,mode=600)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

none on /acct type cgroup (rw,relatime,cpuacct)

tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)

tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)

tmpfs on /mnt/usb type tmpfs (rw,relatime,mode=755,gid=1000)

tmpfs on /app-cache type tmpfs (rw,relatime,size=7168k)

none on /dev/cpuctl type cgroup (rw,relatime,cpu)

/dev/block/mmcblk0p9 on /system type ext4 (ro,relatime,barrier=1,data=ordered)

/dev/block/mmcblk0p7 on /cache type ext4 (rw,nosuid,nodev,noatime,barrier=1,data

=ordered)

/dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,barrier=1,data=o

rdered)

nil on /sys/kernel/debug type debugfs (rw,relatime)

/dev/block/mmcblk0p10 on /data type ext4 (rw,nosuid,nodev,noatime,barrier=1,data

=ordered,noauto_da_alloc,discard)

/dev/block/mmcblk0p4 on /mnt/.lfs type j4fs (rw,relatime)

/dev/block/vold/179:11 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,

noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,code

page=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro,discard)

which should i read to get full rom without user data ?

thx

btw , if i have nandroid backup , cant i use those files for it ? or ?
[Verizon Droid Charge] davepmer:
stupid question

But if you have to root the phone to make the odin image, how do you make an image that is not rooted???
[Verizon Droid Charge] trabel:
phone is rooted already
[Verizon Droid Charge] leaveone:
ok, thanks!
[Verizon Droid Charge] AlexDeGruven:
In your case, /system is mounted from /dev/block/mmcblk0p9, so that is what you would want to use to create your factoryfs.rfs file.

Since you're working with what is essentially the International SGSII, you can probably find more relevant advice on this type of stuff in a more related forum. Since this is the Droid Charge forum, it's going to have a lot of things that don't match up with the standard SGS and particularly the SGSII lines.

As for the nandroid question, I don't know.
[Verizon Droid Charge] trabel:
:)

thx , but in sgs forum noone answered yet

but thx i'll make a search again over google for more specific things :)

btw , when doing nandroid backup , cant i use those files to make me a oodin package ?
[Verizon Droid Charge] That Guy u Kno:
to make the tar file from adb shell its:

#cd /sdcard

#tar -c factoryfs.rfs recovery.bin zImage > package_name.tar

#md5sum -t package_name.tar >> package_name.tar

#mv package_name.tar package_name.tar.md5

make sure if you have more than one .rfs or .bin you keep them grouped together like this

#tar -c factoryfs.rfs dbdata.rfs movinand.bin recovery.bin zImage > package_name.tar

im not sure if it really matters but on my comp it wouldn't let me create the file like this

#tar -c factoryfs.rfs movinand.bin dbdata.rfs recovery.bin zImage > package_name.tar
[Verizon Droid Charge] glennsardone:
Does anyone know under the advanced backup what to use to backup the theme?

Or the terminal command to backup the theme portion?

I have titanium pro and also have a complete odin backup but want to backup just the portion with the theme so I can try new themes and then odin back to original.

Thank you in advance
[Verizon Droid Charge] mjt1111:
Sorry posted in the wrong thread
[Verizon Droid Charge] eliteforce:
GalaxyS i9000

dd if=/dev/block/mmcblk0p3 of=/sdcard/cache.rfs bs=4096:

No such file or directory

How to find proper directory?
[Verizon Droid Charge] KnightCrusader:
I think this is incorrect. While working on the Strat, another user and I discovered that movinand is actually three partitions in one:

/cache

/preinstall

/data

So, you have to pull it like this:

dd if=/dev/block/mmcblk0 of=/sdcard/movinand.bin bs=4096

You pull all three at once, and restore all three at once.

I haven't verified this but I am working on it. Just wanted to give you heads up to these findings to see if it made sense to you. I am not sure since all I have is the Strat and not the Charge.
[Verizon Droid Charge] allmanallpimp:
i read through your instructions, and it states that i need linux to make a rom pretty much. i want to back up a samsung admire (metropcs.) i am having issues with your instructions. Maybe you could elaborate/dumb it down for me. I am working on something awesome for the metropcs and even the cricket community, and possibly might be amazing for all really once it's done. any help will be greatly appreciated, and i will gladly give you props when i do the write up for others to help them with this amazing project ;) thanks in advance!
[Verizon Droid Charge] maalzaben:
shell@android:/ # dd if=/dev/block/stl10 of=/sdcard/factoryfs.rfs bs=4096

dd if=/dev/block/stl10 of=/sdcard/factoryfs.rfs bs=4096

/dev/block/stl10: cannot open for read: No such file or directory
[Verizon Droid Charge] imnuts:
Based on the info you have there, you aren't on the Charge, as it won't show "shell@android:/" at the prompt that I've seen.
[Verizon Droid Charge] manoranjan2050:
help me ..............

i'm trying to backup but some error please help me

error is

# dd if=/dev/block/st110 of=/stcard/factoryfs.rfs bs=4096

dd if=/dev/block/st110 of=/stcard/factoryfs.rfs bs=4096

/dev/block/st110: cannot open for read: No such file or directory

#

whats problem

Galaxy Y Duos GT-S6102
[Verizon Droid Charge] Cilraaz:
It should be /dev/block/stl10 (that's a lowercase L, not a one).
[Verizon Droid Charge] lordredneck:
this odin stuff dont work

i have samsung galaxy note sgh-i717 rooted, i use odin to flash roms all the time with lots of trouble.

1- if i flash a rom like onlyone it will flash but get lost at boot screen, only once it worked and now i cant get the rom back. stock roms no sweat ????

2- odin backup .. does not let me use the commands you list, says no such location, adb only sees phone when not in recovery, in recovery it sees something called recovery but dont let me do nothing....

im lost all i want is to flash custom rom without a boot hang and back it up.

i used nand to backup but none of my personal stuff was saved......
[Verizon Droid Charge] ramzidjoudi:
tjank you for this great tuto

i have s5830i

i succefully done the procedure and backup (factoryfs.rfs + recovery.bin + zImage)

and then with cygwin termainal i compile the one package file succes

i have now this file s5830ixxla2.tar.md5

but the odin don't flash onepackage files for this phone

sow i follow the way to split it (with splitfus2) but i have error (error decoding filename)

is there any kind of command to have 03 files flashable with odin?
[Verizon Droid Charge] shrike1978:
These instructions are for the Samsung Charge. Different phones can and will have different filesystem locations. You need to be sure before doing any of this that you have the locations right.
[Verizon Droid Charge] dwitherell:
And once you are sure - you don't need to package all the files into a single .tar. You'll just need to run the commands three times. Assuming the packages are bundled correctly in regards to your phone, it would just be something along the lines of:

tar -H ustar -c factoryfs.rfs > whateveryouwannacallit.tar

tar -H ustar -c recovery.bin > someothername.tar

tar -H ustar -c zImage > yetanothername.tar

And then running the md5 stuffs on each.
[Verizon Droid Charge] ramzidjoudi:
thank you for reply

please tell me what file are for PDA and PHONE and CSC (for odin)
[Verizon Droid Charge] shrike1978:
PDA is the only one we use. Occasionally PIT, but you need a valid PIT file for your phone before you try to use it, and it normally shouldn't be necessary. Generally, everything goes in PDA.

I've used CSC on my Tab, but I don't actually know what it does.

Oddly, the fastest way to permanently screw up your phone is to use the PHONE option.
[Verizon Droid Charge] lordredneck:
I want to be able to make my own Odin flash able recovery for my sgh-i717 galaxy note but all the instructions I find don't work. Its the file locations that appear to be wrong.
[Verizon Droid Charge] TheVrolok:
Similar issue to others with a flash failing at cache.rfs every single time. Do I have any options other than untaring, tearing out the personal data (which is my primary purpose for the restore), and trying it without?
[Verizon Droid Charge] JihadSquad:
Well cache is pretty useless to odin anyway, so i guess you could just remove cache...
[Verizon Droid Charge] shrike1978:
This, but if you remove cache, I'd suggest going into recovery and wiping cache before fully booting, just to be safe.
[Verizon Droid Charge] MotoDefier:
You wouldn't happen to know what to dd for an odin rom for the T999L would you, I see you are talking about dd if=/dev/block/st|11 for dbdata this isn't a partition on the T999L is that because it uses ext4 filesystem?
[Verizon Droid Charge] dwitherell:
I'm pretty sure you can figure out some of the partition locations by using adb mount or running mount using something like terminal emulator on the phone. Hope that helps!
[Verizon Droid Charge] bob_ross:
I have a Sprint GS3 rooted and I get this:

dd if=/dev/block/stl10 of=/sdcard/factoryfs.rfs bs=4096

The system cannot find the file specified.

:confused:
[Verizon Droid Charge] MotoDefier:
Try dd if=/dev/block/mmcblk0p14 of sdcard/system.img bs=4096
[Verizon Droid Charge] bob_ross:
Still getting the same error.

Does my phone need to be in some special mode for this to work or can I just plug in the USB? when I type "adb devices" I do get a serial # back so I assume I'm good to go?
[Verizon Droid Charge] MotoDefier:
Dump is run In Shell so it should look like this

Adb.exe

Adb devices

Adb shell

Su

dd if=/dev/block/mmcblk0p14 of=/sdcard/system.img bs=4096 the 0 in mmcblk(0)p is a zero just to make sure you have it typed right
[Verizon Droid Charge] bob_ross:
That did the trick! Thank you!
[Verizon Droid Charge] mike0jj:
I got problem with odin fail to flash after dumping my system image. What I noticed is that, the image size is the whole partition size, not the actual used space in the partition itself..!!

However kernel file dumped and flashed by odin correctly since its size = actual used size = partition size.

Any idea on how to dump only the used space in the partition? or at least how to solve this problem.

Thanks in advance.
[Verizon Droid Charge] evrkusd:
Working on doing this for my galaxy tab 2. I'm hoping to be able to pull and flash the custom app and system settings.

Couple of questions:

If I pull and flash the /data partition (userdata.img), will that contain all of the app and system settings?

After I flash the custom /data partition, will the custom app settings remain after a hard reset? I'm hoping this works like the system image, where anything you flash becomes the default after a hard reset..
[Verizon Droid Charge] evrkusd:
Still wondering about these, anyone know?

Also, pulling the userdata.img might be problematic, since I don't think the entire thing fits on the sdcard, so I'm hoping to pull it directly to my computer via usb, if that's possible.
[Verizon Droid Charge] gnmmarechal:
Tar is a Linux command, not windows. Get Cygwin(a linux-like shell for Windows), it includes TAR
[Verizon Droid Charge] ChingghisKhan:
Hi, I need some help please in identifying my partitions.

I have enclosed an Excel Sheet which lists the partions but I have not been able figure out all of them.

KERNEL, RECOVERY & DBDATA are the ones I need to find.

Any help is highly appreciated.

Thanks
[Verizon Droid Charge] xzen:
Files on another rom Galaxy Core Prime

My phone galaxy core prime SM_G360M with rom is Knox 2.2 Android v 4.4.4

compilation # KTU84P.G360MUBU1AO14

I can't use some commands from root shell because:

system does not exist as file stl10

kernel does not as file bml8,

recovery does not as file bm19

and finally DBData does not as file stl11

I'll thanks in advance any advice...
[Verizon Droid Charge] Unixman0x0:
I am using samsung s3 sch i535 and have no idea about what are my partitions which need to be copied here's the outpute of mount command from adb shell please find me the system, recovery and kernel partitions.

tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
none /sys/fs/cgroup tmpfs rw,seclabel,relatime,mode=750,gid=1000 0 0
tmpfs /mnt/secure tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/secure/asec tmpfs rw,seclabel,relatime,mode=700 0 0
tmpfs /mnt/asec tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
tmpfs /mnt/obb tmpfs rw,seclabel,relatime,mode=755,gid=1000 0 0
none /dev/cpuctl cgroup rw,relatime,cpu 0 0
/dev/block/platform/msm_sdcc.1/by-name/system /system ext4 rw,seclabel,relatime,
data=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/userdata /data ext4 rw,seclabel,nosuid,no
dev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=o
rdered 0 0
/dev/block/platform/msm_sdcc.1/by-name/cache /cache ext4 rw,seclabel,nosuid,node
v,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ord
ered 0 0
/dev/block/platform/msm_sdcc.1/by-name/persist /persist ext4 rw,seclabel,nosuid,
nodev,noatime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data
=ordered 0 0
/dev/block/platform/msm_sdcc.1/by-name/efs /efs ext4 rw,seclabel,nosuid,nodev,no
atime,discard,journal_checksum,journal_async_commit,noauto_da_alloc,data=ordered
0 0
/dev/block/platform/msm_sdcc.1/by-name/modem /firmware vfat ro,relatime,uid=1000
,gid=1000,fmask=0337,dmask=0227,codepage=cp437,iocharset=iso8859-1,shortname=low
er,errors=remount-ro 0 0
/data/knox/sdcard /mnt/shell/knox-emulated sdcardfs rw,nosuid,nodev,relatime,uid
=1000,gid=1000,derive=none 0 0
/data/media /mnt/shell/emulated sdcardfs rw,nosuid,nodev,relatime,uid=1023,gid=1
023,derive=legacy,reserved=20MB 0 0
/dev/block/vold/179:33 /mnt/media_rw/extSdCard vfat rw,dirsync,nosuid,nodev,noex
ec,noatime,nodiratime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,c
odepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/dev/block/vold/179:33 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,noat
ime,nodiratime,uid=1023,gid=1023,fmask=0007,dmask=0007,allow_utime=0020,codepage
=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
/mnt/media_rw/extSdCard /storage/extSdCard sdcardfs rw,nosuid,nodev,relatime,uid
=1023,gid=1023,derive=unified 0 0
[Verizon Droid Charge] Hypexed:
Try mount to see what is mounted. And also try this command to see if it supplies links/names to images you need.

cat /proc/mtd
[Verizon Droid Charge] pozidrivphil:
Hey, Whenever I try this (follwing the instructions by the letter), I get an md5 error in odin. Flashing a straight tar also results in faults. Is this method outdated?
[Verizon Droid Charge] Hypexed:
It's not outdated. Just have to make sure all the files are correct. I found also that you must be in the same folder as where your images are to be tarred up. If you tar from a different folder the file names will differ, containing a path, and it will fail.

You can also do a test. Take a working Odin archive, make a copy, and remove the ".md5" extension so that only ".tar " remains on the end. Open it up to check the contents. Now, with your modded archive, do the same. Do the file names match? Are the internal images inside good?

The following is an example that work here. So here I have a recovery.img and a cache.img.ext4 that I pack into an Odin recovery.tar.md5 file. These commands will produce that example here:

tar -H ustar -c recovery.img cache.img.ext4 > recovery.tar
md5sum -t recovery.tar >> recovery.tar
mv recovery.tar recovery.tar.md5
[Eee Pad Transformer Q&A, Help & Troubleshooting] combat goofwing:
how are people using the quick menu with the track pad.two ouches brings up the quick menu option brings up the mnu but i cant access it as soon as you remove a touch it disappears

sent from my LEE Pad Transformer........I wish
[Eee Pad Transformer Q&A, Help & Troubleshooting] int_19h:
Do you mean tap-and-hold context menu, or menu in top right corner, or what?

(though all of those work fine for me w/dock)
[Eee Pad Transformer Q&A, Help & Troubleshooting] combat goofwing:
I mean the quick menu when you touch side of screen and get the half moon menu

sent from my LEE Pad Transformer........I wish
[Eee Pad Transformer Q&A, Help & Troubleshooting] tonyz3:
i don't have the dock but I assume it is the same as without. You slide your finger over what ever function you want. Ex back button... it will highlight blue than release your finger and it will register.

Hope that helps