[GUIDE] If your EFS is corrupt

Search This thread

bravomail

Senior Member
Jan 12, 2011
1,003
351
Detroit
When I first got SGS3 I made efs backup as suggested by xda. I didn't backup it as a folder, only as a dd block copy.
So if you are good today - make block copy of EFS and tar copy using adb:

adb shell
su
dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.sbn
cd /sdcard
tar cvf efs.tar /efs


Also there is a way of saving NVRam into recovery. Do it now if you haven't yet:
adb reboot nvbackup

Then if you still don't feel safe download QPST tools from IMEI thread and backup your NVRam to PC.

My earpiece died and I got a replacement SGS3.
Something (CWM6?) caused IMEI corruption. I didn't know that, so I tried reflashing modems and ROMs. I was trying everything to restore my connectivity. It somehow didn't help that there are seversal guides on how to do IMEI restore.
While I was waiting for another tool download I decided to restore efs from my previous SGS3 on to current SGS3 (I was at my wits end). And I didn't backup current EFS - my huge mistake! But I already almost give up on the phone at that point.
QPST+Peoplearmy tool was able to restore my IMEI. But EFS is now corrupt (why? I cannot even mount it!). And I can only use one modem - the one I used when backing up EFS (UCALG1 modem).
On the good side - after formatting EFS and making it clean, I can run CM10.1 without any issues. My serial number is 000000, but who cares. :)
Here's how to format EFS:

1. Reboot into recovery (CWM 5.8.0.5 touch is my preferred)
2. You should be able to see phone connected to PC in adb (recovery mode)
3. Issue following commands:
adb shell
mke2fs -T ext4 /dev/block/mmcblk0p11
mkdir /efs
mount -w -t ext4 /dev/block/mmcblk0p11 /efs

Lesson learned - try not to mess with EFS at all. Do IMEI restore using QPST and Peoplearmy. I'll keep you posted on EFS restore efforts.
 
  • Like
Reactions: HiKsFiles

HiKsFiles

Senior Member
Aug 7, 2010
537
158
Québec city
Assuming I made a block copy of my EFS partition using "dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.sbn".

How would I restore it should I corrupt my EFS?

Like this?

dd if=/sdcard/efs.sbn of=/dev/block/mmcblk0p11
 
  • Like
Reactions: Pop45398

d3athsd00r

Senior Member
Feb 24, 2011
1,529
274
Assuming I made a block copy of my EFS partition using "dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.sbn".

How would I restore it should I corrupt my EFS?

Like this?

dd if=/sdcard/efs.sbn of=/dev/block/mmcblk0p11

Correct.

Sent from my SAMSUNG-SGH-I747 using xda premium

---------- Post added at 03:19 PM ---------- Previous post was at 03:15 PM ----------

Or you can do the backup in one nice command:

dd if=/dev/block/mmcblk0p11 | gzip -9 > /sdcard/efs.gz

And to restore:

gunzip /sdcard/efs.gz - | dd of=/dev/block/mmcblk0p11


Oh, and you don't need to reformat the partition before restoring, that happens during the restore, because every bit gets overwritten.

Sent from my SAMSUNG-SGH-I747 using xda premium
 

Pop45398

Senior Member
Jun 21, 2010
231
115

Top Liked Posts

  • There are no posts matching your filters.
  • 3
    Assuming I made a block copy of my EFS partition using "dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.sbn".

    How would I restore it should I corrupt my EFS?

    Like this?

    dd if=/sdcard/efs.sbn of=/dev/block/mmcblk0p11

    Correct.

    Sent from my SAMSUNG-SGH-I747 using xda premium

    ---------- Post added at 03:19 PM ---------- Previous post was at 03:15 PM ----------

    Or you can do the backup in one nice command:

    dd if=/dev/block/mmcblk0p11 | gzip -9 > /sdcard/efs.gz

    And to restore:

    gunzip /sdcard/efs.gz - | dd of=/dev/block/mmcblk0p11


    Oh, and you don't need to reformat the partition before restoring, that happens during the restore, because every bit gets overwritten.

    Sent from my SAMSUNG-SGH-I747 using xda premium
    1
    When I first got SGS3 I made efs backup as suggested by xda. I didn't backup it as a folder, only as a dd block copy.
    So if you are good today - make block copy of EFS and tar copy using adb:

    adb shell
    su
    dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.sbn
    cd /sdcard
    tar cvf efs.tar /efs


    Also there is a way of saving NVRam into recovery. Do it now if you haven't yet:
    adb reboot nvbackup

    Then if you still don't feel safe download QPST tools from IMEI thread and backup your NVRam to PC.

    My earpiece died and I got a replacement SGS3.
    Something (CWM6?) caused IMEI corruption. I didn't know that, so I tried reflashing modems and ROMs. I was trying everything to restore my connectivity. It somehow didn't help that there are seversal guides on how to do IMEI restore.
    While I was waiting for another tool download I decided to restore efs from my previous SGS3 on to current SGS3 (I was at my wits end). And I didn't backup current EFS - my huge mistake! But I already almost give up on the phone at that point.
    QPST+Peoplearmy tool was able to restore my IMEI. But EFS is now corrupt (why? I cannot even mount it!). And I can only use one modem - the one I used when backing up EFS (UCALG1 modem).
    On the good side - after formatting EFS and making it clean, I can run CM10.1 without any issues. My serial number is 000000, but who cares. :)
    Here's how to format EFS:

    1. Reboot into recovery (CWM 5.8.0.5 touch is my preferred)
    2. You should be able to see phone connected to PC in adb (recovery mode)
    3. Issue following commands:
    adb shell
    mke2fs -T ext4 /dev/block/mmcblk0p11
    mkdir /efs
    mount -w -t ext4 /dev/block/mmcblk0p11 /efs

    Lesson learned - try not to mess with EFS at all. Do IMEI restore using QPST and Peoplearmy. I'll keep you posted on EFS restore efforts.
    1
    Assuming I made a block copy of my EFS partition using "dd if=/dev/block/mmcblk0p11 of=/sdcard/efs.sbn".

    How would I restore it should I corrupt my EFS?

    Like this?

    dd if=/sdcard/efs.sbn of=/dev/block/mmcblk0p11