This is useful for repacking, or making a backup of how you like you phone and restoring through odin.. or whatever you want it for..
beware, if you dump data and cache partitions your files will start to get very large. most odin packages have empty data and cache partitions.
need root and adb.. i suppose you could do this all on terminal if you wanted to.
First obtain root
Code:
su
then data dump the bare minimum required paritions
Code:
dd if=/dev/block/stl9 of=/sdcard/factoryfs.rfs bs=4096
dd if=/dev/block/stl11 of=/sdcard/cache.rfs bs=4096
dd if=/dev/block/bml7 of=/sdcard/zImage bs=4096
dd if=/dev/block/bml12 of=/sdcard/modem.bin bs=4096
And if you insist on data
Code:
dd if=/dev/block/stl10 of=/sdcard/datafs.rfs bs=4096
you can also dump these if you want, some packages have them some don't.. mostly only samsprint packages..
Code:
dd if=/dev/block/bml1 of=/sdcard/boot.bin bs=4096
dd if=/dev/block/bml4 of=/sdcard/sbl.bin bs=4096
dd if=/dev/block/bml8 of=/sdcard/recovery.bin bs=4096
dd if=/dev/block/bml6 of=/sdcard/param.lfs bs=4096
then if you want, you can make your own PIT file.. it shouldn't differ much from victory, but I'll show you anyway..
Code:
dd if=/dev/block/bml2 of=/sdcard/partitions.pit bs=4096
now in linux, or cygwin, or however you want.. tar it
if you include datafs.rfs, you need to add datafs.rfs before the > in the following command
Code:
tar -H ustar -c factoryfs.rfs cache.rfs modem.bin zImage boot.bin recovery.bin param.lfs sbl.bin > myOdin.tar
again, i suggest linux or cygwin, but however you want.. it needs to be md5ed
Code:
md5sum –t myOdin.tar >> myOdin.tar
mv myOdin.tar myOdin.tar.md5
There you go.. new md5 Odin tarball...
Always wanted the ability to do this. Thanks mate.
Now it says use linux or cygwin to odin and md5 it? Can that be done in the terminal?
darkierawr said:
Always wanted the ability to do this. Thanks mate.
Now it says use linux or cygwin to odin and md5 it? Can that be done in the terminal?
Click to expand...
Click to collapse
my phone has both md5sum and tar.. but its been modified heavily so ymmv.. just try it out and see...
Thank you much for this very useful information. I've been trying to figure this out but I haven't had much luck with my attempts. I will give this a shot and see how it goes.
Would be nice is people created tars to help installation of roms like they have over in the fascinate forums.
burgerpimp07 said:
Would be nice is people created tars to help installation of roms like they have over in the fascinate forums.
Click to expand...
Click to collapse
much larger downloads.. and not as much flexibility.. you get more backup and config options when you can run sh scripts in cwm...
one quick question. will this work with ext4?
Very nice information and thank you!
Am I thinking that it's possible to adjust the partition sizes with a new .pit? Seems like a lot of wasted space in the /system partition.
Sent from Bonsai 7.1.1.1
all of these commands save the files to the sdcard on the phone, correct ?
Also, the command "... > myodin.tar " creates the .tar file from the files 'on' the sd card (from the dumps) and saves them back onto the sdcard ?
Just checking before I proceed w/ my project..
Thanks for the help.
jarcher1971 said:
one quick question. will this work with ext4?
Click to expand...
Click to collapse
Yes but I.think fladhing the tar will revert to rfs.
Sent from my SPH-D700 using XDA App
all the dd commands worked (used terminal).. however, I'm having a problem w/ the tar..
Can anyone help ?? I have cygwin installed. anyone ?? bueller.. bueller ? LOL
well i tried it and the results i got are in this thread here ----> http://forum.xda-developers.com/showthread.php?t=1089570 One thing i did not do was the md5 step. might that have caused the problem i now have?
daddymikey1975 said:
all the dd commands worked (used terminal).. however, I'm having a problem w/ the tar..
Can anyone help ?? I have cygwin installed. anyone ?? bueller.. bueller ? LOL
Click to expand...
Click to collapse
don't know if this will help, but in the terminal did you cd to /sdcard before running tar. when i tried it without doing that it would error out.
jarcher1971 said:
don't know if this will help, but in the terminal did you cd to /sdcard before running tar. when i tried it without doing that it would error out.
Click to expand...
Click to collapse
I did not try that but I will.. and for me terminal = terminal emulator on the phone not on my pc.. heh..
the response I got was something about tar and unrecognized command but I'll try it again..
brb
the result i got is "tar: not found"
daddymikey1975 said:
I did not try that but I will.. and for me terminal = terminal emulator on the phone not on my pc.. heh..
the response I got was something about tar and unrecognized command but I'll try it again..
brb
Click to expand...
Click to collapse
sounds like you may not have it on your phone then. for me it was though. think it was in /system/bin or /system/xbin.
jarcher1971 said:
sounds like you may not have it on your phone then. for me it was though. think it was in /system/bin or /system/xbin.
Click to expand...
Click to collapse
ok, after talking to chris on fossnet, the tar command wasn't 'usable' for me in the terminal window on the phone so I tried to use cygwin on my PC.. had to copy/paste the files from the phone's SDcard to the folder that cygwin uses on my computer.
Then the tar command worked perfectly.. then I did the md5 stuff.. my tar is uploading rt. now..
I'll post a link to it once it's done uploading and I flash it to make sure it works XD
this all worked like a champ
Thanks chris41g for the useful thread.. and for helping in IRC
marcusant said:
Yes but I.think fladhing the tar will revert to rfs.
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
You can keep ext4 if you dump the pit as well and use it...
Sent from my SPH-D700 using XDA App
Awesome Chris. Thank u for this. I always wanted to be able to make my own flashable tar files.
Sent From My Evo Killer!
Related
I'm sorry to post this in the Fascinate forum, but as you all know Cellular South's version the "Showcase" is identical in hardware as is the Mesmerize, but there isn't a forum for either of them..
I see there's plenty of kernels and etc.. But is there just a simple lag fix that I can do to my Showcase that will make every day use better and less laggy?
A simple yes or no is fine with me.
if there is a way a link post or explanation would be VERY appreciated.
Thanks,
Elijahblake
(PS)Sort of on the same subject, but I read that gingerbread is going to support ext4 file system. I know the Galaxy S uses the RFS file system which I believe is where we get the lag in the first place.. Will it be possible to switch file system formats?
I'm not real familiar with all these Linux formats. Would it be similar to reformatting like from FAT32 to NTFS?
If you can provide some additional information and files, I can port some things such as Voodoo lagfix to your device.
Needed:
stock kernel
stock mbr
mount output
All of the following can be done through adb on a rooted device.
To dump the kernel do:
cat /dev/block/bml7 > /sdcard/zImage
To dump original mbr do:
dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
To get mount output do:
mount
then paste the output of that command as well as upload the showcase.mbr and zImage files here.
jt1134 said:
If you can provide some additional information and files, I can port some things such as Voodoo lagfix to your device.
Needed:
stock kernel
stock mbr
mount output
All of the following can be done through adb on a rooted device.
To dump the kernel do:
cat /dev/block/bml7 > /sdcard/zImage
To dump original mbr do:
dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
To get mount output do:
mount
then paste the output of that command as well as upload the showcase.mbr and zImage files here.
Click to expand...
Click to collapse
Ok will do, what's the best, easiest root method
Sent from my sch-i500 Showcase using XDA app
elijahblake said:
Ok will do, what's the best, easiest root method
Sent from my sch-i500 Showcase using XDA app
Click to expand...
Click to collapse
look for the thread in the fascinate forum simply titled "root"
also you will need to locate the thread explaining how to get clockworkmod recovery on the showcase in the same forum
jt1134 said:
look for the thread in the fascinate forum simply titled "root"
also you will need to locate the thread explaining how to get clockworkmod recovery on the showcase in the same forum
Click to expand...
Click to collapse
will do.. May take me some while to get all this info gathered..
quick question? I've read of some people not being able to see certain apps in the market after rooting.. Is this still the case?
If my phone is rooted and 2.2 finally does come out (officially) will have to un root and remove any lag fix to upgrade? How hard will this be?
elijahblake said:
If my phone is rooted and 2.2 finally does come out (officially) will have to un root and remove any lag fix to upgrade? How hard will this be?
Click to expand...
Click to collapse
To get the upgrade, you shouldn't have to un-root, but you should probably disable voodoo first as the update will almost certainly have a new kernel, and applying the update without disabling voodoo could cause quite a headache.
If you do apply the update right away, you could quite possibly loose root, so you may want to wait until the devs re-root the update. This could make things easier for you as the rooted update will also likely be cleaned up some.
To disable voodoo, you'd just need to create a file called "disable_lagfix" in /sdcard/voodoo and then reboot your phone. See the thread in the dev forum about removing voodoo for more details if you want.
ok well it looks like I'm rooted.. Now I tried to open the ADB that came in the fascinate root zip but it's not opening for more than a split second... you have a download link?
Also can uninstall all this bloatware now??
edit.. thought I had Android SDK on this laptop.. Downloading it now
jt1134 said:
If you can provide some additional information and files, I can port some things such as Voodoo lagfix to your device.
Needed:
stock kernel
stock mbr
mount output
All of the following can be done through adb on a rooted device.
To dump the kernel do:
cat /dev/block/bml7 > /sdcard/zImage
To dump original mbr do:
dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
To get mount output do:
mount
then paste the output of that command as well as upload the showcase.mbr and zImage files here.
Click to expand...
Click to collapse
Alright, so i'm rooted now and got ADB set up.. And this is the first time I've done any of this. So can you please tell me the exact commands to enter. I really don't want to mess anything up.
Thanks,
elijahblake
elijahblake said:
Alright, so i'm rooted now and got ADB set up.. And this is the first time I've done any of this. So can you please tell me the exact commands to enter. I really don't want to mess anything up.
Thanks,
elijahblake
Click to expand...
Click to collapse
I have c:\androidsdk
I put ADB inside tools and it sees my device when I run ADB devices
But on the commands you listed nothing happens, I'm not sure if that's the entire commands or if I'm supposed to add something to them..
Try to run the following
Code:
adb shell cat /dev/block/bml7 > /sdcard/zImage
adb shell dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
adb shell mount
or just typing "adb shell" and entering the commands at the new prompt, and typing "exit" to get back to the normal command prompt.
here's what happened..
the first two commands didn't work. DO i need to create a folder name zImages?
The second command said access denied..
You tell me if the mount worked haha..
jt will have to comment on whether that is what he needs from the mount command. Can you try the following to see if it works?
Code:
adb shell
su
shell cat /dev/block/bml7 > /sdcard/zImage
shell dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
exit
well, it granted me SU rights.. but still a no go...
i figured since i was in shell i shouldn't type that.. still got no directory found...
imnuts said:
jt will have to comment on whether that is what he needs from the mount command. Can you try the following to see if it works?
Code:
adb shell
su
shell cat /dev/block/bml7 > /sdcard/zImage
shell dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
exit
Click to expand...
Click to collapse
would root explorer make this any easier?
I just tested out all of the commands on my Fascinate and they all worked, so I'm guessing that the Showcase is putting stuff in a different place. jt will have to help you out further as I'm not sure of where else to look for the info he needs.
elijahblake said:
i figured since i was in shell i shouldn't type that.. still got no directory found...
Click to expand...
Click to collapse
for the cat command it should bml as in lowercase L, not 1. And it looks like you added a space between the of and = on the dd command.
GeekMouse said:
for the cat command it should bml as in lowercase L, not 1. And it looks like you added a space between the of and = on the dd command.
Click to expand...
Click to collapse
I typed it exactly the way you said.. still got this..
Can you take a shot at it?
elijahblake said:
I typed it exactly the way you said.. still got this..
Can you take a shot at it?
Click to expand...
Click to collapse
It doesn't need shell at the beginning.
elijahblake said:
I typed it exactly the way you said.. still got this..
Can you take a shot at it?
Click to expand...
Click to collapse
This is how it should be typed
Code:
adb shell
su
cat /dev/block/bml7 > /sdcard/zImage
dd if=/dev/block/mmcblk0 of=/sdcard/showcase.mbr bs=512 count=1
exit
[GUIDE] How to do a full backup to /sdcard-ext
How to backup your atrix with adb
Prerequisites:
update: adb,fastboot,moto-fastboot all in one zip
1. Get adb (from one of the following) (awesome thread about adb where to get it and how to use it)
a) Android adk
b) Gladroot or many of the other older rooting methods that are script based in the stickys
c) obtain moto-fastboot for your os version
32 or 64 bit ms windows xp, vista, or 7
64 bit linux
32 bit linux
Mac osX
fastbootandfriends? d) Drivers for your device - windows 32 and 64 bit (motorola.com site) other os's do not need driver files.
2. Obtain root on your device
a) look in the sticky threads (I prefer the CWM zip here)
Warnings:
Do not restore /data "/dev/block/mmcblk0p16" if your going from one rom to another. use titanium backup or another utility.
Do not restore /pds "/dev/block/mmcblk0p3" unless you have a issue with your touchscreen or unless instructed to do so by someone that understands /pds.
Do not ever share your pds.img with anyone
Backup:
adb shell
su
Then type the dd commands below to create a image file on your external sdcard for the following...
Boot
dd if=/dev/block/mmcblk0p11 of=/mnt/sdcard-ext/boot.img
Click to expand...
Click to collapse
System
dd if=/dev/block/mmcblk0p12 of=/mnt/sdcard-ext/system.img
Click to expand...
Click to collapse
Data
removed use tibu
Click to expand...
Click to collapse
Osh/Webtop
dd if=/dev/block/mmcblk0p13 of=/mnt/sdcard-ext/osh.img
Click to expand...
Click to collapse
Recovery
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard-ext/recovery.img
Click to expand...
Click to collapse
PDS
dd if=/dev/block/mmcblk0p3 of=/mnt/sdcard-ext/pds.img
Click to expand...
Click to collapse
MOVE YOUR IMAGE BACKUPS OFF YOUR SDCARD!!!
Restore:
to restore use moto-fastboot (from the pudding thread)
boot
moto-fastboot flash boot boot.img
Click to expand...
Click to collapse
System
moto-fastboot flash system system.img
Click to expand...
Click to collapse
Data
removed use tibu
Click to expand...
Click to collapse
Osh/Webtop
moto-fastboot flash webtop osh.img
Click to expand...
Click to collapse
Recovery
moto-fastboot flash recovery recovery.img
Click to expand...
Click to collapse
WARNING - PDS is tricky - Do not touch pds unless you have to.
Also do not ever share your pds.img with anyone
PDS
adb push pds.img /data/local/tmp
adb shell
su
chmod 777 /data/local/tmp/pds.img
dd if=/data/local/tmp/pds.img of=/dev/block/mmcblk0p3
Click to expand...
Click to collapse
Why not just use cwm?
Sent from my Motorola Atrix using the XDA App
thebeardedchild said:
Why not just use cwm?
Sent from my Motorola Atrix using the XDA App
Click to expand...
Click to collapse
Because CWM nandroid restore has messed up a bunch of users touchscreens
Great info in one place, thanks!
Thanks
Sent from my MB860 using XDA App
I had to change the restore process for data to use adb as moto-fastboot will not flash a image that big.
my /data was 2 gig.
do not forget to delete data.img from /sdcard after you restore.
also keep in mind that your /data will be pretty big and will take quite a long time to restore.
also do not use DD if you have fat fingers and are prone to mistyping "of" and "if" since o and i are next to each other on most keyboards.
joe ferreira said:
Because CWM nandroid restore has messed up a bunch of users touchscreens
Click to expand...
Click to collapse
Wow that's stupid...Is there a fix on the way for that? This method here seems a little more intensive than just using CWM..
Oh well, thanks for giving us something to use while CWM sucks!
can we run these backup commands phone-side via terminal emulator?
the dd commands are best ran via adb
you can run them in terminal emulator but if terminal emulater fc's while your restoring then it could cause issues.
adb is the best way to do this.
really you should all be using titanium backup for /data anyways.
to avoid fat fingers you can also copy and paste.
Great thread Joe!
Permission denied
So I'm a bit of a n00b but I feel like I do pretty well at following directions. Obviously I'm missing something here because after typing "adb shell" and getting the '$' prompt I type the "su" command and am bumped to a new line without a '$' prompt. So far so good, but as soon as I type "dd" I immediately get "Permission denied". It won't even let me enter the entire line! Any help would be greatly appreciated.
AjaxTheCleaner said:
So I'm a bit of a n00b but I feel like I do pretty well at following directions. Obviously I'm missing something here because after typing "adb shell" and getting the '$' prompt I type the "su" command and am bumped to a new line without a '$' prompt. So far so good, but as soon as I type "dd" I immediately get "Permission denied". It won't even let me enter the entire line! Any help would be greatly appreciated.
Click to expand...
Click to collapse
you need root.
you type
adb shell
Click to expand...
Click to collapse
then type
su
Click to expand...
Click to collapse
then it will prompt you on the phone if you have root access to accept the root access request.
I had to remove the /data backup part until I can work the kinks out.
I will update and repost when it is finished
Thank you for the helpful response! I was able to install and run SuperUser on the device so I thought I had successfully rooted. Having been in helpdesk and IT for years there really is no excuse. I failed to follow my own first rule which is to reboot. After restarting my phone I was able to successfully logon to su and execute those commands, but it took finding out that I did in fact NOT have root access to prompt me to try such a thing. Thanks for providing helpful info and not flaming me (sincerely!)
what happens if you are on windows and not linux? can't restore the larger files through fastboot.
y2whisper said:
what happens if you are on windows and not linux? can't restore the larger files through fastboot.
Click to expand...
Click to collapse
your host system does not have anything to do with what I was discussing about image size.
the backup of /data was something that I had to takeout until i figure it out.
as always you should take multiple backups. I use titanium backup as well as the methods discussed in this thread.
i see. so how do I use moto-fastboot? to restore? (where to put the files etc)
y2whisper said:
i see. so how do I use moto-fastboot? to restore? (where to put the files etc)
Click to expand...
Click to collapse
correct me if I'm wrong, but I think you put the files in the fastboot folder.
if you don't put it in the fastboot folder -- you would have to type the full path of the file?
so im guessing --
fastboot flash recovery C:\MyDocuments\recovery.img
or something like that? im a noob too hehe
yeah that part i got down, but when I try to restore the system.img it doesn't let me due to the size.
EDIT
it says image is to big, use 0x10000000 bytes chunks
Failed <remote: 00000006>>
my sys files is 327680kb
Nevermind managed to find my way thanks to Magnetox!
As we are having a lot of Jelly Bean leaks lately, a lot of users want to share the Nandroid backup to others but sometimes they make mistakes which ends up in md5 mismatches or some of them don't know how to create a share-able zip.
I have tried to create this guide to enable them in doing so. Hope this will help everyone.
Requirement:
CWM Recovery
7zip, Winrar or any file compressing tool
ADB setup in your PC
Click to expand...
Click to collapse
Once you have applied the OTA and done a factory reset, Follow the process given below:-
If your have ClockworkMod Touch Recovery 6.0.1.2 (Believe me it is easier and better in Touch recovery - Get it from here) follow these:-
In CWM Recovery
Reboot into Recovery => Hold Volume Up + Home + Power buttons together for about 5-7 seconds, release the buttons when you see the recovery menu
Choose -> Backup and Restore
Chooose -> Choose Backup Format (Optional)
Change Backup format to tar (Optional)
Choose -> Create image.zip
This will create an image.zip and an image folder in your Internal Sdcard inside the clockworkmod>backup folder
Copy the image.zip file to your PC, rename it to the software version you are sharing for e.g. GT-I9300-XXXXXXXX. Important do not put spaces in the name.
Upload this zip to whichever Filehosting site you want to share with.
*this image.zip can be flashed in CWM directly without having the need to extract the files inside*
Click to expand...
Click to collapse
If you have ClockworkMod Recovery 5.5 (Get it from here) Follow these:-
In CWM Recovery
Reboot into Recovery => Hold Volume Up + Home + Power buttons together for about 5-7 seconds, release the buttons when you see the recovery menu
Choose -> Backup and Restore
Choose -> Backup (either Internal or External SDcard by default it will backup to ExtSDcar)
Your Backup will now be there inside the clockworkmod>backup folder, Copy this folder to your PC
Zip the Folder and give it a name for e.g. GT-I9300-XXXXXX (Dont use spaces)
Now you can upload this zip to any filehosting service of your choice
Click to expand...
Click to collapse
How to extract the modem:-
For extracting the modem you need to be rooted (If you are not or want to know how go here)
Using ADB (Go here if you want to know how to set up ADB)
Connect your phone to you PC (Please ensure that ADB debugging option is checked in Developer Options)
Type
Code:
adb devices
You will get something like this:
Code:
List of devices attached
XXXXXXXXXXXXXX device
It shows your device is connected via ADB
Type
Code:
adb shell
You will get a output like this:
Code:
C:\adb>adb shell
[email protected]:/ $
Type
Code:
su
You will get:
Code:
su
[email protected]:/ #
(Those who are using Terminal Emulator can start from this step)
Type
Code:
dd if=/dev/block/mmcblk0p7 of=/sdcard/modem.bin bs=4096
You will get
Code:
[email protected]:/ # dd if=/dev/block/mmcblk0p7 of=/sdcard/modem.bin bs=4096
dd if=/dev/block/mmcblk0p7 of=/sdcard/modem.bin bs=4096
8192+0 records in
8192+0 records out
33554432 bytes transferred in 2.892 secs (11602500 bytes/sec)
[email protected]:/ #
Your modem.bin file is copied to the root of your sdcard, copy it to your PC and upload it to the file hosting site of your choice
Click to expand...
Click to collapse
I have tried to write everything to the best of my knowledge. If anyone feels that I have missed something or I have written something wrong please let me know. I will make the changes.
Thanx for this very useful
Sent from my GT-I9300 using Tapatalk 2
anurag549 said:
Thanx for this very useful
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
will be helpful for many ... nice work buddy
Q: When I dump modem I get a modem.bin and its ~30mb, while shipped modems in stock fw is ~12mb, why is this?
Perka said:
Q: When I dump modem I get a modem.bin and its ~30mb, while shipped modems in stock fw is ~12mb, why is this?
Click to expand...
Click to collapse
Well that escapes me..may be someone knowledgeable can shed some light on it..
Sorry..
Maybe the that provided with the firmware is a patch..I know OTA files are patches but can't say much about full firmwares..
I'm trying to do this using the terminal emulator in Rom toolbox and u keep getting permission denied?
(from what I understood we had two ways of doing this correct? A computer and adb or TE, correct?)
Danielhammons1 said:
I'm trying to do this using the terminal emulator in Rom toolbox and u keep getting permission denied?
(from what I understood we had two ways of doing this correct? A computer and adb or TE, correct?)
Click to expand...
Click to collapse
You have to type su in terminal to gain root access. It's just like a standard Linux terminal.
please can someone attach param.lfs for S4 I9505 (you must be rooted)
how to extract it to sdcard via adb:
-connect your S4 to usb port after enabling usb debug in developer options
-open cmd prompt on your laptop and type the following:
Code:
adb shell
su
dd if=/dev/block/mmcblk0p19 of=/mnt/sdcard/param.lfs bs=4096
how to extract it to sdcard via terminal emulator:
-install terminal emulator on your device
type the following:
Code:
su
dd if=/dev/block/mmcblk0p19 of=/mnt/sdcard/param.lfs bs=4096
This command reads the param partition and copy it to your internal memory, which you can transfer to your PC and attach it in this thread
thx in advance
Any one please?
Sent from my Galaxy Nexus using xda premium
bump
here you go
https://www.dropbox.com/s/34oui32urkogs9y/param.lfs
Nick1402 said:
here you go
https://www.dropbox.com/s/34oui32urkogs9y/param.lfs
Click to expand...
Click to collapse
thank you very much my friend.
just to confirm: extracted from I9505 using method mentioned in OP ?
yes i9505 using terminal emulator
Nick1402 said:
second method using terminal emulator
Click to expand...
Click to collapse
Thx for confirmation :thumbup:
Sent from my Galaxy using xda premium
Any one has N7108 param.lfs pls help me. Thanks
I had a google but I could not find anything to help me backup the efs on my s4. I read that because it is Qualcomm it may be different, and also that on the s4 the nv_data files are not in the efs folder.
How do I backup my efs on the s4?
getting my Black S4 delivered tomorrow and was wondering the same After owning many samsung phones I've learned this is the single most important thing to do by flashing everything in sight
just copy EFS folder (root explorer) and put in safe place.
Thats all
dont that break the permissions ect? If not then I'll just drag the whole folder across to my card :victory:
ratcom said:
dont that break the permissions ect? If not then I'll just drag the whole folder across to my card :victory:
Click to expand...
Click to collapse
No...everything is fine. Just copy EFS folder to your SD. That's all buddy. You good.
avetny said:
No...everything is fine. Just copy EFS folder to your SD. That's all buddy. You good.
Click to expand...
Click to collapse
Okay thanks
coolkodz said:
Okay thanks
Click to expand...
Click to collapse
You are welcome
:good:Stay tuned !
coolkodz said:
I had a google but I could not find anything to help me backup the efs on my s4. I read that because it is Qualcomm it may be different, and also that on the s4 the nv_data files are not in the efs folder.
How do I backup my efs on the s4?
Click to expand...
Click to collapse
dont just copy and paste efs folder, for permission issue
use dd command in terminal emulator
for I9505 type in terminal emulator:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img.ext4
dd if=/dev/block/mmcblk0p13 of=/mnt/sdcard/m9kefs1.bin
dd if=/dev/block/mmcblk0p14 of=/mnt/sdcard/m9kefs2.bin
dd if=/dev/block/mmcblk0p15 of=/mnt/sdcard/m9kefs3.bin
then copy the backuped files to your computer
samersh72 said:
dont just copy and paste efs folder, for permission issue
use dd command in terminal emulator
for I9505 type in terminal emulator:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img bs=4096
then copy the image to your computer
Click to expand...
Click to collapse
Your choice is also working.
(Permission is not a problem. Paste backup efs folder back/ than flash rom via odin)
NB: nv data files are located in block 13,14 and 15 so it is better also to backup those partitions:
for I9505 ONLY
Code:
su
dd if=/dev/block/mmcblk0p13 of=/mnt/sdcard/m9kefs1.bin
dd if=/dev/block/mmcblk0p14 of=/mnt/sdcard/m9kefs2.bin
dd if=/dev/block/mmcblk0p15 of=/mnt/sdcard/m9kefs3.bin
samersh72 said:
dont just copy and paste efs folder, for permission issue
use dd command in terminal emulator
for I9505 type in terminal emulator:
Code:
su
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img.ext4 bs=4096
then copy the image to your computer
Click to expand...
Click to collapse
I've never used terminal emulator so wouldn't have a clue where to even start. Can anyone point me in the right direction. Thanks
Sent from my GT-I9505 using xda premium
djwilliams100 said:
I've never used terminal emulator so wouldn't have a clue where to even start. Can anyone point me in the right direction. Thanks
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
first you must be rooted
install terminal emulator from play store
open terminal emulator and type "su" (without " "), press enter, then grant permission (it will prompt)
then type dd...... command, press enter. that is it, you will find the backup in your internal storage
move these backups to ext sdcard or computer to prevent wiping
samersh72 said:
first you must be rooted
install terminal emulator from play store
open terminal emulator and type "su" (without " "), press enter, then grant permission (it will prompt)
then type dd...... command, press enter. that is it, you will find the backup in your internal storage
move these backups to ext sdcard or computer to prevent wiping
Click to expand...
Click to collapse
I am rooted so I'm half way there. It sounds simple enough thanks.
Sent from my GT-I9505 using xda premium
Where am I going wrong? I'm getting permission denied.
Think I've sorted it by changing the permissions of the mmcblk0p10 folder. My efs file is about 13 meg is that about right?
Sent from my GT-I9505 using xda premium
djwilliams100 said:
Where am I going wrong? I'm getting permission denied.
Think I've sorted it by changing the permissions of the mmcblk0p10 folder. My efs file is about 13 meg is that about right?
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
yes! you must backup also m9kefs1, m9kefs2 and m9kefs3
samersh72 said:
yes! you must backup also m9kefs1, m9kefs2 and m9kefs3
Click to expand...
Click to collapse
Will do. Is it as simple as dropping them back into the the dev / block folder if something goes wrong?
Sent from my GT-I9505 using xda premium
djwilliams100 said:
Will do. Is it as simple as dropping them back into the the dev / block folder if something goes wrong?
Sent from my GT-I9505 using xda premium
Click to expand...
Click to collapse
for I9505 ONLY
to restore, put wanted file in internal storage, and type in terminal emulator (example for efs):
Code:
su
dd if=/mnt/sdcard/efs.img.ext4 of=/dev/block/mmcblk0p10
beware restoring to wrong partition may brick your phone! be sure to write it exactly. (for EFS restore to block 10)
I have a very simple question.
dd the tool that is used to back up the efs partition from the terminal comes installed already as part of the stock samsung rom right?
i tried to just run the dd command and it seem to be there on the phone already.
this is stock rom. + cf-autoroot.
i dont have busybox installed.
i was reading a few tutorials which say install busybox............ if DD is already available why install busy box?
Hello buddies! I just want to know if there is a way to backup EFS without root? Thanks
Anyone please???