[Q] EFS Backup - T-Mobile Samsung Galaxy S II SGH-T989

I have been trying to backup efs data prior to flashing away merrily.
I believe this important given the various reports of glitches.
I tried the guidelines here---
and had the following error---
busybox tar zcvf /sdcard/efs-backup.tar.gz /efs
busybox tar zcvf /sdcard/efs-backup.tar.gz /efs
tar: invalid option -- z
However when I removed the 'z' from 'zcvf' I had a verbose output of 37 files and an efs-backup.tar file.
Would this be the correct efs tarball?
The code --busybox cat /dev/block/stl3 > /sdcard/efs_dev-block-stl3.img
seemed to work correctly generating a disc image file.

I know less than you do about this, but couldn't you just go into your root with an application like root explorer and just back up the efs that way?
-Hercules composed this post and threw it at your face to be read-

does anyone have an efs backup they can share?
something went wrong with mine and i no longer have a lock screen and everytime i reboot, bluetooth is turned on and the screen is set to never shut off.

i just use root expolorer and find the efs file and copy it and paste it in ext sd and then transfer to pc for safe keeping, thats how it works for me.

movieaddict said:
i just use root expolorer and find the efs file and copy it and paste it in ext sd and then transfer to pc for safe keeping, thats how it works for me.
Click to expand...
Click to collapse
Yea I did the same but some how my memory card reformatted before I could save it on my computer and now I need to restore it and I no longer have one
Sent from my SGH-T989 using XDA App

Please Help
anyone has their efs backed up that they can share mine got deleted and i don't know how to recreate it

madamada31 said:
anyone has their efs backed up that they can share mine got deleted and i don't know how to recreate it
Click to expand...
Click to collapse
Just download nitrality app and backup efs with that. It's in the tools settings.
Sent from my SGH-T989 using Tapatalk

richardlibeau said:
Just download nitrality app and backup efs with that. It's in the tools settings.
Sent from my SGH-T989 using Tapatalk
Click to expand...
Click to collapse
as i said my efi folder is empty and the phone doesn't show any IMEI.. i tried the backup but it didn't do anything. is there any way to recreate the necessary files in that folder..

Related

[Q] how to delete nandroid backups

how do I delete nandroid backups for an evo 4g?
I delete mine by using a file manager then go to the nandroid folder and delete the old nandroids also I backup ALL my nandroids on my pc then delete them
Sent from my PC36100 using XDA App
Go into nandroid folder then into the next folder H something, in that folder will be all your nands named by date. Just delete which ever ones you don't need either via some root explorer app or Pc usb.
Sent from my nike hating evo!
Go to the sd card > open nandroid folder > open HT... > select the backup and delete it.
thanks
evo4gnoob said:
I delete mine by using a file manager then go to the nandroid folder and delete the old nandroids also I backup ALL my nandroids on my pc then delete them
Sent from my PC36100 using XDA App
Click to expand...
Click to collapse
Thanks
Smurflock soon...
Please don't revive old threads
Sent from my PC36100 using xda app-developers app
Delete Nandroid
teh roxxorz said:
Go to the sd card > open nandroid folder > open HT... > select the backup and delete it.
Click to expand...
Click to collapse
I have just recently rooted my intl' S3. I also did a nandroid backup to the phone twice and its taking up quite a bit of space. I have tried to locate the nandroid folder from what you posted and cannot find the nandroid folder. I am using astro folder right now but maybe switching to my file app later if this does not work. thanks in advance!
rcali001 said:
I have just recently rooted my intl' S3. I also did a nandroid backup to the phone twice and its taking up quite a bit of space. I have tried to locate the nandroid folder from what you posted and cannot find the nandroid folder. I am using astro folder right now but maybe switching to my file app later if this does not work. thanks in advance!
Click to expand...
Click to collapse
The folder should be named whatever recovery you are using. If you're using ClockworkMod, it may say 'clockworkmod' or 'cwm'. If you're using TWRP recovery, it should say 'twrp'. The backup files will be in that folder.
Sent from my EVO using xda premium
rcali001 said:
I have just recently rooted my intl' S3. I also did a nandroid backup to the phone twice and its taking up quite a bit of space. I have tried to locate the nandroid folder from what you posted and cannot find the nandroid folder. I am using astro folder right now but maybe switching to my file app later if this does not work. thanks in advance!
Click to expand...
Click to collapse
FinZ28 said:
The folder should be named whatever recovery you are using. If you're using ClockworkMod, it may say 'clockworkmod' or 'cwm'. If you're using TWRP recovery, it should say 'twrp'. The backup files will be in that folder.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Fln is correct, in that it'll be named whatever recovery you're using. Probably cwm, listed under clockworkmod, unless you explicitly changed to twrp. Just make sure you look on the device sdcard for the backups.
Delete Nandroid Back up
FinZ28 said:
The folder should be named whatever recovery you are using. If you're using ClockworkMod, it may say 'clockworkmod' or 'cwm'. If you're using TWRP recovery, it should say 'twrp'. The backup files will be in that folder.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I have looked into these folders and found nothing. I have used File manager and Astro File with no luck finding this folder. I went back into the Samsung tool kit to see if it will allow me to delete those files on the phone put no luck there either. thanks again for your assistance.
Delete Nandroid Backup
teh roxxorz said:
Fln is correct, in that it'll be named whatever recovery you're using. Probably cwm, listed under clockworkmod, unless you explicitly changed to twrp. Just make sure you look on the device sdcard for the backups.
Click to expand...
Click to collapse
thanks but I still cannot find the back up. I have used the samsung tool kit to create the nandroid back ups but now I dont know how to find it to delete. in the toolkit it does not provide an option to delete back ups from the phone unless I maybe misunderstanding the option available. i have installed rom manager and there i can create nandroid backups by going into the recovery page. I cannot flash roms because of the space limitations. I want to delete these back ups on the phone and just leave it on the computer so that i can start flashing roms thru rom manager.
I do not have an external SD card because its still in the mail. Thanks for all your help!
Delete Nandroid backups
FinZ28 said:
The folder should be named whatever recovery you are using. If you're using ClockworkMod, it may say 'clockworkmod' or 'cwm'. If you're using TWRP recovery, it should say 'twrp'. The backup files will be in that folder.
Sent from my EVO using xda premium
Click to expand...
Click to collapse
I just went into the CWM recovery mode and located the 2 nandroid backups I created but still could not delete any of them. All my file explorers does not have any nandroid folders and the CWM folder is still empty. Am I missing a particular setting that is not allowing me to see the backups?
rcali001 said:
I just went into the CWM recovery mode and located the 2 nandroid backups I created but still could not delete any of them. All my file explorers does not have any nandroid folders and the CWM folder is still empty. Am I missing a particular setting that is not allowing me to see the backups?
Click to expand...
Click to collapse
What file explorer are you using? I prefer es file explorer [free], make sure you set the root settings to r/w, for giggles. It should be listed as internal sd card or sdcard01, probably the prior; I forget what its called on tw. Just verify for clockworkmod folder, and should list your device id, and the backups inside.
Delete Nandroid Back up
teh roxxorz said:
What file explorer are you using? I prefer es file explorer [free], make sure you set the root settings to r/w, for giggles. It should be listed as internal sd card or sdcard01, probably the prior; I forget what its called on tw. Just verify for clockworkmod folder, and should list your device id, and the backups inside.
Click to expand...
Click to collapse
You are the MAN teh roxxorz, adjusted the root settings for es file explorer and was able to free up 4gb of space (nandroid BU) Thank you so much! Now I do not have to unroot, do a factory wipe just to delete excess backups!!

[Q] Backup one galaxy nexus to another?

Hi all:
I got a new galaxy nexus that i'd like to use as my main phone, but I don't want to go through the trouble of setting it up again, my current gnex is just perfectly setup. They both have the same version of android (4.0.4).
I was going to to a clockwork mod backup of the current phone, move it to the new phone and restore there, but I think I'll mess up the IMEI if I do that?
What additional steps do I need to carry out to preserve the phone's IMEI?
Thanks in advance.
pcbroch said:
Hi all:
I got a new galaxy nexus that i'd like to use as my main phone, but I don't want to go through the trouble of setting it up again, my current gnex is just perfectly setup. They both have the same version of android (4.0.4).
I was going to to a clockwork mod backup of the current phone, move it to the new phone and restore there, but I think I'll mess up the IMEI if I do that?
What additional steps do I need to carry out to preserve the phone's IMEI?
Thanks in advance.
Click to expand...
Click to collapse
If both have absolutely the same ROM, restore just the data backup, not the system backup, and you should be fine.
You can copy the IMEI on the original nexus to the other? Wouldnt that be best?
Is so follow these steps (it may look much, but i dont think it would take long if u want to keep your original imei number!
You must have:
-Root
-Root explorer for copying files to and from EFS folder
-Android SDK for the ADB tools or Terminal in your phone.
IMEI is stored in ".nv_data" file in ORIGINAL SHIPPED EFS folder too, so you just have to do these:
1) make a copy of your EFS folder to your sdcard using root explorer and then make a backup of the folder to your computer [ to have another copy if you had to format sd card sometime ]
2) delete the EFS folder (BE SURE YOU HAVE BACKED IT UP IN A SAFE PLACE AS SAID IN STEP 1) from the root of your phone using root explorer.
3) reset the phone, after that, go to the root, and you can see that the EFS folder is still there, don't make any mistake, this EFS folder is new and generated by the android OS.
4) go to EFS folder using root explorer, and delete "nv_data.bin", "nv_data.bin.md5".
5) go to your backed up EFS folder on your sdcard, copy the "imei" folder to the EFS folder at the root of your phone, then again go to the backed up EFS folder at yout sdcard and copy the " .nv_data " file to your EFS folder at the root of your phone using root explorer, NOTE: the dot in first of nv_data is not a mistake, copy the ".nv_data" file.
6) make another copy of the ".nv_data" file in EFS folder in your phone, so you would have 2 copies of ".nv_data" in EFS folder
7) rename one of ".nv_data" files to "nv_data.bin" and another one to "nv_data.bin.bak"
8) at your PC open CMD at the ADB tool path, or run Terminal at your phone enter these commands:
adb shell ( use this command of you use ADB, if you're using terminal, skip this line )
su ( ALLOW THE MESSAGE CAME AT YOUR PHONE's DISPLAY BY SUPERUSER PROGRAM )
chown 1001:radio /efs/nv_data.bin
9) reset your phone.... after that you have your original IMEI. you can check your IMEI by dialing *#06#.
Sent from my LT26i using xda premium
HinotoriBR said:
If both have absolutely the same ROM, restore just the data backup, not the system backup, and you should be fine.
Click to expand...
Click to collapse
Thanks for the suggestion. Unfortunately, it doesn't seem to work, my IMEI gets clobbered to some generic IMEI when I do this.
Off to trying try sikiduck's suggestion.
Sikiduck said:
IMEI is stored in ".nv_data" file in ORIGINAL SHIPPED EFS folder too, so you just have to do these
Click to expand...
Click to collapse
Stupid question... there is no efs folder. Do you mean /factory? There are nv_data files in /data/radio as well.
I'll play with these a bit and see.
You got root?
Sikiduck said:
You got root?
Click to expand...
Click to collapse
Yes, I do. I tried playing with the nv_data files, but I can't get the original IMEI to come back no matter what I do.

[Q] Clockworkmod backup wont delete

Hello,
I wanted to change my kernel today, back to stock, so I tried to recover a previous backup I had from clockworkmod. But when I tried to recover it said "Md5 mismatch". So I went to Youtube to figure out why this was, I followed the instructions but there is no file path for my backups. I tried all of the different file paths "/data" that was empty, "/mnt/shell/" and that was empty as well, as well as a few other file paths. I eventually gave up looking for the backup and decided to erase the backup I made. But when I tried to delete it it said "There was an error renaming your backup. Please choose a unique and valid file name for your backup." I tried renaming it something else but it still says the same thing. Anyone know what I can do here, I just want this file off of my phone. Any help would be much appreciated!
Extra info. When I made the backup I decided to rename it as "5-14(Before custom kernel) but when I got the prompt to change name, I tried changing it to a valid name. Now the name is stuck?
I've also included some pictures to help understand my situation.
Rename the folder download to backup or backups and check
Sent from my GT-S6102 using xda app-developers app
rahulsnair said:
Rename the folder download to backup or backups and check
Sent from my GT-S6102 using xda app-developers app
Click to expand...
Click to collapse
I renamed the folder on my PC and it worked fine. But nothing changed. I looked in ES file explorer and folder name is still "download" and wont change
May be some problem with rom manager.Try renaming using "root explorer". If you want to get your stock kernal you can flash it using kernal flasher.
Sent from my GT-S6102 using xda app-developers app
rename the folder that contains all backuped files (without space). put that folder in another folder named "backup". put backup folder in another folder named "clockworkmod". put clockworkmod folder in data/media using any root explorer (enable mount option in setting). try to restore
I used the root browser included in rom toolbox and that seemed to work. Thank you for your replies! I truly appreciate it
Sent from my Galaxy Nexus
Thank you for your reply. Luckily I didn't have to go through that process, it seemed to go away after using root browser. Thanks again!
Sent from my Galaxy Nexus
No solution found yet for this error.
Hi,
Yesterday i made a backup using ROM manager v5.5.3.7 (free)
For some reason i made a second backup by accident, and something went wrong.(probably lack of disk space)
I now have 2 backups, i would like to delete one. (since i'm running short on disk space)
Tried too delete it but i got the "There was an error renaming your backup. Please choose a unique and valid file name for your backup." error.
I tried everything provided in this thread without any succes. (sorry for replying on this kinda old thread)
Anyone has an idea how to help me out?
Running CM11 (nightly) with stock kernel CM.
Thx for any help!
Update:
Nevermind, went into recovery and deleted the corrupted one!

Limited access to file system?

I was side loading an app from my phone to my tablet, incompatible in market. Well when I tried to copy the obb into the obb folder on my tablet it said access restricted... can't get it to copy even with root explorer.
Sent from my Nexus 7 using xda premium
whoamanwtf said:
I was side loading an app from my phone to my tablet, incompatible in market. Well when I tried to copy the obb into the obb folder on my tablet it said access restricted... can't get it to copy even with root explorer.
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
Are you rooted...?
I noticed something similar to this as well. I used TiBu to restore the SwiftKey app and settings from my 1st Gen N7. After restoring it, the English language pack wouldn't download. After Googling around, they recommended deleting languagepacks.json from the sdcard/Android/files/com.whatever directory and even with root access and Root Explorer I wasn't able to delete the file. I had to do it through TWRP and even that didn't solve the issue. I had to format internal storage to solve my issue. Needless to say, I've been much more careful about using TiBu since then.
Sent from my SGH-T999 using xda premium
alicarbovader said:
Are you rooted...?
Click to expand...
Click to collapse
Yes, yes I am. But you should not need root for these folders anyways.
Sent from my Optimus G using xda premium
I got it working with a different file manager, but I am still unable to copy the Titanium backup folder to my computer via usb, or airdroid. Weird thing is I cannot even use a zip app to zip it up then move the zip.
whoamanwtf said:
I got it working with a different file manager, but I am still unable to copy the Titanium backup folder to my computer via usb, or airdroid. Weird thing is I cannot even use a zip app to zip it up then move the zip.
Click to expand...
Click to collapse
I actually ran into a similar issue on my N7v1 last night. I wanted to copy over all my apps and settings, so I attempted to copy the various files in my Titanium Backup backup folder. I tried using adb pull, but it failed to copy over any of the apks. The other files (properties, etc.) copied, but not the applications. This seemed very weird. Then things got weirder.
I looked at the ownership/permissions/etc. and they were all identical. I had read/write access to everything. So I tried tar'ing them all up on the device, as root, to copy over one big archive. No dice. Even tar couldn't read the files. I tried coping them to another directory, but that failed too. I could only move or delete them - not copy/read/etc.
I assumed maybe something was wrong with the backups, so I deleted them all and redid the TiBu backup. Problem persisted even on these new files I just made.
It reminded me of an issue I had with TWRP when Android changed around the file system location of the sdcard. When that happened, I couldn't access my nandroid backups either, or even delete them. I actually had to make a flashable zip to get rid of them.
So I had an idea. My current TiBu backup location was "/sdcard/TitaniumBackup". The /sdcard directory points to "/storage/emulated/0/". So I deleted all the backup files again, changed the TiBu backup location to the latter and ran the backup process again.
Voila. I could now read/copy/everything all the files in that same directory, albeit with a different path.
Anyway, I thought I would share this because it sounds like a similar issue. Try using the full path and not the /sdcard shortcut and see if that works.

EFS Partition Backup and More [All G2 Variants]

LG G2 EFS Backup Zip
Background
The G2 has no built in EFS backup partitions. EFS contains things like your MEID or IMEI... your data profiles.. radio settings. The EFS cannot be replaced... it is unique to your phone only... backing up your OWN EFS is highly recommended.
I have added EFS backup to the IOroot scripts so that everyone that roots will have a copy of their EFS partitions on the computer you run IOroot from. Regardless, this current thread will still be a good "heads up" and an alternative for those who insist on using other shady root methods or for those who just want another way to back things up. ​Backing up EFS
In TWRP, flash the LG_G2_Backup_EFS.zip attached in this thread. LG_G2_Backup_EFS.zip creates a flashable zip backup of your EFS in /sdcard/EFS_Backup/. Please check to make sure the backup zip worked and actually made a .zip file. Any issues please list what recovery and version you are using and please post the recovery.log.
Backup your efsbackupflashable.zip somewhere else besides your internal SD!!! Email.. cloud.. PC..
Restoring EFS
To restore your original EFS just boot into recovery and flash the efsbackupflashable.zip in your /sdcard/EFS_Backup folder.
If flashable zip wasn't created or to manually restore efs img files run the following commands using adb shell while in recovery:
dd if=/sdcard/EFS_Backup/efs1.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst1
dd if=/sdcard/EFS_Backup/efs2.img of=/dev/block/platform/msm_sdcc.1/by-name/modemst2
​
Backup ALL Partitions
Well almost all... I am attaching another zip which backs up most of your phones partitions.. excluding system/data/cache and some other useless partitions. Backing up all partitions isn't as important as backing up the EFS but it can't hurt. Never know when you may need it.. especially those who like to poke around with their phone and try new things.
Run the zip in recovery.. it will make backup .img files on your internal sdcard in a new folder named "backupz"... remember to copy your backups off the internal sdcard.​
Wow nice find and quick work! I wonder what the chances are of messing you current info up, so your backup would actually be necessary?
drkow19 said:
Wow nice find and quick work! I wonder what the chances are of messing you current info up, so your backup would actually be necessary?
Click to expand...
Click to collapse
Even if the chances are really small, it is always nice to have a backup.
Having to restore with QPST or other similar methods is not fun at all.
Thanks autoprime.
this was pretty fast considering i just saw you post this in irc
I'm on Verizon. It did make a folder but it was empty. No zip inside. Checked with es file explorer
bckrupps said:
I'm on Verizon. It did make a folder but it was empty. No zip inside. Checked with es file explorer
Click to expand...
Click to collapse
Same situation here.
bckrupps said:
I'm on Verizon. It did make a folder but it was empty. No zip inside. Checked with es file explorer
Click to expand...
Click to collapse
jasonsf said:
Same situation here.
Click to expand...
Click to collapse
hmm k... this happened on the LG OG as well... then some people had it working on CWM.. some people had to flash an AOSP rom first.. seems random. If someone can provide me the recovery.log after flashing the efs zip that would help. I'm going to bet its an issue with 7z packing the zip the new flashable zip for some reason or another.
i uploaded a new zip which will still try to make the flashable zip.. while also backing up the individual efs partitions.
redownload the new zip to backup efs img files.
To manually restore efs img files run the following commands using adb shell while in recovery:
dd if=/sdcard/EFS_Backup/efs1.img of=/dev/block/platform/msm_sdcc.1/by-name/modem_st1
dd if=/sdcard/EFS_Backup/efs2.img of=/dev/block/platform/msm_sdcc.1/by-name/modem_st2
autoprime said:
hmm k... this happened on the LG OG as well... then some people had it working on CWM.. some people had to flash an AOSP rom first.. seems random. If someone can provide me the recovery.log after flashing the efs zip that would help. I'm going to bet its an issue with 7z packing the zip the new flashable zip for some reason or another.
i uploaded a new zip which will still try to make the flashable zip.. while also backing up the individual efs partitions.
redownload the new zip to backup efs img files.
To manually restore efs img files run the following commands using adb shell while in recovery:
dd if=/sdcard/EFS_Backup/efs1.img of=/dev/block/platform/msm_sdcc.1/by-name/modem_st1
dd if=/sdcard/EFS_Backup/efs2.img of=/dev/block/platform/msm_sdcc.1/by-name/modem_st2
Click to expand...
Click to collapse
I have the recovery boot loop issue and was just using your zip to test out ADB Sideload in TWRP. I'll wait until my phone is working before I give your tool another try. Too many variables right now.
Jason
For w/e its worth this is not working on my att g2. There does not appear to be a /tmp folder
also on att the paths should be
/dev/block/platform/msm_sdcc.1/by-name/modemst1
/dev/block/platform/msm_sdcc.1/by-name/modemst2
(no "_")
jasonsf said:
Same situation here.
Click to expand...
Click to collapse
Same thing happens to me on VZW. Here is the recovery.log
http://pastebin.com/jhyHJ0Yz
jug6ernaut said:
For w/e its worth this is not working on my att g2. There does not appear to be a /tmp folder
also on att the paths should be
/dev/block/platform/msm_sdcc.1/by-name/modemst1
/dev/block/platform/msm_sdcc.1/by-name/modemst2
(no "_")
Click to expand...
Click to collapse
I can confirm this information on my AT&T G2. Maybe the script can be modified as such (unconfirmed):
Code:
# backup partitions
EFS_PREFIX=modem_st # Assume Verizon model (with underscore)
if [ -e /dev/block/platform/msm_sdcc.1/by-name/modemst1]; then # Use AT&T model nomenclature
EFS_PREFIX=modemst
fi
/sbin/busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/${EFS_PREFIX}1 of=/tmp/efs1.img;
/sbin/busybox dd if=/dev/block/platform/msm_sdcc.1/by-name/${EFS_PREFIX}2 of=/tmp/efs2.img;
jug6ernaut said:
For w/e its worth this is not working on my att g2. There does not appear to be a /tmp folder
also on att the paths should be
/dev/block/platform/msm_sdcc.1/by-name/modemst1
/dev/block/platform/msm_sdcc.1/by-name/modemst2
(no "_")
Click to expand...
Click to collapse
Ugh.. sorry about this. I must have been in HTC mode.. they use the "_" derpppp.
updated the zip.. see how that goes.
mine did not create a .zip file. On At&t, but still thanks a ton! will keep these two efs.img's stored on my dropbox so that I always have a backup.
Anyway to make these two into a flashable zip manually? I'm sure the code is in the script somewhere I just don't feel like looking haha
This now works for me autoprime. It created efs1.img, and efs2.img on VZW. Thx!
Got my two image files, both 3mb....thanks! I am on ATT.
im on verizon. works great. kudos
Confirm works on ATT.
Sent from my LG-D800 using Tapatalk 2
I have updated the zip in the OP... it now creates a proper flashable backup zip as well as teh 2 efs img files.
thanks to @jug6ernaut for testing all of my broken zips :highfive:
In TWRP the zip fails every time..... attached photo of error.
Sent from my VS980 4G using XDA Premium HD app
anyone else have the error that @mouf32 is having? I have some users on IRC that say it's working just fine. And there's been 50+ downloads with no other issues.
@mouf32 have you tried to redownload the file? maybe the zip got messed up or is corrupted?

Categories

Resources