Results 1 to 2 of 2

Thread: Possible EFS restoration method

777
  1. [translate]    #1
    Moderator
    Join Date
    Jun 2010
    Location
    Warsaw, Poland
    Posts
    2,828

    Default Possible EFS restoration method

    Sometimes the /efs partition can get corrupted by a bug in XSR to the point that it can't get mounted again.

    If you are unlucky enough for it to happen to you and lucky enough that it isn't corrupted too much, you might try the following method.

    Requirements: adb (on Windows or Linux), access to a PC with Linux installed, USB cable.

    First, get a dump of your EFS remains:

    1. Dump the contents of stl device containing the EFS partition: (in adb shell, in recovery, assuming that your SD card is mounted)
      Code:
      cat /dev/stl10 > /sdcard/efs.stl
    2. Copy the file to your PC, for example by using adb pull: (after leaving adb shell)
      Code:
      adb pull /sdcard/efs.stl
    3. Mount the partition under Linux as VFAT: (as root or using sudo, assuming that the directory /mnt/efs exists)
      Code:
      mount -o loop efs.stl /mnt/efs

    If it succeeded to this point, you are lucky. If it failed, it isn't lost yet, a FAT recovery application can be used to try to recover the contents with some probability. However it's beyond the scope of this guide.

    If it mounted successfully:

    1. Copy all the contents of /mnt/efs to a safe place: (no longer as root, assuming you have a directory called efs_backup in your home directory)
      Code:
      cp -R /mnt/efs/* ~/efs_backup
    2. Unmount the file: (as root or using sudo)
      Code:
      umount /mnt/efs

    Now when you have your nv_data.bin back, you can use Qbanin's instruction (COMPLETE IMEI RESTORE HOW-TO) to put it back into your phone or my simplified one, which might not work in some cases:

    1. Reformat your EFS partition (from adb shell, in recovery):
      Code:
      stl.format /dev/bml10
    2. Reboot your phone into recovery again. (after leaving adb shell)
      Code:
      adb reboot recovery
    3. Put the recovered EFS contents back:
      Code:
      adb push ~/efs_backup /efs
    4. Reboot your phone into Android and check your IMEI

    Of course, it might not work at this stage, due to nv_data corrupted as well. In some cases, however, you might be lucky enough to have your IMEI back.
    Last edited by tom3q; 09-07-2011 at 10:45 PM.

  2. [translate]    #2
    Moderator
    Join Date
    Jun 2010
    Location
    Warsaw, Poland
    Posts
    2,828

    Default

    Could anyone translate this and put inside local subforums? Especially polish one...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •