BackupTheEFS » History » Version 1
Denis 'GNUtoo' Carikli, 05/11/2019 07:36 PM
Move the instructions to backup the EFS in a separate page
| 1 | 1 | Denis 'GNUtoo' Carikli | h1. How to backup the EFS |
|---|---|---|---|
| 2 | |||
| 3 | h1. Introduction |
||
| 4 | |||
| 5 | Many devices supported by Replicant have a partition with the modem data (IMEI, etc) which is called EFS. |
||
| 6 | |||
| 7 | It's a good idea to do a backup of this partition, to make it easier to restore it if it becomes corrupted, as "it can sometimes happen with Replicant":https://redmine.replicant.us/issues/1869. |
||
| 8 | |||
| 9 | Only the following devices that are supported by Replicant have a modem data partition (EFS): |
||
| 10 | * Galaxy S 2 (I9100) |
||
| 11 | * Galaxy S 3 (I9300) |
||
| 12 | * Galaxy S 3 4G (I9305) |
||
| 13 | * Galaxy Nexus (I9250) |
||
| 14 | * Galaxy Note (N7000) |
||
| 15 | * Galaxy Note 2 (N7100) |
||
| 16 | * Galaxy Tab 2 7.0 (P3100) |
||
| 17 | * Galaxy Tab 2 10.1 (P5100) |
||
| 18 | * Galaxy Note 8.0 (N5100) |
||
| 19 | |||
| 20 | If you have a device that is not mentioned in the list above, it most probably doesn't have a modem data partition, so you don't need to make a backup. |
||
| 21 | |||
| 22 | h2. Instructions |
||
| 23 | |||
| 24 | First make sure that you have adb setup correctly and that it gives you a root shell on the device by following the wiki page that explains how to [[ADB|install adb and get a root shell]] on your device. |
||
| 25 | |||
| 26 | Once this is done you can then backup the EFS. |
||
| 27 | |||
| 28 | For the Galaxy SIII (I9300), run the following commands to do that: |
||
| 29 | <pre> |
||
| 30 | mkdir backup_efs |
||
| 31 | cd backup_efs |
||
| 32 | adb pull /efs/ efs |
||
| 33 | adb shell "cat /dev/block/platform/*/by-name/EFS" > EFS.img |
||
| 34 | </pre> |
||
| 35 | |||
| 36 | For the Galaxy Nexus (I9250), run the following commands to do that: |
||
| 37 | <pre> |
||
| 38 | mkdir backup_efs |
||
| 39 | cd backup_efs |
||
| 40 | adb pull /factory/ factory |
||
| 41 | adb shell "cat /dev/block/platform/*/*/by-name/efs" > efs.img |
||
| 42 | </pre> |
||
| 43 | |||
| 44 | |||
| 45 | This will create a copy of the contents of /efs in the backup_efs directory. It will also backup the full partition. |
||
| 46 | Keep these files around as a backup in case anything goes wrong. |