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.
Related
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
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???
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?
I don't have a laptop And I really need to flash the stock ROM of 4.4.2.. I have TWRP installed and that's all.. Is anyone aware of some flashable zip of this stock ROM? Thanks in advance
I wanted to help but I have no idea how to create and update-binary file, so it is not flashable, but you can go back to 4.4.2 without computer. So what you need to is:
Download this: V40010C
Extract and place it onto your sd card!. Make sure all files are under /sdcard/* directory. Boot into the recovery, go to wipe -> advanced wipe -> wipe everything except sd card and internal storage. In recovery, go to advanced, then terminal. Folders should pop on the screen but do not go to any different directory, just press select. Now you should be in the terminal. Now, I'm really sorry but it will take some time, you have to enter each of this commands separately into the terminal:
Code:
dd if=/sdcard/V40010C/bootloader/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/V40010C/bootloader/factory.bin of=/dev/block/platform/msm_sdcc.1/by-name/factory
dd if=/sdcard/V40010C/bootloader/laf.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf
dd if=/sdcard/V40010C/bootloader/rpm.bin of=/dev/block/platform/msm_sdcc.1/by-name/rpm
dd if=/sdcard/V40010C/bootloader/sbl1.bin of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/V40010C/bootloader/sdi.bin of=/dev/block/platform/msm_sdcc.1/by-name/sdi
dd if=/sdcard/V40010C/bootloader/tz.bin of=/dev/block/platform/msm_sdcc.1/by-name/tz
dd if=/sdcard/V40010C/boot.bin of=/dev/block/platform/msm_sdcc.1/by-name/boot
dd if=/sdcard/V40010C/cust.bin of=dev/block/platform/msm_sdcc.1/by-name/cust
dd if=/sdcard/V40010C/modem.bin of=/dev/block/platform/msm_sdcc.1/by-name/modem
dd if=/sdcard/V40010C/persist.bin of=/dev/block/platform/msm_sdcc.1/by-name/persist
dd if=/sdcard/V40010C/system.img of=/dev/block/platform/msm_sdcc.1/by-name/system
Remember only system is an img file! It is about 2,5GB so to flash it will take about 5-10 min.
Once you flashed everything you can reboot, in my case it said that OS is not installed but the recovery didn't know yet that we just flashed it. So just swipe to reboot and tablet should boot up with 4.4.2 !
If you have any problems just tell me
Adam Myczkowski said:
I wanted to help but I have no idea how to create and update-binary file, so it is not flashable, but you can go back to 4.4.2 without computer. So what you need to is:
Download this: V40010C
Extract and place it onto your sd card!. Make sure all files are under /sdcard/* directory. Boot into the recovery, go to wipe -> advanced wipe -> wipe everything except sd card and internal storage. In recovery, go to advanced, then terminal. Folders should pop on the screen but do not go to any different directory, just press select. Now you should be in the terminal. Now, I'm really sorry but it will take some time, you have to enter each of this commands separately into the terminal:
Code:
dd if=/sdcard/V40010C/bootloader/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/V40010C/bootloader/factory.bin of=/dev/block/platform/msm_sdcc.1/by-name/factory
dd if=/sdcard/V40010C/bootloader/laf.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf
dd if=/sdcard/V40010C/bootloader/rpm.bin of=/dev/block/platform/msm_sdcc.1/by-name/rpm
dd if=/sdcard/V40010C/bootloader/sbl1.bin of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/V40010C/bootloader/sdi.bin of=/dev/block/platform/msm_sdcc.1/by-name/sdi
dd if=/sdcard/V40010C/bootloader/tz.bin of=/dev/block/platform/msm_sdcc.1/by-name/tz
dd if=/sdcard/V40010C/boot.bin of=/dev/block/platform/msm_sdcc.1/by-name/boot
dd if=/sdcard/V40010C/cust.bin of=dev/block/platform/msm_sdcc.1/by-name/cust
dd if=/sdcard/V40010C/modem.bin of=/dev/block/platform/msm_sdcc.1/by-name/modem
dd if=/sdcard/V40010C/persist.bin of=/dev/block/platform/msm_sdcc.1/by-name/persist
dd if=/sdcard/V40010C/system.img of=/dev/block/platform/msm_sdcc.1/by-name/system
Remember only system is an img file! It is about 2,5GB so to flash it will take about 5-10 min.
Once you flashed everything you can reboot, in my case it said that OS is not installed but the recovery didn't know yet that we just flashed it. So just swipe to reboot and tablet should boot up with 4.4.2 !
If you have any problems just tell me
Click to expand...
Click to collapse
Wow.. Amazing.. I don't know how to thank you man.. That's a lot of helping
BIG THANKS!!
Adam Myczkowski said:
I wanted to help but I have no idea how to create and update-binary file, so it is not flashable, but you can go back to 4.4.2 without computer. So what you need to is:
Download this: V40010C
Extract and place it onto your sd card!. Make sure all files are under /sdcard/* directory. Boot into the recovery, go to wipe -> advanced wipe -> wipe everything except sd card and internal storage. In recovery, go to advanced, then terminal. Folders should pop on the screen but do not go to any different directory, just press select. Now you should be in the terminal. Now, I'm really sorry but it will take some time, you have to enter each of this commands separately into the terminal:
Code:
dd if=/sdcard/V40010C/bootloader/aboot.bin of=/dev/block/platform/msm_sdcc.1/by-name/aboot
dd if=/sdcard/V40010C/bootloader/factory.bin of=/dev/block/platform/msm_sdcc.1/by-name/factory
dd if=/sdcard/V40010C/bootloader/laf.bin of=/dev/block/platform/msm_sdcc.1/by-name/laf
dd if=/sdcard/V40010C/bootloader/rpm.bin of=/dev/block/platform/msm_sdcc.1/by-name/rpm
dd if=/sdcard/V40010C/bootloader/sbl1.bin of=/dev/block/platform/msm_sdcc.1/by-name/sbl1
dd if=/sdcard/V40010C/bootloader/sdi.bin of=/dev/block/platform/msm_sdcc.1/by-name/sdi
dd if=/sdcard/V40010C/bootloader/tz.bin of=/dev/block/platform/msm_sdcc.1/by-name/tz
dd if=/sdcard/V40010C/boot.bin of=/dev/block/platform/msm_sdcc.1/by-name/boot
dd if=/sdcard/V40010C/cust.bin of=dev/block/platform/msm_sdcc.1/by-name/cust
dd if=/sdcard/V40010C/modem.bin of=/dev/block/platform/msm_sdcc.1/by-name/modem
dd if=/sdcard/V40010C/persist.bin of=/dev/block/platform/msm_sdcc.1/by-name/persist
dd if=/sdcard/V40010C/system.img of=/dev/block/platform/msm_sdcc.1/by-name/system
Remember only system is an img file! It is about 2,5GB so to flash it will take about 5-10 min.
Once you flashed everything you can reboot, in my case it said that OS is not installed but the recovery didn't know yet that we just flashed it. So just swipe to reboot and tablet should boot up with 4.4.2 !
If you have any problems just tell me
Click to expand...
Click to collapse
Hey, I know it's been a while since you posted this. but could you help me try to recover my v400? It doesn't boot at all and I believe that the partitions are corrupt. How can I flash them?
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!