[Q] EFS Backup? - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

Now that we have root is there a way to back up EFS? I'm a noob and managed to get my GS2's efs folder corrupted after flashing a ROM don't want the same thing happening to my S4

cl_l said:
Now that we have root is there a way to back up EFS? I'm a noob and managed to get my GS2's efs folder corrupted after flashing a ROM don't want the same thing happening to my S4
Click to expand...
Click to collapse
just download GSII_Rapair form playstore... gl

Or... do it yourself.
Download and install Android Terminal Emulator from the play store. You will need to get to a root prompt (su enter).
The following assumes that the partition information posted by mohan_kr in the Android Development forum is accurate.
Code:
dd if=/dev/block/mmcblk0p10 of=/mnt/sdcard/efs.img
Also, since I don't have the s4 yet, I am assuming that the path to internal storage is /mnt/sdcard/ as it is on the s2 with 4.1.2. But use a file explorer to verify the path to internal storage.
Store this in a safe place. To restore the efs partition:
Code:
dd if=/mnt/sdcard/efs.img of=/dev/block/mmcblk0p10

Related

[Q] Need help to backup IMEI

hello,
i just now rooted my phone and installed esfile explorer to backup my /efs folder before flashing.
but the /efs folder is empty.
can somebody tell me from where i can find the nv_data.bin file?
you need to become a superuser in the shell first by typing su, than you will see the contents
or you could just use root explorer lol
oh n fyi in addition to just backing up the folder , you can make a flashable with odin backup by :
running adb shell
and than :
su
dd if=/dev/block/stl4 of=/sdcard/efs.rfs
take the efs.rfs file and add it to a UNIX compatible TAR and its ready to be reflashed should the worst happen. also its a full backup of the EFS not just IMEI.
i done this as soon as i heard horror stories of people loosing there IMEI.
im new to all this but its my beleif you will loose your IMEI if you flash with the wrong OPS or flash a i5801 rom for the first time and will need to restore nv_data.bin for that to work. as i sed i cant confirm the reasons but thats a educated guess
I already backed up entire efs partition.
to be safer, i thought of copying the contents of /efs also
maverickgenius said:
hello,
i just now rooted my phone and installed esfile explorer to backup my /efs folder before flashing.
but the /efs folder is empty.
can somebody tell me from where i can find the nv_data.bin file?
Click to expand...
Click to collapse
This is what i did... will help you too..!! Use root explorer!!
copy the efs folder to your sd card!!!
edit: i had 5 files in my efs folder including nv_data.bin
This should help you!!!http://forum.xda-developers.com/showthread.php?t=953264

How do I backup my efs on s4?

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???

Backup Recovery?

While rooting my 4.4 kk Verizon g2 I had to backup my own EFS using the command provided in the ioroot25 post. While looking through that folder I noticed there is also a file called "recovery". Can I use the same command and just change the file name and backup that file as well? The code was:
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img
Click to expand...
Click to collapse
Also is that the stock recovery? I feel it would be useful to have a backup of the stock recovery to flash if needed.

[Q][Solved] Verizon LG G2 trouble with rooting using Ioroot25

Solved. Root then back up EFS. Of course...
http://forum.xda-developers.com/showpost.php?p=48709232
So I'm trying to root my VS98024A but I'm having trouble backing up the EFS.
Step says to do this
To backup the EFS manually use the code below. It will save your two EFS partitions to the root of internal sd.
Code:
adb shell
su
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/platform/msm_sdcc.1/by-name/modemst2 of=/sdcard/modemst2.img
Click to expand...
Click to collapse
But I can't for the life of me find where to type it. I found something that says to SHIFT+RMS and open a CMD in the IOroot25 folder. I typed adb devices and I got a serial number so I know the phone is plugged in fine.
But then I type in
Code:
adb shell
su
and it shows that su is not found. I understand that I need to be rooted to use su command but how am I suppose to back up the EFS before I root?

can I flash my efs.img via odin?

can't boot my phone cause I have deleted my efs folder becasue in one of the guides here someone said that if you had full recovery of your efs and you sure that your efs folder is damged than delete the folder and recover, well so I did... (I downgrade from lolipop to 4.4.2, lost my imei in the "process"
I had the efs.img backup on my computer and I moved it to my phone, I deleted my efs folder using root browser and than I used some adb app to type the commend "dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3 bs=4096" and I restred my phone, but it never left samsmung logo and I can't boot up my phone I tried to go to stock channgeing roms, nothing helps, in recovery mode it says "E:/can't mount efs" something like that.. and the phone won't boot up, just stuck on samsung logo.
somone have any Idea what can i do?
After flashing a stock ROM, did you perform a factory wipe before booting the phone for the first time?
audit13 said:
After flashing a stock ROM, did you perform a factory wipe before booting the phone for the first time?
Click to expand...
Click to collapse
you mean when I downgrade from lolipop to the stcok rom?, if yes Than I didn't and that what cause me losing my imei and started this whole efs problem...
Did you try flashing back to stock LP? Flashing stock kk would not normally damage the efs.
audit13 said:
Did you try flashing back to stock LP? Flashing stock kk would not normally damage the efs.
Click to expand...
Click to collapse
yey I manged to fix ti!!!! god that was hard **** yes!! to me!
if someone will see this so this is what I did
1) I flashed to stock rom based lolipop but still had the issue of "E:failed to mount /efs" cause it didn't recvoer the folder and my phone still won't boot up, so I found a fix
right here http://forum.xda-developers.com/galaxy-s3/general/how-to-fix-efailed-to-mount-efs-invalid-t2858056
adb shell
Code:
mke2fs /dev/block/mmcblk0p3
Code:
mount -w -t ext4 /dev/block/mmcblk0p3 (this line dind't even work for me so I skipped it)
Code:
reboot
affter I did it phone boot up finally but I still had a fake Imei so next I used this guide (this time I ain't deleting the efs folder like he wrote"
2)http://forum.xda-developers.com/showthread.php?t=2392632, I alredy had efs.img as back up so all I did is install latest "su" and the latest busybox than I installed "Terminal Emulator"
and used the second method
"Put your efs.img on your phone memory(not external sd card!) in the main memory, not inside folder.
Open terminal emulator
Write the following:
Code:
su
Then click enter. It will ask for super user permission, give it permissions.
Then write:
Code:
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3 bs=4096"
my phone rebooted and now I have my imei back!
Congratulations on your success and posting your solution!
worked for me
okdark4 said:
"Put your efs.img on your phone memory(not external sd card!) in the main memory, not inside folder.
Open terminal emulator
Write the following:
Code:
su
Then click enter. It will ask for super user permission, give it permissions.
Then write:
Code:
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3 bs=4096"
my phone rebooted and now I have my imei back!
Click to expand...
Click to collapse
Hi okdark4,
thanks for sharing!
For me, I hat to use a slightly different command - just for the others to know:
su
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p3
reboot
That's it!

Categories

Resources