Project

General

Profile

Actions

BackupTheDataPartition » History » Revision 1

Revision 1/39 | Next »
Denis 'GNUtoo' Carikli, 10/27/2020 03:13 PM
Initial import


How to backup the data partition

/!\ Warning: Draft

This article is in draft form and is being written:
  • Everybody is welcome to contribute
  • Some things might not be accurate yet, so beware before using the information contained in it.

Also a big part of this article is copied from BackupTheEFS, it would be better to find a way to include content instead.

Introduction

Many Android devices have a data partition.

If is used for several distinct things that are often mounted in different locations at the same time (through fuse).

Mount points Content
/data/ Applications (internal) data
/sdcard
/storage/<UUID>
User accessible storage to store music, photos, etc
TODO:
  • Explain that the user accessible storage is not always present
  • Explain that it depends on the devices (GTA04)

Concerns about the application internal data

TODO:
  • Explain the issue about the Replicant version <-> application data

Howto

TODO:
  • Link to the EFS backup first part

Galaxy S III (GY-I9300)

First, you need to make sure that the data partition is not mounted.

To do that, you can run this command:

adb shell "umount -l /data" 

If the /data partition was mounted, it will unmount it. This will look like that:

$ adb shell "umount -l /data" 
$ 

If it was not mounted, it will instead show an error that we can ignore:

$ adb shell "umount -l /data" 
umount: /data: Invalid argument

Once this is taken care of, we can backup the partition with the following command:

adb pull /dev/block/platform/dw_mmc/by-name/USERDATA ./

See also

  • The BackupsResearch page has information on why the backup is done this way. It might also be useful to read and contribute to it if you intend to change the way the backups are done.

Updated by Denis 'GNUtoo' Carikli over 4 years ago · 1 revisions

Also available in: PDF HTML TXT