Hi guys,
I want backup my /efs partition to avoid mistakes if i flash new ROMs on my phone and I did read in the forums that some guys lost there IMEI number etc. because the /efs partition was deleted after flashed a new ROM. So now I want do a /efs backup to avoid this. But EFS Professional show the wrong partition of my /efs partition. It show mmcblk0p9 but DiskInfo show mmcblk0p11 (and i believe that mmcblk0p11 is correct).
I also did backup my efs via TWRP.
I have cyanogenmod 11 installed. Maybe CM11 cause this problem or have EFS pro a bug? I really want backup my /efs guys and I hope you can help me
Some infos about my phone :
Model number : GT-I8190
Cyanogenmod 11 installed
Baseband : I8190XXAMG4
Busybox version : 1.22.1
Problem solved : I made a efs backup via Terminal Emulator with success and it's much faster and it backup correctly than efs pro. Thanks to @tys0n for this trick
ESF Professional v2 doesn't work correctly, you need v1.
Gw|n said:
ESF Professional v2 doesn't work correctly, you need v1.
Click to expand...
Click to collapse
V1 doesn't work. It freeze always while it installing. :sly:
I find it much easier to back up all important partitions with dd command instead of trying to find a software that's compatible.
Once it's "bricked" you'll probably have to dd your backups back to phone thru adb anyway because backed up "raw" img's taken straight from device is not 100% safe to flash thru odin without repacking to samsung sparse images which is a lot of job imo.
To be completly safe (I think) there is three partitions.
mmcblk0p9 - cspsa.img
mmcblk0p11 - EFS.img
mmcblk0p12 - modemfs.img
tys0n said:
I find it much easier to back up all important partitions with dd command instead of trying to find a software that's compatible.
Once it's "bricked" you'll probably have to dd your backups back to phone thru adb anyway because backed up "raw" img's taken straight from device is not 100% safe to flash thru odin without repacking to samsung sparse images which is a lot of job imo.
To be completly safe (I think) there is three partitions.
mmcblk0p9 - cspsa.img
mmcblk0p11 - EFS.img
mmcblk0p12 - modemfs.img
Click to expand...
Click to collapse
I made a backup with EFS pro and it backed up the wrong partitions but one thing is good because it also backed up my efs folder (mmcblk0p11 partition) but EFS pro thinks mmcblk0p11 is modemfs2 (takes 16MB) and mmcblk0p9 is efs (takes 1024KB). Can I rename modemfs2.img to efs.img and restore it back to my phone if my efs get deleted ramdomly?
EDIT : how can i backup my efs partition with ADB? I don't know much about ADB and can I also backup my efs via Terminal Emulator?
xXPR0T0TYPEXx said:
I made a backup with EFS pro and it backed up the wrong partitions but one thing is good because it also backed up my efs folder (mmcblk0p11 partition) but EFS pro thinks mmcblk0p11 is modemfs2 (takes 16MB) and mmcblk0p9 is efs (takes 1024KB). Can I rename modemfs2.img to efs.img and restore it back to my phone if my efs get deleted ramdomly?
EDIT : how can i backup my efs partition with ADB? I don't know much about ADB and can I also backup my efs via Terminal Emulator?
Click to expand...
Click to collapse
Yes, you can just rename it.
To make a backup in terminal, example for efs:
Code:
dd if=/dev/block/mmcblk0p11 of=/extSdCard/EFS.img
tys0n said:
Yes, you can just rename it.
To make a backup in terminal, example for efs:
Code:
dd if=/dev/block/mmcblk0p11 of=/extSdCard/EFS.img
Click to expand...
Click to collapse
Wow it worked well and much faster than efs pro and how can I restore my efs.img with terminal? And did i backup correct? Is 16MB normal? Please check Screenshot I use first time terminal Emulator
xXPR0T0TYPEXx said:
Wow it worked well and much faster than efs pro and how can I restore my efs.img with terminal? And did i backup correct? Is 16MB normal? Please check Screenshot I use first time terminal Emulator
Click to expand...
Click to collapse
It looks ok :good:
16MB is the size of the whole block. It's probably the best way to back up because you don't have to think about permissions on files and folders when you restore it. Of course you can zip it after so it takes less space, and keep the backups in a safe place
To restore you'll have to switch input and output.
Code:
dd if=/extSdCard/EFS.img of=/dev/block/mmcblk0p11
tys0n said:
It looks ok :good:
16MB is the size of the whole block. It's probably the best way to back up because you don't have to think about permissions on files and folders when you restore it. Of course you can zip it after so it takes less space, and keep the backups in a safe place
To restore you'll have to switch input and output.
Code:
dd if=/extSdCard/EFS.img of=/dev/block/mmcblk0p11
Click to expand...
Click to collapse
Thank you very much, mate
Now i should know how to backup/restore efs partition via Terminal Emulator
Related
Hi guys. I have problem. So i have my efs folder backuped. It contains following files
Code:
imei
-> bt.txt(23 bytes)
-> mps_code.dat(3 bytes)
nv.log(87,2kb)
nv_data.bin(1 697kb)
nv_data.bin.md5(32 bytes)
nv_datadel.bin(2 048 kb)
So i copied this to efs folder on my phone with root explorer. Rebooted phone and nv_data.bin changed to 2mb and i still have wrong IMEI
So guys. What is the solution?
Could someone help? Or know way how to prepere efs folder that would have my imei? I can provide pictures of my imei printed on my galaxy s box to proof that i'm not lying.
@EDIT
I forgot to mention that i have some clockwork backups. Do they contain imei backup?
if it was a nandroid backup then yes it will contain the imei
when you are using root explorer have you mounted system RW ??
if so and you still cant get it back, flash back to a froyo rom and it will be restored
Flashing Froyo helped. Thank you.
Close this topic
well after flashing jetpack 5.2 my imei deletedi have efs backup
but but
i cant restore it
when i type
cp /sdcard/nv_data.bin /efs/nv_data.bin
i get error that says :
cp:write error: No space left on device
yes i tried flash 3 file stock jvs , jvq and jvu roms but nothing
i restored nand backup = nothing
i would like some help since im getting screwed cuz phone is not mine :|
thanks
some1 said u need tp flash imcorrupted efs.rfs filewhat is that? where can i get it?
A little search found me this.... Good luck
azzledazzle said:
if you have a .tar version of your EFS. Unzip it. Copy all the contents of it, And paste them to the /EFS on the phone. Making sure they overwrite the current contents.
Once that has done, Restart the phone without backing out of root explorer (or what ever app you are using to copy/paste these files).
If that fails, Repeat the above step but ONLY copy / paste the NV_data.bin & NV_data.bin.md5
And finally if that fails. Backup all your stuff using Titanium Backup (or similar) And re flash a stock Froyo ROM. Maybe older, its upto you.
That will Definitely restore the IMEI, Then re-root and go back to whatever ROM you wish.
Good luck.
Click to expand...
Click to collapse
well i cant paste with ex explorer or root explorer says its fulland when i delete the files in efs the system immdietly make new nv_data,bin so again its full
//
i flashed stock froyo JPU and didnt work :|
i read some topics and i think phone bml3 (stl3) messed up
have you tried nitrality.... download it and make a back up of efs, and then replace the nitrality back up with your back up (sdcard/insanity/backup/efs). Then restore with nitrality.
it restores but not workin weird
Hi all..
So Im pretty new at flashing androids, been using ubuntu for years and am quite familiar with the terminal as well as computers in general. I made the silly mistake of not doing a complete backup of my phone with CWM before flashing with CyanogenMod 9 and now my EFS folder is "empty" but still with Zero free space... giving the "usual" errors":
1) Corrupt or incorrect ( FAKE) IMEI number. (International Mobile Equipment Identity)
2) No Network and Signal ( calls, sms and mobile Internet not working)
3) No base Band or Unknown Baseband
4) Sim card lock missing
as described in the [A.I.O. Helpline] My Android Solutions.
CWM seems to have created a copy/paste backup of my EFS folder (not .zip and not .img, just a folder) on sdcard/efs/backup but the EFS folder is read only and root manager cant paste into it. I've read that deleting the EFS folder should recreate it, I tried in terminal with
Code:
rm -r /efs/*
and got the reply:
Code:
rm failed for /efs/lost+found, Directory not empty
How do I go about restoring the EFS folder?
Finally figured out how to copy/paste into the read only EFS folder! I have searched probably about a million threads, all say to "just copy paste" into the efs folder... but never how to do it when its locked because of read only permissions.
I think im one step closer.. but still not quite there yet.
The way to get write permissions is simply to open terminal and get root access and unmount the efs directory using:
Code:
umount /efs
After that, I could open the efs directory in Root explorer and mount it as R/W. Automatically, I get some default files there created by the system which I can delete and then I could copy/paste my backup into the efs directory. Bang, mobile network running, but baseband version is still unknown. Also, my IMEI number is the generic one, not my unique one
The problem now, is that on reboot my EFS directory goes blank again... anyone know how to continue from here?
Snarlster said:
The problem now, is that on reboot my EFS directory goes blank again... anyone know how to continue from here?
Click to expand...
Click to collapse
Solution:- Reason is you had Jumped from GB to JB (should be on ICS before JB), so now you need to
1) Download Root Explorer from Play Store and use it to
2) Search you internal SD card for sdcard/backup/efs
3) Copy nv_data.bin, nv_data.bin.md5 and nv.log paste them into /efs in your Phone memory
4) Reboot to get back your original IMEI
If it gets lost after reboot
Remedies for those who have a efs backup
If you Have a Backup and you want to restore it, this is one method Here or you can use the restore function in the app that you used to back it up
If restoring the efs folder or you have a nv_data.bin backup but if you write nv_data.bin or .nv_data.bak it's being deleted on every boot, than follow this [GUIDE] how to get IMEI to stick across reboots to make it stick.
BUT try this method first
Copy Paste EFS folder with root explorer, after paste , power down phone and reboot into recovery and wipe cache before rebooting....this worked for some
xsenman said:
Solution:- Reason is you had Jumped from GB to JB (should be on ICS before JB), so now you need to
1) Download Root Explorer from Play Store and use it to
2) Search you internal SD card for sdcard/backup/efs
3) Copy nv_data.bin, nv_data.bin.md5 and nv.log paste them into /efs in your Phone memory
4) Reboot to get back your original IMEI
If it gets lost after reboot
Remedies for those who have a efs backup
If you Have a Backup and you want to restore it, this is one method Here or you can use the restore function in the app that you used to back it up
If restoring the efs folder or you have a nv_data.bin backup but if you write nv_data.bin or .nv_data.bak it's being deleted on every boot, than follow this [GUIDE] how to get IMEI to stick across reboots to make it stick.
BUT try this method first
Copy Paste EFS folder with root explorer, after paste , power down phone and reboot into recovery and wipe cache before rebooting....this worked for some
Click to expand...
Click to collapse
Thank you, I had read each thread linking from those threads but it was good for me to do it again!
Flashing the EFS folder with Heimdall gave me the same results as copy/paste, setting the ownership/permissions made no difference in both cases, always empty on reboot.
FINALLY, these are the steps I took to get my phone "working".
1: Odin re-installed the stock I9000JVJV9_OJVJV9_JXJV6.tar file found on sammobile.com as well as the Pit file found on 4shared
2: This gave me an error on bootup... something about "failed to mount dbdata", this was solved with Odin as well by selecting only PDA and using the dbdata.rfs.tar found on hotfile.com.
After this, my phone booted up with the generic imei, a very welcomed change to the previous no imei thats been bothering me! Also, my baseband is showing, the EFS directory is full of files and google play is working... and fortunately, my carrier doesnt seem to care about the generic imei
I'm still going to get my imei back, but first things first! Its time to do some backing up!
Current plan is:
1: Install ClockworkMod
2: BACKUP
3: replace nv_data.bin with the backed up one.
4: reboot / see if my IMEI number is back.
5: BACKUP
6: install CyanogenMod
I hope this helpes someone down the road.. dont be shy on letting me know if my hours of pain helped you!
And... one more thing, my phone is Samsung Galaxy S GT-I9000
Thanks again for pointing me to the right direction
did you only used the PDA included on the I9000JVJV9_OJVJV9_JXJV6.tar file? and how did you use teh dbdata.rfs.tar? thanks.
efs Folder Contents
Hi Guys,
I am hoping you can help me with a problem.
I have a brand new GalaxyS2 i9100, which is on ICS 4.0.4 IMM76XWLPW - XXLQ6 Baseband version, Kernel 3.0.15-1056084 [email protected]#3(SMP PREEMPT Wed Aug 22 2:55:24 KST 2012). The phone is not rooted, but what I did was make a copy of my efs folder to my PC, obviously incorrectly, using My Phone Explorer.
I thought it was just a matter of uploading the folder to my PC and it could be used in an emergency, I thought it would just copy the folder.
What I have discovered, is that all the contents of the efs folder are now on my PC and the efs folder in my phone is empty!!!!
I am now unable to get the files, back into my phones storage.
When I enter *#06# into my phone, the IMEI number shows up and is correct.
I also have a copy of the original efs folder, on my External SD Card.
I have not changed anything else on the phone, other than removing the efs folder contents to my PC. Is there a way, to get all the contents back into my phones efs folder without having to "Root," using say....Emulator or something?
Would a "Hard Reset" on this unrooted stock phone, restore the efs folder to factory settings??
Thank You.
dixielee said:
Hi Guys,
I am hoping you can help me with a problem.
I have a brand new GalaxyS2 i9100, which is on ICS 4.0.4 IMM76XWLPW - XXLQ6 Baseband version, Kernel 3.0.15-1056084 [email protected]#3(SMP PREEMPT Wed Aug 22 2:55:24 KST 2012). The phone is not rooted, but what I did was make a copy of my efs folder to my PC, obviously incorrectly, using My Phone Explorer.
I thought it was just a matter of uploading the folder to my PC and it could be used in an emergency, I thought it would just copy the folder.
What I have discovered, is that all the contents of the efs folder are now on my PC and the efs folder in my phone is empty!!!!
I am now unable to get the files, back into my phones storage.
When I enter *#06# into my phone, the IMEI number shows up and is correct.
I also have a copy of the original efs folder, on my External SD Card.
I have not changed anything else on the phone, other than removing the efs folder contents to my PC. Is there a way, to get all the contents back into my phones efs folder without having to "Root," using say....Emulator or something?
Would a "Hard Reset" on this unrooted stock phone, restore the efs folder to factory settings??
Thank You.
Click to expand...
Click to collapse
I would be careful with that, if you have your efs folder on your sd card, I think it would be better to copy/paste them with root explorer back before reboot... though this is just a guess. In any case, since you have the folder on your PC, then at least you have the backup you need if you get into serious trouble.
If it did reset, please tell us about it in case someone else needs this info later
efs file restore
Thank you so much. After days of not having calling and texting functions available from a corrupted efs folder, who would have thought that a simple copy and paste of the backed up efs to the system would help greatly?
Hey, this worked for me, but I still can't connect to some carriers.
Story behind this zip file:
I messed up my tablet and I could only get into download mode , meaning I could flash a insecure boot.img and custom recovery.
I noticed that my EFS partition was erased when I entered a stock recovery, I got all kind of EFS error messages in recovery.
At first I tried to restore my system with a original ROM ODIN package but that doesn't restore your EFS. So no luck and still stuck in a bootloop.
So what to do? No adb , no EFS backup on my internalSD , I couldn't get acces to my internal SD.
I google around and I didn't find anything to restore EFS from within recovery or Odin. I didn't have a EFS.img backup on my internalSD so the emwo recovery was no help.
I do have a EFS backup that I took with EFS pro.
That generates a .tar and a .img file.
So I made myself a update package that I could flash from cwm. As I made the recovery I knew in what partition EFS is stored so that was easy.
This is the updater script , it should work on GT-N51... (10, 00, 20) as they all store the EFS in this partition.
Code:
show_progress(0.3,72);
ui_print(" ");
ui_print("1. START INSTALLATION");
package_extract_file("EFS.img", "/dev/block/mmcblk0p3");
set_progress(0.99);
ui_print("------------------------------------------");
set_progress(1.0);
I renamed the EFS image backup that I took with efsPro to EFS.img and dropped it in the zip I made with the updeter script.
Flashed it with cwm and voila, running again without any problems.
SO in the attachments is the zip .
Open it with 7zip or winrar , drag and drop your EFS.img (needs to be this name) into the zip where the EFS-dummy text file is. put it on your externalSD , boot to recovery and flash it.
So I hope this helps the people out that come into the same situation as I did.
Thanks for the zip, I have my EFS backup, but I didn't know what to do if I had this problem!
You are a life saver!!!
THANK YOU VERY MUCH
Long story short, I was like you. my battery died, and for no apparent reason, I couldnt boot. I had download and recovery but no matter what rom i used no boot. Then i noticed in the logcat it was getting stuck on network initialization and also that twrp couldnt mount the efs partition.
I was looking for a way to restore the efs using adb sideload when i found this, popped in my efs backup and volia!
o yea i'm on the GT-i9300 (s3) but it worked like a charm! deffo keeping a copy of that zip just in case.
I have a .tar.gz efs backup compressed file. So how do I use it to flash via CWM?
android addicts said:
I have a .tar.gz efs backup compressed file. So how do I use it to flash via CWM?
Click to expand...
Click to collapse
open it using 7zip or winrar and you will find the efs.img inside
copy it and put in the zip file
no luck for me
ephidor said:
open it using 7zip or winrar and you will find the efs.img inside
copy it and put in the zip file
Click to expand...
Click to collapse
It keeps on returning to recovery..
Anyone with a link to this efs pro? I fint efs in app store with lots of problems but no efs pro. I buy my apps so not trying to get around that but which app? Thanks
Sent from my GT-N5110 using XDA Premium 4 mobile app
---------- Post added at 11:48 AM ---------- Previous post was at 10:48 AM ----------
k9time said:
Anyone with a link to this efs pro? I fint efs in app store with lots of problems but no efs pro. I buy my apps so not trying to get around that but which app? Thanks
Sent from my GT-N5110 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Never mind. ? Found it. Thanks civato..
Sent from my GT-N5110 using XDA Premium 4 mobile app
OMG...thankkkkks so much....
Anyone have any idea how to proceed if you don't have a backup image of "EFS.img"? Luckily, I am able to boot and run fine, but I understand fixing the EFS will also fix my GPS. Thanks in advance.
Sent from my GT-N5110 using XDA Free mobile app
Anyone can help me to flash my EFS using this method? MY note 4 N 910G has damaged EFs and showing unknown basband and null IMEI. Phone rebooting every minute and canot restore EFs in normal mode. My EFS backup has 4 files. Need to restore all this files with flasheble zip. (efs.img.ext4, mdm1m9kefs1.bin, mdm1m9kefs2.bin, mdm1m9kefsc.bin)
arminrr said:
Thanks for the zip, I have my EFS backup, but I didn't know what to do if I had this problem!
Click to expand...
Click to collapse
can you pls upload your n5110 efs backup in 4 shared mediafire or mega i down back my efs so i brick my phone need help ls.. :crying::crying::crying::crying::crying:
Problem!!!
I flashed it via TWRP Recovery It shows that INSTALLATION SUCCESSFUL but after my phone boots up. I tried to found the EFS folder it only contains bluetooth folder. but I had so many files and folders in my EFS Backup.img file. Why It could not work.
Hi Please take a minute to reply
civato said:
Story behind this zip file:
I messed up my tablet and I could only get into download mode , meaning I could flash a insecure boot.img and custom recovery.
I noticed that my EFS partition was erased when I entered a stock recovery, I got all kind of EFS error messages in recovery.
At first I tried to restore my system with a original ROM ODIN package but that doesn't restore your EFS. So no luck and still stuck in a bootloop.
So what to do? No adb , no EFS backup on my internalSD , I couldn't get acces to my internal SD.
I google around and I didn't find anything to restore EFS from within recovery or Odin. I didn't have a EFS.img backup on my internalSD so the emwo recovery was no help.
I do have a EFS backup that I took with EFS pro.
That generates a .tar and a .img file.
So I made myself a update package that I could flash from cwm. As I made the recovery I knew in what partition EFS is stored so that was easy.
This is the updater script , it should work on GT-N51... (10, 00, 20) as they all store the EFS in this partition.
Code:
show_progress(0.3,72);
ui_print(" ");
ui_print("1. START INSTALLATION");
package_extract_file("EFS.img", "/dev/block/mmcblk0p3");
set_progress(0.99);
ui_print("------------------------------------------");
set_progress(1.0);
I renamed the EFS image backup that I took with efsPro to EFS.img and dropped it in the zip I made with the updeter script.
Flashed it with cwm and voila, running again without any problems.
SO in the attachments is the zip .
Open it with 7zip or winrar , drag and drop your EFS.img (needs to be this name) into the zip where the EFS-dummy text file is. put it on your externalSD , boot to recovery and flash it.
So I hope this helps the people out that come into the same situation as I did.
Click to expand...
Click to collapse
Will this method work for stock recovery too? thanks
i know this is old but i find this video that explain how to recovery the efs bad i try and works:
https://www.youtube.com/watch?v=Y-LZvVLEC5o
adb shell
su
cd /dev/block/platform
cd dw_mmc
cd by-name
ls -l
(copy de code of block and put in .....)
example: mmcblk0p3
mke2fs /dev/block/......
mount -w -t ext4 /dev/block/.......
reboot
can any one uploda efs.img for n5100.. tia
Hi, im running JB VSLP9 (Movistar Argentina firmware) and recently i decided i should backup efs and modemfs just in case. I followed the steps in this guide http://forum.xda-developers.com/showthread.php?t=2342100
I don't know if this is related but recently i've been having some problems with 3G connectivity. Sometimes the phone shows good signal but no data connection. You have to restart the phone to correct this. Also, some people have told me that calling me directs them straight to voice mail.
I was looking at my modemfs folder and then discovered that it is empty! 0 files, 0 bytes. So i tried to restore the backup that I made (16mb). But nothing changed, the folder is still empty ....
Is this normal ??? Can my problems be related to the "backup" of efs and modemfs ????
Thanks
Can anyone at least check your modemfs folder and tell me its contents ?
Piachnp said:
Can anyone at least check your modemfs folder and tell me its contents ?
Click to expand...
Click to collapse
Here you go.
But I do not know how to fix yours...
Thanks Shutdown, i tried wiping everything and flash the firmware again, but the modemfs folder is still empty... That crappy backup guide ****ed up everything
Does anyone know if i can ask for someone using the same firmware for the contents of this folder and copy them to my phone ????
Piachnp said:
Thanks Shutdown, i tried wiping everything and flash the firmware again, but the modemfs folder is still empty... That crappy backup guide ****ed up everything
Does anyone know if i can ask for someone using the same firmware for the contents of this folder and copy them to my phone ????
Click to expand...
Click to collapse
Maybe you need to mount modemfs partition before restoring? Look how to do that (trough terminal emulator, or ADB shell).