How can I restore my EFS - LG G5 Questions & Answers

I am trying to make backup for EFS because i have htc 10 and i lost my knee so I want to make backup for EFS for lg g5
Sent from my LG-H850 using Tapatalk

backup modemst1 and modemst2
adb shell
su
dd if=/dev/block/bootdevice/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/bootdevice/by-name/modemst2 of=/sdcard/modemst2.img
but unless you mess with those 2 partitions on purpose.. the EFS should be safe. LG has changed their EFS protection for a few generations now.. it's not like the old lgog/g2/g3 etc.

autoprime said:
backup modemst1 and modemst2
adb shell
su
dd if=/dev/block/bootdevice/by-name/modemst1 of=/sdcard/modemst1.img
dd if=/dev/block/bootdevice/by-name/modemst2 of=/sdcard/modemst2.img
but unless you mess with those 2 partitions on purpose.. the EFS should be safe. LG has changed their EFS protection for a few generations now.. it's not like the old lgog/g2/g3 etc.
Click to expand...
Click to collapse
Do you mean I open command windows and i type this comment or I just use the phone
Sent from my LG-H850 using Tapatalk

azq8ooz said:
Do you mean I open command windows and i type this comment or I just use the phone
Sent from my LG-H850 using Tapatalk
Click to expand...
Click to collapse
USB Debugging in Developer Settings & ADB

Related

[Q] Is it necessary to backup the /efs folder?

I saw a thread on the international S2 forum regarding the importance of backing up the /efs folder on the phone so you don't lose the phones imei. I was wondering if this is still a necessity on our phone as well? And if so is there a different process to do it than what they used? They used terminal commands to back it up using terminal Emulator or ADB.
This is the thread:
http://forum.xda-developers.com/showthread.php?t=1068193
Its very important..ask me..i lost my IMEI and dint have a back up of the efs folder..had to go to the store and get a new phone under warranty.
Please make a backup of it.
After 2 months, someone just had EFS corruption last week - so yes, now I think it's a good idea to back it up.
IMO it would be a good idea to image the partition too...
Entropy512 said:
IMO it would be a good idea to image the partition too...
Click to expand...
Click to collapse
Can you verify the partition? Is 0p3 the right one, or is it 0p1? I coundn't find a definitive answer by searching.
For some reason I thought it was p3, but I was wrong. It's p1:
Code:
/dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,barrier=1,journal_checksum,data=ordered)
To back it up, get ADB working, and run the following using ADB while the phone is in CWM recovery and /sdcard is mounted (It often is not when you first enter CWM, mount it in the Mounts and Storage menu if it is not) (If you do this when the phone is running, you may back it up as it is getting written to, which could result in a bogus backup)
Code:
adb shell dd if=/dev/block/mmcblk0p1 of=/sdcard/efs_backup.img
Thanks for the verification entropy!
Sent from my SAMSUNG-SGH-I777 using XDA App
Entropy512 said:
Code:
/dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,barrier=1,journal_checksum,data=ordered)
Click to expand...
Click to collapse
I don't know much about linux commands. Is this how you verified the partition?
Also, am I correct in assuming that if the partition is backed up, it would not be necessary to back up the efs directory using a file explorer? Or is there a reason to have both?
You can also run the command from entropy in terminal emulator on your phone. Do su first to get root and enter the dd command to do your backup.
Sent from my SGH-I777
creepyncrawly said:
I don't know much about linux commands. Is this how you verified the partition?
Also, am I correct in assuming that if the partition is backed up, it would not be necessary to back up the efs directory using a file explorer? Or is there a reason to have both?
Click to expand...
Click to collapse
I verified it by executing the following command and looking at the output:
Code:
mount
It may be easier to restore a folder backup - not sure. A partition backup is the best way to guarantee you got EVERYTHING in that partition, byte-for-byte.
That's crazy. Cause I don't understand how you learn stuff like that but thanks(aka I'm gonna go do this since I mess with my phone alot.) I followed amk28's troubles. What's the difference between efs backup pro and this mehod? They both backup images
Entropy512 said:
For some reason I thought it was p3, but I was wrong. It's p1:
Code:
/dev/block/mmcblk0p1 on /efs type ext4 (rw,nosuid,nodev,noatime,barrier=1,journal_checksum,data=ordered)
To back it up, get ADB working, and run the following using ADB while the phone is in CWM recovery and /sdcard is mounted (It often is not when you first enter CWM, mount it in the Mounts and Storage menu if it is not) (If you do this when the phone is running, you may back it up as it is getting written to, which could result in a bogus backup)
Code:
adb shell dd if=/dev/block/mmcblk0p1 of=/sdcard/efs_backup.img
Click to expand...
Click to collapse
Sent from my SAMSUNG-SGH-I777 using XDA App

EFS and Galaxy SIII

Hello guys,
is there and efs folder we have to backup for gs3 also?
and if yes how we can backup it?
narcosis34 said:
Hello guys,
is there and efs folder we have to backup for gs3 also?
and if yes how we can backup it?
Click to expand...
Click to collapse
yes efs backup is a must. you can use apps like the one mentioned below
https://play.google.com/store/apps/details?id=net.hellcat.droiddev.ktool&feature=search_result
bala_gamer said:
yes efs backup is a must. you can use apps like the one mentioned below
https://play.google.com/store/apps/details?id=net.hellcat.droiddev.ktool&feature=search_result
Click to expand...
Click to collapse
Incompatible device.....
Skickat från min GT-I9300 via Tapatalk 2
This works.
sewe said:
Incompatible device.....
Skickat från min GT-I9300 via Tapatalk 2
Click to expand...
Click to collapse
hmm, my bad it said compatible in the store but not working
narcosis34 said:
Hello guys,
is there and efs folder we have to backup for gs3 also?
and if yes how we can backup it?
Click to expand...
Click to collapse
Yes.
You can use several methods, such as using ES File Explorer or using adb shell or the terminal, using commands such as (if you have busybox) cp, tar, etc.
A fast (although a bit more esoteric) way if you have rooted your phone and have adb + samsung drivers is given below. In short, your sdcard is partitioned and the /efs mount point corresponds to the partition p3 /dev/block/mmcblk0p3
You can then copy raw bytes
from your windows command line
Code:
C:\Users\Foo> adb shell
wait for the prompt [email protected]:/ #
Code:
[email protected]:/ # dd if=/dev/block/mmcblk0p3 of=/sdcard/efs.raw
Now you have a binary copy of the partition. To restore you would swap the if and of parameters
Footnotes:
dd is described here
http://en.wikipedia.org/wiki/Dd_(Unix)
You can check the partitions using "mount"
Code:
[email protected]:/ # mount
Code:
/dev/block/mmcblk0p9 /system ext4
/dev/block/mmcblk0p12 /data ext4 /dev/block/mmcblk0p8 /cache ext4
/dev/block/mmcblk0p3 /efs ext4
ty for your help guys!

Backup I920x EFS partition the easy way

I know there are loads of software which is hit and miss, and with the recent issue of some peeps having efs borked here is the easy way of backing up your partition.
You will need:
Root
Terminal Emulator (free from play)
Open terminal emulator and enter the following:
Code:
su
then press enter (accept su prompt if shown)
then type
Code:
dd if=/dev/block/mmcblk0p10 of=/sdcard/efs.img bs=4096
EFS.img should now be copied to your internal phone memory so best to copy to your pc
I have tested and it copies fine, using linux internals i have compared the files inside the img against those in efs via root explorer and all are present. I have not tried restoring as well ill wait until the disaster happens before tempting fait
To Restore
Copy the efs.img file to phone memory root not in a folder
Open Terminal Emulator
Enter
Code:
su
Then enter the following
Code:
dd if=/sdcard/efs.img of=/dev/block/mmcblk0p10 bs=4096
Reboot once done
AS ALWAYS
You do this at your own risk , dont blame me if the world blows up
Thanks a lot, very useful.:good:
But could you provide the procedure to restore .... just in case of ........
Very good, there should be an app for this.
Tilagoon said:
Thanks a lot, very useful.:good:
But could you provide the procedure to restore .... just in case of ........
Click to expand...
Click to collapse
Yeah i will add restore later today
Sent from my GT-I9205 using XDA Premium 4 mobile app
I did it with EFS Pro:
http://forum.xda-developers.com/showthread.php?t=1308546
treare said:
I did it with EFS Pro:
http://forum.xda-developers.com/showthread.php?t=1308546
Click to expand...
Click to collapse
You did a restore as well?
Kangburra said:
You did a restore as well?
Click to expand...
Click to collapse
Ahem... no
I did it on other phones but i only restore when needed
There's my more easy way,just use rooted explorer to copy the efs folder to your SD,and copy back when U needed.
Did someone have efs backup file for i9205? I really need it. I change IMEI number after restore it.. please..:crying::crying:

Where isBoot.img ?

I want to dump boot.img for flashing my kernel .
I've navigated in/dev/block/platform/sprd-sdhci.3/by-name folder
but there isn't boot.img . Have you given me advices? thanks you.
Is there a boot partition? It could also be named Kernel in some devices. You have to have root and use dd command.
adb shell
su
dd if=/.../by-name/boot (or kernel) of=/sdcard/boot.img
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
Is there a boot partition? It could also be named Kernel in some devices. You have to have root and use dd command.
adb shell
su
dd if=/.../by-name/boot (or kernel) of=/sdcard/boot.img
Click to expand...
Click to collapse
I have dumped it and see that its size is 15MB. But when i see boot.img in flashable rom files ,its size is only 5 MB.I'm wondering if that kernel file is also same as boot.img.
Nuttapat007 said:
I have dumped it and see that its size is 15MB. But when i see boot.img in flashable rom files ,its size is only 5 MB.I'm wondering if that kernel file is also same as boot.img.
Click to expand...
Click to collapse
When you dd it copies the entire partition size, including blank space. Totally normal. The new one wasn't done with dd command so the blank space isn't shown.
Sent from my KYOCERA-C6745 using Tapatalk
RealWelder said:
When you dd it copies the entire partition size, including blank space. Totally normal. The new one wasn't done with dd command so the blank space isn't shown.
Click to expand...
Click to collapse
Thanks you

Xiaomi note 9s efs backup from twrp

I need efs backup from recovery for note 9s
Efs erase from my phone ...
help
Read here https://nerdschalk.com/fix-empty-im...d-wifibluetooth-issues-restoring-twrp-backup/
euricoalex said:
Read here https://nerdschalk.com/fix-empty-im...d-wifibluetooth-issues-restoring-twrp-backup/
Click to expand...
Click to collapse
Don't work for me
I need backup from efs
amiralisaemi said:
Don't work for me
I need backup from efs
Click to expand...
Click to collapse
If you tell me how to edit my efs1.emmc.win to remove my IMEI i give you a copy
euricoalex said:
If you tell me how to edit my efs1.emmc.win to remove my IMEI i give you a copy
Click to expand...
Click to collapse
Why u want remove iemi !!!!!!
euricoalex said:
If you tell me how to edit my efs1.emmc.win to remove my IMEI i give you a copy
Click to expand...
Click to collapse
1.write recovery
2.boot to recovery
3.connect phone to pc and open cmd
write this codes
and efs is erased
your iemi sviemi is 0
adb shell
/ls -1 /dev/block/bootdevice/by-name
dd if=/dev/zero of=/dev/block/mmcblk0p46
dd if=/dev/zero of=/dev/block/mmcblk0p47
dd if=/dev/zero of=/dev/block/mmcblk0p45
dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst1
dd if=/dev/zero of=/dev/block/bootdevice/by-name/modemst2
dd if=/dev/zero of=/dev/block/bootdevice/by-name/fsg
dd if=/dev/zero of=/dev/block/bootdevice/by-name/fsc
After change iemi
My phone detected sim provider but no signal
Baseband is ok
Wifi is ok
Blue is ok
1.reset efs from twrp
2.Flash stock rom miui 11
3.Flash stock rom miui 12
4.Rewrite iemi
But no signal
Anyone have a solution for this ??

Categories

Resources