13
[Guide] Backup & Restore efs partition

  1. 647123
    Ice Cream Sandwich Mar 6, 2015

    647123 , Mar 6, 2015 :
    Hi,
    Efs partition contains: IMEI number, Mac address of Wireless devices, important files of internet and product code etc.
    It's used to protect our data.
    It is extremely imp. To backup efs partition if you are into flashing custom Roms.
    In this guide you can learn to backup EFS partition without toolkit or unofficial Twrp Recovery.
    1)Flash TWRP recovery(Official & latest).
    2) Backup--> nandroid Backup
    3) select system checkbox.
    4)Swipe to confirm.
    To check that it has backed up efs partition
    You can see in the recovery log of nandroid backup(Recovery.log file in TWRP backup folder of internal storage using file manager) this msg
    Code:
    /modem_st1 | /dev/block/mmcblk0p10 | Size: 1MB
       Flags: IsPresent
       Primary_Block_Device: /dev/block/mmcblk0p10
       Display_Name: modem_st1
       Storage_Name: modem_st1
       Backup_Path: /modem_st1
       Backup_Name: modem_st1
       Backup_Display_Name: modem_st1
       Storage_Path: /modem_st1
       Current_File_System: emmc
       Fstab_File_System: emmc
       Backup_Method: dd
    
    /modem_st2 | /dev/block/mmcblk0p11 | Size: 1MB
       Flags: IsPresent
       Primary_Block_Device: /dev/block/mmcblk0p11
       Display_Name: modem_st2
       Storage_Name: modem_st2
       Backup_Path: /modem_st2
       Backup_Name: modem_st2
       Backup_Display_Name: modem_st2
       Storage_Path: /modem_st2
       Current_File_System: emmc
       Fstab_File_System: emmc
       Backup_Method: dd

    You can restore efs using restoring nandroid from twrp.

    1)You can also back up using terminal from TWRP-->Advanced-->Terminal
    2) type following command
    Code:
    dd if=/dev/block/mmcblk0p10 of=/sdcard/modemst1.bin bs=512 (press Return)
    dd if=/dev/block/mmcblk0p11 of=/sdcard/modemst2.bin bs=512
    (press Return)
    Copy both file modemst1.bin & modemst2.bin to comp.
    2)type the following in fastboot
    Code:
    fastboot flash modemst1 modemst1.bin
    fastboot flash modemst2 modemst2.bin
    official TWRP is built by Dees_troy and posted here..(TWRP 2.8.1 or higher)
    Thanks. :)
     
    Last edited: Mar 7, 2015

    #1
  2. abhibhan89
    KitKat Mar 6, 2015

    abhibhan89 , Mar 6, 2015 :
    Thanks for the info.. :)
     

    #2
    Dhrumin226 and 647123 like this.
  3. abhibhan89
    KitKat Mar 6, 2015


    #3
    Dhrumin226 and GoonerBoy like this.
  4. navin_thomas
    Jelly Bean Mar 6, 2015


    #4
    Dhrumin226 likes this.
  5. 647123
    Ice Cream Sandwich Mar 6, 2015

    647123 , Mar 6, 2015 :
    Yep,
    @GoonerBoy
    You can also check the recovery log of the backup by bwosing to opening recovery.log from the backup folder.if you find modem_st1 and modem_st2 then tarp took efs partition backup too.
     

    #5
    GoonerBoy likes this.
  6. navin_thomas
    Jelly Bean Mar 6, 2015

    navin_thomas , Mar 6, 2015 :
    Didn't know about this. I was under the assumption that you need an unofficial TWRP to backup EFS. So I had backed it up the other way (long time ago).
     

    #6
    Dhrumin226 and 647123 like this.
  7. alemc2
    Honeycomb Mar 6, 2015

    alemc2 , Mar 6, 2015 :
    Well it's just a matter of building TWRP with some flags . As far as I remember Dees_troy never set those flags as I believe they had some trouble with it. Not sure if he build with efs now but he has made no explicit mention of it anywhere.

    Just to be on the same page official TWRP is built by Dees_troy and posted here... Not that it really matters but that is the official one and I hope that is what you are referring to @647123
     

    #7
  8. navin_thomas
    Jelly Bean Mar 6, 2015

    navin_thomas , Mar 6, 2015 :
    According to @abhibhan89 .... @ajeetone screwed up his EFS and later recovered it by restoring a NANDroid which was taken by an official TWRP.
     

    #8
  9. 647123
    Ice Cream Sandwich Mar 6, 2015

    647123 , Mar 6, 2015 :
    Yes I am talking about the twrp developed by dees_troy. Maybe he built with efs in 2.8.5 version.(Don't know about the older versions)
     

    #9
  10. 647123
    Ice Cream Sandwich Mar 7, 2015


    #10
  11. navin_thomas
    Jelly Bean Mar 7, 2015

    navin_thomas , Mar 7, 2015 :
    @647123 Mine is TWRP official 2.8.1.0 and here is a part of the recovery.log of a NANDroid I took this december.

    snip.PNG

    As you can see, the modemst files are also backed up. :)
     

    #11
    Dhrumin226, 647123 and abhibhan89 like this.
  12. 647123
    Ice Cream Sandwich Mar 7, 2015


    #12
  13. navin_thomas
    Jelly Bean Mar 7, 2015

    navin_thomas , Mar 7, 2015 :
    @ 2.8.1.0 is the version I use. That's why I am sure it takes EFS backup. It's best that you ask Dees_troy himself to find out the exact version from which EFS is taken (WITHOUT any bugs).

    @abhibhan89 has a TWRP 2.7 in one of his older xperia devices. He was supposed to check and tell me whether it takes EFS too.
     

    #13
    Dhrumin226 and 647123 like this.
  14. hetalk
    Mar 9, 2015

    hetalk , Mar 9, 2015 :
    I'm not sure. I've been on the unofficial for some time and it's not giving me any trouble, so no plans to go back to official one, for now.
     

    #14
    Dhrumin226 likes this.
  15. abhibhan89
    KitKat Mar 11, 2015

    abhibhan89 , Mar 11, 2015 :
    Sorry buddy, my old Xperia had 2.8.0.0 TWRP on it..
    And checked the logs for the same, it also backs up EFS by default..
     

    #15
    GoonerBoy likes this.
  16. hemanth97
    Ice Cream Sandwich May 19, 2015

    hemanth97 , May 19, 2015 :
    how big is that file(only system backup) for you? It's around 500MB for me. seemed pretty much weird when I tried putting it up in google drive and realised it's half a GB XD
     

    #16
  17. Funk Wizard
    Lollipop Moderator May 20, 2015

    Funk Wizard , May 20, 2015 :
    2 to 3 MB max
     

    #17
  18. mhamzaqayyum
    Cupcake Jun 14, 2015

    mhamzaqayyum , Jun 14, 2015 :
    Hi guys, I was hoping somebody could help me out.

    I recently somehow nuked my efs, but I did have a nandroid backup of my phone from about a month back, in which there was modem_st1 and modem st_2 file. So I tried restoring the backup in TWRP, but no luck. Still not cellular signals. IMEI is still there, though. The files in the Nandroid backup are .win, not .bin, so I can't flash them in fastboot.

    Any ideas on how to fix this? 647123
     
    Last edited: Jun 14, 2015

    #18
  19. navin_thomas
    Jelly Bean Jun 14, 2015

    navin_thomas , Jun 14, 2015 :
    Hmm.. which TWRP version?

    Ask here too
    http://forum.xda-developers.com/showthread.php?t=2766186
     

    #19
  20. mhamzaqayyum
    Cupcake Jun 14, 2015


    #20