Backup EFS? - Nexus S Q&A, Help & Troubleshooting

I have tried to backup my efs folder with various tools, resulting in permission denied. So I decided to manually copy and backup my /efs folder with ES File Explorer (with root permission). Is that enough, or do I need to use some fancy tool?

ololizoz said:
I have tried to backup my rfs folder with various tools, resulting in permission denied. So I decided to manually copy and backup my /efs folder with ES File Explorer (with root permission). Is that enough, or do I need to use some fancy tool?
Click to expand...
Click to collapse
"rfs"?? As long as you have a backup of your original efs folder on your sd-card & maybe another on your pc, then you're good to go! No fancy tools required!!

CrackDaddy said:
"rfs"?? As long as you have a backup of your original efs folder on your sd-card & maybe another on your pc, then you're good to go!
Click to expand...
Click to collapse
Oh, of course I mean efs So it's enough to copy the /efs folder?

ololizoz said:
Oh, of course I mean efs So it's enough to copy the /efs folder?
Click to expand...
Click to collapse
It is yes! But in theory, whenever you have a problem with efs, then your bak files in that folder record those changes so you can recover using that particular file! But yes, it's always wise to have a backup of that folder either on your phone (sd-card!) or your pc, because if that gets screwed then you could be in a whole lot of bother!

CrackDaddy said:
It is yes! But in theory, whenever you have a problem with efs, then your bak files in that folder record those changes so you can recover using that particular file! But yes, it's always wise to have a backup of that folder either on your phone (sd-card!) or your pc, because if that gets screwed then you could be in a whole lot of bother!
Click to expand...
Click to collapse
Yeah, thanks! So I can finally flash that kernel I have one on my phone, one on my desktop, one on my laptop, one on my external harddrive and one on my dropbox. Should be enough xD

ololizoz said:
Yeah, thanks! So I can finally flash that kernel I have one on my phone, one on my desktop, one on my laptop, one on my external harddrive and one on my dropbox. Should be enough xD
Click to expand...
Click to collapse
More than enough & don't forget to wipe dalvik cache also before flashing any kernels!!

CrackDaddy said:
More than enough & don't forget to wipe dalvik cache also before flashing any kernels!!
Click to expand...
Click to collapse
Okay, thanks for the heads up!

Are you sure that's enough, since simply copying does not preserve the file permissions ?

ehknaton said:
Are you sure that's enough, since simply copying does not preserve the file permissions ?
Click to expand...
Click to collapse
Well the best way is
Code:
Cat /dev/block/mtdblock6 >> /mnt/sdcard/efs_backup.img
Then just revert it to restore
Sent from my ice cream powered Nexus S

Related

[I9003] Request for EFS backup and Restore

I updated to XXBK3 as per the steps mentioned and everything went fine. When the phone booted, the simcard is not getting detected. I have factory reset the phone, changed the sim, tried my sim on another phone (works on another) but not this one.
Revert back to DDKB2 but still sim card is not getting detected. Kindly assist
Update: I have lost all folders in efs folder after flashing XXBK3. Unfortunately i dont have backup of efs folder
The only option left with me now if service center. Since there is no post for efs backup and restoer, i would request if someone can post settings/commands to backup and restore efs.
Hey, maybe you'll laugh, but there do not give any simcard wrong side. Once I flash phone at night and I'm still there giving the wrong side
fataLLik said:
Hey, maybe you'll laugh, but there do not give any simcard wrong side. Once I flash phone at night and I'm still there giving the wrong side
Click to expand...
Click to collapse
I didnt understand you.
What i mean is i dont get network and when i try to open Mobile APN, i get message " Please insert SIM..."
This can happen if you have selected the option Phone EFS Clear in ODIN while flashing FW. This would delete the efs folder.
Follow my guide that I sent you for future. I have already backed up mine, but hope I wont need it.
What is the /efs folder? Should I also back it up? Only that folder or all folders under root are to be backed up?
Sent from my GT-I9003 using XDA App
jesrani said:
What is the /efs folder? Should I also back it up? Only that folder or all folders under root are to be backed up?
Sent from my GT-I9003 using XDA App
Click to expand...
Click to collapse
Efs folder contains information about your Phones IMEI no. If you clear it or corrupt it you lose your IMEI and it can only be restored by Service centre if you have not backed it up. Just copying the folder is not enough. You need to back it up in the form that it can be directly flashed to your phone to restore the IMEI and to put your phone back in usable condition, as in india service providers do not support phones without IMEI nos.
Dude can u give us a walkthru of how to back up efs
Sent from my GT-I9003 using XDA App
Sure I will.
Sent from my GT-I9003 using XDA Premium App
http://forum.xda-developers.com/showthread.php?t=859914
This process works absolutely fine. Just tried it.
trip007in said:
Efs folder contains information about your Phones IMEI no. If you clear it or corrupt it you lose your IMEI and it can only be restored by Service centre if you have not backed it up. Just copying the folder is not enough. You need to back it up in the form that it can be directly flashed to your phone to restore the IMEI and to put your phone back in usable condition, as in india service providers do not support phones without IMEI nos.
Click to expand...
Click to collapse
Is the link given by manu1991 okay in your opinion? According to Post#2, "An alternative to the backup part is to use Root Explorer and zip the whole /efs folder onto your external sd card. (or wherever you want)". Is this possible and reliable? I tried the option to zip folder in "Super Manager" but got an empty file.
No root explorer should not be used to back up this folder. Follow the link and back up your efs folder.
Sent from my GT-I9003 using XDA Premium App
manu1991 said:
http://forum.xda-developers.com/showthread.php?t=859914
This process works absolutely fine. Just tried it.
Click to expand...
Click to collapse
Ok, I tried this and made the tar.gz file directly in my external sd card. I got a file of size 35Kb? Checked with 7-zip, seems to contain all files. Also made the .gz file using terminal emulator and got same size. In Super Manager the /efs folder seems to be 5Mb in size. I also extracted the .gz file and the uncompressed size is indeed about 5Mb. Can it really be compressed to 35Kb or is there some mistake?
jesrani said:
Ok, I tried this and made the tar.gz file directly in my external sd card. I got a file of size 35Kb? Checked with 7-zip, seems to contain all files. Also made the .gz file using terminal emulator and got same size. In Super Manager the /efs folder seems to be 5Mb in size. I also extracted the .gz file and the uncompressed size is indeed about 5Mb. Can it really be compressed to 35Kb or is there some mistake?
Click to expand...
Click to collapse
yes, it can. If the files has a lot of zeroes inside. BTW here is only 3 files are very big:
nv_data.bin, .nv_data.bak and .nv_core.bak and as I can see they are have a lot of zeroes.
jesrani said:
Ok, I tried this and made the tar.gz file directly in my external sd card. I got a file of size 35Kb? Checked with 7-zip, seems to contain all files. Also made the .gz file using terminal emulator and got same size. In Super Manager the /efs folder seems to be 5Mb in size. I also extracted the .gz file and the uncompressed size is indeed about 5Mb. Can it really be compressed to 35Kb or is there some mistake?
Click to expand...
Click to collapse
Yes it is compressed. Just pull out the efs folder out of the archive and see check the size, its 5.03MB for me.
Thanks falex and trip
I also made image of stl3 and it is about 6mb.
Sent from my GT-I9003 using XDA App
EFS / IMEI changes to Fake frequently.
With regards to your post on EFS restore, thanks for the excellent instructions I managed to get IMEI back but noticed that it gets changed quiet frequently when I am on any version of Gingerbread so I downgraded my self to Froyo and I notice that the IMEI doesnt change, Could you kindly advise me so to get it working when I am on gingerbread. Does it have anything to do with bootloaders. The restore method I used is to flash via Odin and no other commands there on.
ThanK You In advance.
i have the same troubles
i try many methods
last i failed
now i just play t959 as a pda
I believe the Nitrality app has an EFS backup feature
Good morning from Argentina!
I have a problem to restore my /EFS I have Froyo LUBKB1 (Argentina) coming from KPQ and the /efs is broken.
I have a backup from a functional EFS directory but when I try to copy it with Root Explorer, it seems that it copies it but when I reboot, EFS directory is empty.
Is there any possibility to create the .img with ADB from a directory which is in the sdcard?
Regards
Try this man: http://forum.xda-developers.com/showthread.php?t=1308546

[Q] Restore from backup on galaxy s3

A couple of days ago, I installed android 4.2.2 liquidsmooth on my galaxy s3 i9300. Before installing this custom ROM, I took a backup into external SD card. I see the folder to which I had taken a backup and files like boot.img, recovery.img are there in this folder. Now I want to restore to my old state but when I go to recovery mode and select backup and restore > restore, it says no such files directory found. It is unable to recognize the backed up files. How do I go about restoring?
regex_vid said:
A couple of days ago, I installed android 4.2.2 liquidsmooth on my galaxy s3 i9300. Before installing this custom ROM, I took a backup into external SD card. I see the folder to which I had taken a backup and files like boot.img, recovery.img are there in this folder. Now I want to restore to my old state but when I go to recovery mode and select backup and restore > restore, it says no such files directory found. It is unable to recognize the backed up files. How do I go about restoring?
Click to expand...
Click to collapse
verify that its in the same folder where the backup was kept and u didn't changed anything.if u did undo it!
prantoroy said:
verify that its in the same folder where the backup was kept and u didn't changed anything.if u did undo it!
Click to expand...
Click to collapse
When I took a backup, it was stored in internal storage under /clockworkmod directory. I copied that folder to external SD. I'm unable to restore from external SD card and also from internal storage. If I select backup and restore > restore, it says no such files found. Am I missing something?
regex_vid said:
When I took a backup, it was stored in internal storage under /clockworkmod directory. I copied that folder to external SD. I'm unable to restore from external SD card and also from internal storage. If I select backup and restore > restore, it says no such files found. Am I missing something?
Click to expand...
Click to collapse
puted it in under /clockworkmod/backup
???
prantoroy said:
puted it in under /clockworkmod/backup
???
Click to expand...
Click to collapse
Yes. By default it was copied to that location.
regex_vid said:
Yes. By default it was copied to that location.
Click to expand...
Click to collapse
last question
are u using cwm?
anythinh hentypd
prantoroy said:
last question
are u using cwm?
Click to expand...
Click to collapse
Yes
regex_vid said:
Yes
Click to expand...
Click to collapse
hopeless!
prantoroy said:
hopeless!
Click to expand...
Click to collapse
Why? what happened?
regex_vid said:
Why? what happened?
Click to expand...
Click to collapse
it mostly happens if the file is missing or renamed or even hidden.
but here all is ok.
so I can't assist you further!
SORRY.

CWM Backup Location!

i'm not able to find my cwm backup file to transfer it to my pc.please some one tell me where is the location for cwm backup.tnx
ali.sbi said:
i'm not able to find my cwm backup file to transfer it to my pc.please some one tell me where is the location for cwm backup.tnx
Click to expand...
Click to collapse
/data/media/clockworkmod
Learn to use the search.
There is a folder straight away in your SD card Named clockworkmod
ali.sbi said:
i'm not able to find my cwm backup file to transfer it to my pc.please some one tell me where is the location for cwm backup.tnx
Click to expand...
Click to collapse
There is a folder straight away in your SD card Named clockworkmod
deej_roamer said:
There is a folder straight away in your SD card Named clockworkmod
Click to expand...
Click to collapse
yeah i know but there is not any back up file in that.only 28 byts.
Then you are screwed
ali.sbi said:
yeah i know but there is not any back up file in that.only 28 byts.
Click to expand...
Click to collapse
Try installing disk analyzer and try to locate a folder which can be in scales of a rom size, if you can find it great, otherwise something went wrong during backup
If you can take another backup then great otherwise its something you can't do anything about.
deej_roamer said:
Try installing disk analyzer and try to locate a folder which can be in scales of a rom size, if you can find it great, otherwise something went wrong during backup
If you can take another backup then great otherwise its something you can't do anything about.
Click to expand...
Click to collapse
i can access my backup in cmw i can even delete it or take a new back up and restore it. the thing is when i connect the phone i can't find the back up in internal memory. and surf it with ES file manager too but nothing really found.
Does Access mean restore as well?
ali.sbi said:
i can access my backup in cmw i can even delete it or take a new back up and restore it. the thing is when i connect the phone i can't find the back up in internal memory. and surf it with ES file manager too but nothing really found.
Click to expand...
Click to collapse
Can you restore the backup as well?
And what you are saying is that there is content in clockworkmod folder but of negligible size? Can you post a screenshots of clockworkmod folder?
Trust me use disk analyzer it can find some unknown things
check #2
there i found my backup
(be careful: i tried to flash a custom (so also formatted system+data) and when i wanted to return to my backup i discovered it was erased )
dreezz said:
check #2
there i found my backup
(be careful: i tried to flash a custom (so also formatted system+data) and when i wanted to return to my backup i discovered it was erased )
Click to expand...
Click to collapse
yeah that right i have same issue too. that's why now i want to find my back up to transfer it into my pc.
deej_roamer said:
Can you restore the backup as well?
And what you are saying is that there is content in clockworkmod folder but of negligible size? Can you post a screenshots of clockworkmod folder?
Trust me use disk analyzer it can find some unknown things
Click to expand...
Click to collapse
yeah sure i can restore it and it's fine.ok i will try this dist analyzer thing ASAP and get u back.
Device/data/media/clockworkmod
Edit: you can also make nandroid backups directly to your pen drive via a otg cable and avoid this confusion in future...
Sent from my XT1033 using Tapatalk
ali.sbi said:
yeah sure i can restore it and it's fine.ok i will try this dist analyzer thing ASAP and get u back.
Click to expand...
Click to collapse
Use adb to pull it to PC.
adb pull /data/media/clockworkmod

took the plunge BUT

I backed up all the data I wanted to carry over on my PC EXCEPT of course my titanium backup apps.
Is there any way to explore a nandroid backup to find the SD (if it even backs up SD) so I can find my TB folder and paste it to my phone?
My phone did not push my apps from Google when booted and I hate having to manually reinstall them even though I dont have many
tevil said:
I backed up all the data I wanted to carry over on my PC EXCEPT of course my titanium backup apps.
Is there any way to explore a nandroid backup to find the SD (if it even backs up SD) so I can find my TB folder and paste it to my phone?
My phone did not push my apps from Google when booted and I hate having to manually reinstall them even though I dont have many
Click to expand...
Click to collapse
You can use TB to extract the apps and data directly from the nandroid.
Copy the nandroid back to your phone's backup location (/TWRP/backups/ or /clockworkmod/backup/)
In TB, press menu then it's near the bottom.
+1 works!
Menu > Extract from Nandroid backup...
thanks one more question
Its upgraded and rooted yet when I go into my folder structure I dont see TWRP folder. I Know twrp works cause its there and I ran a backup but the folder isnt there for me to put my old backup in there.
any tips?
thanks
Try here
http://forum.xda-developers.com/showthread.php?t=2938749
thanks but none of those are it. I can see a file called twrp but its not a folder. Maybe ill just try to create the folder myself and run another backup, wonder where the first one went.
can see see my sd fine and access everything else normally.
thanks
You'll need to wipe your storage probably. Read the thread. People have reported that issue.
rootSU said:
You'll need to wipe your storage probably. Read the thread. People have reported that issue.
Click to expand...
Click to collapse
Got it, luckily I never delte folders when creating new ones so oddly when I renamed the TWRP file that was supposedly a folder to "twrp2" it returned it to a folder status. I just renamed it back to "TWRP" and it works.
Alls good.
Hopefully maybe that might help someone else.
tevil said:
Got it, luckily I never delte folders when creating new ones so oddly when I renamed the TWRP file that was supposedly a folder to "twrp2" it returned it to a folder status. I just renamed it back to "TWRP" and it works.
Alls good.
Hopefully maybe that might help someone else.
Click to expand...
Click to collapse
Ha. Crazy
rootSU said:
Ha. Crazy
Click to expand...
Click to collapse
Update
You have to first run the
su
restorecon -FR /data/media/0
command THEN rename the folder. Just did this on my nexus 7

Impossible to find my backup from Nandroid and Super Backup on PC

Hi,
I tried so much alternative for make a backup of my cell and to transfer it on my PC, but i dont see it when i browse from my PC. Nandroid, super backup and titanium are all configured to save backup to storage/emulated/0 but i can only find titatium save from my PC. Nandroid and super backup files cant be find
Im seriously out of idea
Thx
Check /data/media/0
I dont have this path when i browse from my PC
The only way for see my backup is when i did it from Recovery(philz recovery). I can find it in: /clockworkmod/backup
But the backup have a wrong date and time name
bump
Mini Franki said:
Hi,
I tried so much alternative for make a backup of my cell and to transfer it on my PC, but i dont see it when i browse from my PC. Nandroid, super backup and titanium are all configured to save backup to storage/emulated/0 but i can only find titatium save from my PC. Nandroid and super backup files cant be find
Im seriously out of idea
Thx
Click to expand...
Click to collapse
rootSU said:
Check /data/media/0
Click to expand...
Click to collapse
Read what maestro write. You have to use root explorer. It is in your phone's root directory.
I know where is my backup on my cell with file explorer. This is not my problem. The problem is i dont find it from my pc. I want to take my nandroid backup and to put it on my computer.
Adb push it to your pc
Sent from my SHIELD Tablet using Tapatalk
ldubs said:
Adb push it to your pc
Sent from my SHIELD Tablet using Tapatalk
Click to expand...
Click to collapse
Ummm that's adb pull actually. You push to the phone and pull from it.
OP: Just use a root explorer and make a copy of the file someplace your comp sees. Copy it over to your comp with MTP then delete it.
Thx that work great when i move it to an other folder. But i dont understand why i dont see it from my computer in clockworkmod/backup when i see it in file explorer
EDIT: Now i can see it in clockworkmod/backup after i moved back it.... Very strange
Mini Franki said:
Thx that work great when i move it to an other folder. But i dont understand why i dont see it from my computer in clockworkmod/backup when i see it in file explorer
EDIT: Now i can see it in clockworkmod/backup after i moved back it.... Very strange
Click to expand...
Click to collapse
Internal Storage on the Nexus 5 is /data/media/0, also what /sdcard is symlinked to. This is what is accessed via MTP.
CWM is outdated and uses the legacy location of /data/media/clockworkmod (note the lack of /0).
Therefore you cannot see it while connected to a PC, because you're viewing /data/media/0, not /data/media. It's also why it shows up on your PC when you copy it to another folder, its moved from /data/media/clockworkmod to /data/media/0/clockworkmod (but then CWM won't see it).
With nandroid app, you can decide where you want to make your backup. I tried /data/media/0 and storage/emulated/0 but i dont see it on my PC. Only in my file explorer from my phone. I can only see it on my pc when i move it to an other folder and when i move it back in /data/media/0(i move it with file explorer)
That what a found strange. Anyway, that workaround work so ill use it in the futur
thx guys

Categories

Resources