[TUTORIAL] Remounting/restoring/backup the /EFS partition

Szaby59

Senior Member
Aug 26, 2010
444
293
0
/EFS partition contains a lot of information about your phone, f.e: wifi/bt mac address and your IMEI (nv_data.bin).

It's highly recommended to backup the whole partition, or at least copy the files from the efs directory.

CORRUPTED OR NOT?

You can check if the efs is mounted or completly damaged with this command:

adb shell
mount

You will see something like this:



Red part means /efs is mounted.

IF YOUR PHONE HAVE CORRECT EFS PARTITION:

1, Root your phone - there are several methods to do this.
2, Install root explorer or Estrongs file explorer and copy /efs dir to your sdcard - this will copy the files.

or

2, Make a backup from the whole partition -this is better if you flash a phone with wrong ops, the only way to restore using this backup.

Backup:
adb shell
su
dd if=/dev/block/stl4 of=/sdcard/efs.rfs

Restore:
Add efs.rfs to an unix compatible tar and flash with odin as efs file:



IF YOUR PHONE /EFS IS CORRUPTED:

Flash the included /efs tar with odin:
This will remount your efs partition and (if you have a backup or fixed nv_data.bin) you just need to overwrite files with a file explorer.

 

Attachments

  • 15.1 KB Views: 16,584
Last edited:

sirtbhopal

Senior Member
Oct 21, 2010
245
57
0
I am using I5801 JPB (with restored bootscreen and Rooted via SuperoneClick)
while using "adb shell" command at Better terminal its showing "adb: not found"
:(
I flashed my I5801 from JP9, JPA and JPB till date..
is it possible to restore the backup now..?? :( :eek:
 

soulstaker

Senior Member
Nov 16, 2010
73
7
0
warai-otoko.org
ok, using the dd method i made the backup of my /efs to a efs.rfs file that have ~4 MB

But when i go to the efs folder (on / ) or see the copy i've made to my SD card, there is no files at all on this folder. How can we "see" those files (nv_data.bin) ?
 

cadusir

Senior Member
Dec 29, 2010
110
19
0
Hi
For backup I simply copied my /efs folder to SD card using root explorer.
Then I modified nv_data files to get unlocked.
there was no SSNV in the files.
I have a working unlocked phone now but the problem is that IMEI is all zeros like 000000000!
Can I use that folder to restore my files?
 

[xubz]

Member
Dec 13, 2010
15
5
0
Bangalore
how to make .tar file because backup file is .rfs format help me i want my imei back
Download the Tar Utility from GnuWin32's SourceForge Page.

Code:
hxxp://sourceforge.net/projects/gnuwin32/files/tar/1.13-1/tar-1.13-1-bin.exe/download
(change it to http)


It'll install the tar.exe executable and required dlls in C:\Program Files\GnuWin32\bin

Copy those to where you have your rfs (or you can add the bin folder to your PATH Environment Var, google for help on how to do that)

Now type:
Code:
tar -cf efs.tar efs.rfs
 

FadeFx

Senior Member
Mar 22, 2010
8,838
3,034
0
Vienna
Burak, what kernel do u use? There was a bug in older fugumod version where eds was not propperly mounted or read, thus the phone displayed bad imei, if u use older fugumod please update to latest version