FixCorruptedUserDataPartition » History » Revision 4
Revision 3 (Denis 'GNUtoo' Carikli, 04/27/2021 01:26 PM) → Revision 4/8 (Denis 'GNUtoo' Carikli, 04/27/2021 01:27 PM)
h1. FixCorruptedUserDataPartition
h2. Warnings
This tutorial is a work in progress. Remove this warning when it will be tested (and somehow indicate on which devices it was tested on).
h2. Tutorial
h3. Compatible devices
Only the following devices that are supported by Replicant are supported by this tutorial:
* [[GalaxyS2I9100|Galaxy S II (GT-I9100)]]
h3. Setup ADB
Follow the instructions for [[ADB|setting up ADB on your computer]] so that you can access a root shell on your device.
*NOTE*: when prompted on your Replicant device, make sure that you check the box that says *Always allow from this computer* when you grant your computer USB debugging permissions. Otherwise, you will be unable to obtain root shell access on your Replicant device when you reboot it into the recovery OS to actually perform the backup.
*NOTE*: for security reasons, you may want to [[ADB#Revoking-all-computers-USB-debugging-permissions|revoke these non-expiring permissions]] once the backup is complete.
h3. Reboot into the recovery
To reboot in the recovery, you can follow the instructions in the [[RebootIntoTheRecovery]] wiki page.
h3. Get the user data partition
First we need to find the real path of the partition. On the Galaxy SII (GT-I9100) we can use the following command:
<pre>
adb shell "realpath /dev/block/platform/dw_mmc/by-name/UMS"
</pre>
On my device it gave me the following result: @/dev/block/mmcblk0p11@
To download it you can use the following command:
<pre>
adb pull /dev/block/mmcblk0p11 ./mmcblk0p11.img
</pre>
h3. Fix it
h3. Put it back
h3. Reboot