FORUMS
Remove All Ads from XDA

[REF] Backup /efs folder. IMPORTANT.

765 posts
Thanks Meter: 538
 
By Rawat, Senior Member on 7th May 2011, 06:10 PM
Post Reply Email Thread
This guide is based on a guide by Candanga on the i9000 forums, and some commands from supercurioThis guide ASUMES you have read this Excellent Guide by Darkstrikerfirst:
H E R E <-- Make sure to read the ADB Guide.

I recommend doing this with a Mobile just taken out of the box or with any Official ROM of its Service Provider. If you have already Flashed your phone with another ROM but its working fine, then you can use that /efs also.

Why the /efs folder?
This is a very sensitive system folder that contains Phone-specific information such as the IMEI (encrypted in the nv_data.bin), wireless devices MAC addresses, product code (also in the nv_data.bin), and much more. Often users trying to change product codes or trying to unlock the mobile will end up corrupting data in this location.

Why back it up?***WARNING: I take no responsibility to any damage caused by the methods cited and/or written here. Their sole purpose is to back-up data and not to alter in any way the integrity of the original files of the mobile***

What you will need:
  • Rooted SGS II to get permissions as a SU (Super User) and perform the backup
*Remember: to use ADB you need to enable USB DEBUGGING under Applications/Development in your SGS II.

Here are 3 methods, I recommend that you do both Clean and RAW.

Basic, unix permissions lost :
Code:
su
busybox cp -a /efs /sdcard/efs/
Clean :
Code:
su
busybox tar zcvf /sdcard/efs/efs-backup.tar.gz /efs
RAW :
Code:
su 
cat /dev/block/mmcblk0p1 > /sdcard/efs/efs_dev-block-mmcblk0p1.img
Same thing, the target is the INTERNAL SDCARD in sdcard/efs/, so go ahead and copy the file.
The Following 92 Users Say Thank You to Rawat For This Useful Post: [ View ] Gift Rawat Ad-Free
 
 
7th May 2011, 06:13 PM |#2  
Member
Flag Austin, Texas
Thanks Meter: 16
 
More
+1 just do it....
The Following User Says Thank You to Elite GunnerX For This Useful Post: [ View ] Gift Elite GunnerX Ad-Free
7th May 2011, 08:34 PM |#3  
Senior Member
Thanks Meter: 4,962
 
More
Can this not be tasked by using a root file explorer and copying efs folder as i have always done .

jje
7th May 2011, 08:42 PM |#4  
Rawat's Avatar
OP Senior Member
Flag London
Thanks Meter: 538
 
More
Quote:
Originally Posted by JJEgan

Can this not be tasked by using a root file explorer and copying efs folder as i have always done .

jje

From the thread: And just copying the folder won't preserve permissions etc.
7th May 2011, 08:43 PM |#5  
Senior Member
Flag JHB
Thanks Meter: 764
 
More
Quote:
Originally Posted by JJEgan

Can this not be tasked by using a root file explorer and copying efs folder as i have always done .

jje

As long as you don't copy it to /sdcard, because it's VFAT and you'll lose the permissions settings on the files. If you copy it to /data or something then that's fine.
The Following User Says Thank You to RyanZA For This Useful Post: [ View ] Gift RyanZA Ad-Free
7th May 2011, 10:44 PM |#6  
Rawat's Avatar
OP Senior Member
Flag London
Thanks Meter: 538
 
More
bumpity bump
8th May 2011, 11:01 AM |#7  
Senior Member
Thanks Meter: 4,962
 
More
Quote:
Originally Posted by RyanZA

As long as you don't copy it to /sdcard, because it's VFAT and you'll lose the permissions settings on the files. If you copy it to /data or something then that's fine.

Thanks the SGS 1 EFs i copied was copied to external sd card and then copied off to PC . Did likewise on SGS 2 using Super Manager .
So according to what you are saying that was not going to back up if needed .

jje
8th May 2011, 11:26 AM |#8  
Senior Member
Flag JHB
Thanks Meter: 764
 
More
Quote:
Originally Posted by JJEgan

Thanks the SGS 1 EFs i copied was copied to external sd card and then copied off to PC . Did likewise on SGS 2 using Super Manager .
So according to what you are saying that was not going to back up if needed .

jje

It would probably have worked, but it would have made your EFS files readable and writable by any app that tried - not the end of the world since it's unlikely that any apps would try, but you still might as well avoid it if you can. I don't think there are any executables in EFS or anything that this will actually break though.
The Following User Says Thank You to RyanZA For This Useful Post: [ View ] Gift RyanZA Ad-Free
8th May 2011, 11:30 AM |#9  
Senior Member
Thanks Meter: 4,962
 
More
Thanks i did lose IMEI at one flash on SGS1 but a second flash recovered it .
I do like full backup of original firmware and anything else before playing with phone .

jje
8th May 2011, 12:57 PM |#10  
Rawat's Avatar
OP Senior Member
Flag London
Thanks Meter: 538
 
More
I've done all 3 forms of backup myself. . Clean, raw and basic
8th May 2011, 05:41 PM |#11  
Senior Member
Thanks Meter: 17
 
More
thanks for the info. have had close calls previously and having backups would have helped ease the stress
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes