Project

General

Profile

Actions

FixCorruptedUserDataPartition » History » Revision 4

« Previous | Revision 4/8 (diff) | Next »
Denis 'GNUtoo' Carikli, 04/27/2021 01:27 PM


FixCorruptedUserDataPartition

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).

Tutorial

Compatible devices

Only the following devices that are supported by Replicant are supported by this tutorial:

Setup ADB

Follow the instructions for 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 revoke these non-expiring permissions once the backup is complete.

Reboot into the recovery

To reboot in the recovery, you can follow the instructions in the RebootIntoTheRecovery wiki page.

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:

adb shell "realpath /dev/block/platform/dw_mmc/by-name/UMS" 

On my device it gave me the following result: /dev/block/mmcblk0p11

To download it you can use the following command:

adb pull /dev/block/mmcblk0p11 ./mmcblk0p11.img

Fix it

Put it back

Reboot

Updated by Denis 'GNUtoo' Carikli about 4 years ago · 4 revisions

Also available in: PDF HTML TXT