BackupTheDataPartition » History » Version 7
Denis 'GNUtoo' Carikli, 10/28/2020 05:07 PM
move infos about the data partition in a separate article
1 | 1 | Denis 'GNUtoo' Carikli | h1. How to backup the data partition |
---|---|---|---|
2 | |||
3 | {{toc}} |
||
4 | |||
5 | h2. /!\ Warning: Draft |
||
6 | |||
7 | This article is in draft form and is being written: |
||
8 | * Everybody is welcome to contribute |
||
9 | * Some things might not be accurate yet, so beware before using the information contained in it. |
||
10 | |||
11 | Also a big part of this article is copied from [[BackupTheEFS]], it would be better to find a way to include content instead. |
||
12 | |||
13 | 3 | Denis 'GNUtoo' Carikli | h2. What does the data partition contains? |
14 | 1 | Denis 'GNUtoo' Carikli | |
15 | 7 | Denis 'GNUtoo' Carikli | TODO: Point to the new article being written about it. |
16 | 1 | Denis 'GNUtoo' Carikli | |
17 | h2. Howto |
||
18 | |||
19 | TODO: |
||
20 | * Link to the EFS backup first part |
||
21 | |||
22 | h4. Galaxy S III (GY-I9300) |
||
23 | |||
24 | First, you need to make sure that the data partition is not mounted. |
||
25 | |||
26 | To do that, you can run this command: |
||
27 | <pre> |
||
28 | adb shell "umount -l /data" |
||
29 | </pre> |
||
30 | |||
31 | If the /data partition was mounted, it will unmount it. This will look like that: |
||
32 | <pre> |
||
33 | $ adb shell "umount -l /data" |
||
34 | $ |
||
35 | </pre> |
||
36 | |||
37 | If it was not mounted, it will instead show an error that we can ignore: |
||
38 | <pre> |
||
39 | $ adb shell "umount -l /data" |
||
40 | umount: /data: Invalid argument |
||
41 | </pre> |
||
42 | |||
43 | Once this is taken care of, we can backup the partition with the following command: |
||
44 | <pre> |
||
45 | adb pull /dev/block/platform/dw_mmc/by-name/USERDATA ./ |
||
46 | </pre> |
||
47 | |||
48 | h2. See also |
||
49 | |||
50 | * 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. |