We have moved to a new Sailfish OS Forum. Please start new discussions there.
2

How to create a copy of all partitions (Cómo crear una copia de todas las particiones)

asked 2018-11-12 07:51:50 +0300

Kalatti gravatar image

updated 2020-05-31 00:23:04 +0300

How to create a copy of all partitions

This procedure I had to do with Fat32, since Ext4 and Btrfs failed me, when mounting a folder in the microSD. If you manage to run Ext4, you will save many problems. Probably, I had them because the copy I made was from Sailfish 1.0.5.

Previous steps, probably not necessary:

Start in your Jolla account on the phone.

Activate developer mode.

Previous steps required:

Turn off your phone.

Insert microSD of minimum 32 GB (with 16 GB may be very fair), format Ext4, preferably. In this guide I will explain the steps necessary for Fat32 and I will say what steps can be omitted if Ext4 is used.

Remove battery.

Access Recovery mode (Vol- and power key while inserting battery, no cables). When the phone vibrates, stop pressing the buttons.

If you do not get to the Recovery and only Fastboot, upgrade to a higher version (and then if you want to reset the phone to return to the previous version). With this the Recovery will be fixed. It worked for me.

Main steps:

I recommend using Linux for this, it will save a lot of time. Maybe when the guide is finished, add some steps of Windows.

We started the terminal.

sudo telnet 10.42.66.66

3 or 4 (Shell)

Enter

Y

mkdir -p / mnt / BackupCard

mount / dev / mmcblk1p1 / mnt / BackupCard /

Most important steps: A bit of information, there are 28 partitions (in addition to zram0, there may also be zram1, but this on my mobile was not found on my mobile). The most important and heaviest partition is mmcblk0p28. This partition takes about 15 GB, so if we use Fat32 we will have to split the copies. If you use Ext 4, eliminate 'bs = 1024 count = 3145728'. We start with this partition:

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28b.img bs=1024 count=3145728 skip=3145728

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28c.img bs=1024 count=3145728 skip=6291456

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28d.img bs=1024 count=3145728 skip=9437184

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28e.img bs=1024 count=3145728 skip=12582912

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28f.img bs=1024 count=3145728 skip=15728640

Img28f.img I was left empty, but I created the copy just in case. In the case that you have to make more copies of mmcblk0p28, add 3145728 to 'skip'. And change the name of the IMG, put the following letter (g, h, i, j ...).

Copies of the following partitions are much easier, since they do not take up much. Anyway, I always add a letter (a, b, c, d ...) to the name of each partition in case it takes 3 GB or more.

dd if=/dev/mmcblk0p1 of=/mnt/BackupCard/jolla-fullBackup-p1a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p2 of=/mnt/BackupCard/jolla-fullBackup-p2a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p3 of=/mnt/BackupCard/jolla-fullBackup-p3a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p4 of=/mnt/BackupCard/jolla-fullBackup-p4a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p5 of=/mnt/BackupCard/jolla-fullBackup-p5a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p6 of=/mnt/BackupCard/jolla-fullBackup-p6a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p7 of=/mnt/BackupCard/jolla-fullBackup-p7a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p8 of=/mnt/BackupCard/jolla-fullBackup-p8a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p9 of=/mnt/BackupCard/jolla-fullBackup-p9a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p10 of=/mnt/BackupCard/jolla-fullBackup-p10a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p11 of=/mnt/BackupCard/jolla-fullBackup-p11a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p12 of=/mnt/BackupCard/jolla-fullBackup-p12a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p13 of=/mnt/BackupCard/jolla-fullBackup-p13a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p14 of=/mnt/BackupCard/jolla-fullBackup-p14a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p15 of=/mnt/BackupCard/jolla-fullBackup-p15a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p16 of=/mnt/BackupCard/jolla-fullBackup-p16a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p17 of=/mnt/BackupCard/jolla-fullBackup-p17a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p18 of=/mnt/BackupCard/jolla-fullBackup-p18a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p19 of=/mnt/BackupCard/jolla-fullBackup-p19a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p20 of=/mnt/BackupCard/jolla-fullBackup-p20a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p21 of=/mnt/BackupCard/jolla-fullBackup-p21a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p22 of=/mnt/BackupCard/jolla-fullBackup-p22a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p23 of=/mnt/BackupCard/jolla-fullBackup-p23a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p24 of=/mnt/BackupCard/jolla-fullBackup-p24a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p25 of=/mnt/BackupCard/jolla-fullBackup-p25a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p26 of=/mnt/BackupCard/jolla-fullBackup-p26a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p27 of=/mnt/BackupCard/jolla-fullBackup-p27a.img bs=1024 count=3145728


Español:

Cómo crear una copia de todas las particiones

Este procedimiento lo tuve que realizar con Fat32, ya que Ext4 y Btrfs me fallaban, al montar una carpeta en la microSD. Si consigues hacer funcionar Ext4, te ahorrarás muchos problemas. Problablemente, yo los tuviera porque la copia que hice fue de Sailfish 1.0.5.

Pasos previos, probablemente no necesarios: Iniciar en tu cuenta Jolla en el teléfono. Activar modo desarrollador.

Pasos previos necesarios:

Apagar el teléfono.

Insertar microSD de mínimo 32 GB (con 16 GB quizá sea muy justo), formato Ext4, preferiblemente. En esta guía explicaré los pasos necesarios para Fat32 y diré qué pasos se pueden omitir si se usa Ext4.

Quitar batería.

Acceder al modo Recovery (Vol- y tecla de encendido mientras se inserta la batería, no cables). Cuando el teléfono vibre, dejar de presionar los botones. Si no consigues entrar al Recovery y solo a Fastboot, actualiza a una versión superior (y luego si quieres restablece el teléfono para volver a la versión anterior). Con esto el Recovery se habrá arreglado. A mí me funcionó.

Pasos principales:

Recomiendo usar Linux para esto, ahorrá bastante tiempo. Quizá cuando termine la guía, añada algunos pasos de Windows.

Iniciamos la terminal.

sudo telnet 10.42.66.66

3 o 4 (Shell)

Enter

y

mkdir -p /mnt/BackupCard

mount /dev/mmcblk1p1 /mnt/BackupCard/

Pasos más importantes: Un poco de información, hay 28 particiones (además de zram0, también puede haber zram1, pero esta en mi móvil no se encontró en mi móvil). La partición más importante y la más pesada es mmcblk0p28. Esta partición ocupa alrededor de 15 GB, así que si usamos Fat32 tendremos que dividir las copias. Si usáis Ext 4, eliminad 'bs=1024 count=3145728'. Empezamos con esta partición:

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28b.img bs=1024 count=3145728 skip=3145728

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28c.img bs=1024 count=3145728 skip=6291456

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28d.img bs=1024 count=3145728 skip=9437184

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28e.img bs=1024 count=3145728 skip=12582912

dd if=/dev/mmcblk0p28 of=/mnt/BackupCard/jolla-fullBackup-p28f.img bs=1024 count=3145728 skip=15728640

Img28f.img a mí se me quedó vacío, pero creé la copia por si acaso. En el caso de que tengáis que hacer más copias de mmcblk0p28, sumad 3145728 a 'skip'. Y cambiad el nombre del IMG, poned la siguiente letra (g, h, i, j...)

Las copias de las siguientes particiones son mucho más fáciles, ya que no ocupan mucho. De todas formas yo siempre le añado una letra (a, b, c, d...) al nombre de cada partición por si ocupa 3 GB o más.

dd if=/dev/mmcblk0p1 of=/mnt/BackupCard/jolla-fullBackup-p1a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p2 of=/mnt/BackupCard/jolla-fullBackup-p2a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p3 of=/mnt/BackupCard/jolla-fullBackup-p3a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p4 of=/mnt/BackupCard/jolla-fullBackup-p4a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p5 of=/mnt/BackupCard/jolla-fullBackup-p5a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p6 of=/mnt/BackupCard/jolla-fullBackup-p6a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p7 of=/mnt/BackupCard/jolla-fullBackup-p7a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p8 of=/mnt/BackupCard/jolla-fullBackup-p8a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p9 of=/mnt/BackupCard/jolla-fullBackup-p9a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p10 of=/mnt/BackupCard/jolla-fullBackup-p10a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p11 of=/mnt/BackupCard/jolla-fullBackup-p11a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p12 of=/mnt/BackupCard/jolla-fullBackup-p12a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p13 of=/mnt/BackupCard/jolla-fullBackup-p13a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p14 of=/mnt/BackupCard/jolla-fullBackup-p14a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p15 of=/mnt/BackupCard/jolla-fullBackup-p15a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p16 of=/mnt/BackupCard/jolla-fullBackup-p16a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p17 of=/mnt/BackupCard/jolla-fullBackup-p17a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p18 of=/mnt/BackupCard/jolla-fullBackup-p18a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p19 of=/mnt/BackupCard/jolla-fullBackup-p19a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p20 of=/mnt/BackupCard/jolla-fullBackup-p20a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p21 of=/mnt/BackupCard/jolla-fullBackup-p21a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p22 of=/mnt/BackupCard/jolla-fullBackup-p22a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p23 of=/mnt/BackupCard/jolla-fullBackup-p23a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p24 of=/mnt/BackupCard/jolla-fullBackup-p24a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p25 of=/mnt/BackupCard/jolla-fullBackup-p25a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p26 of=/mnt/BackupCard/jolla-fullBackup-p26a.img bs=1024 count=3145728

dd if=/dev/mmcblk0p27 of=/mnt/BackupCard/jolla-fullBackup-p27a.img bs=1024 count=3145728

edit retag flag offensive close delete

Comments

I still have to add some tips if you use Windows. Also how to assemble the partial copies of mmcblk0p28.


Todavía tengo que agregar algunos consejos si usas Windows. También cómo juntar las copias parciales de mmcblk0p28.

Kalatti ( 2018-11-12 07:52:49 +0300 )edit

I use Sailfish X connected in developer mode via ssh but get an error as follow: dd: can't open '/dev/mmcblk0p28': Permission denied That happens with all /dev/mmcblk0p partitions.

joksik37 ( 2020-04-28 21:49:02 +0300 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2018-11-12 08:00:00 +0300

Kalatti gravatar image

updated 2018-11-12 08:00:51 +0300

To explain how to collect the copies.

edit flag offensive delete publish link more
0

answered 2018-11-12 08:00:20 +0300

Kalatti gravatar image

updated 2018-11-12 08:17:58 +0300

To explain some things if Windows is used.

To (try to) follow this guide in Windows, we need:

PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

We can also activate the Windows Telnet Client: Control Panel \ Programs and Activate or deactivate the Windows features.

Connect the phone to the computer in Recovery mode.

Follow these tips to activate RNDIS: https://developer.toradex.com/knowledge-base/how-to-install-microsoft-rndis-driver-for-windows-7

Run PuTTY as Administrator.

Write in 'Host Name': 10.42.66.66

Check the 'Telnet' box

Open

With this we can follow the guide as in Linux, I think.


Para (intentar) seguir esta guía en Windows, necesitamos:

PuTTY: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

También podemos activar el Cliente Telnet de Windows: Panel de control\Programas y Activar o desactivar las carecterísticas de Windows.

Conectar en modo Recovery el teléfono al ordenador.

Seguir estos consejos para activar RNDIS: https://developer.toradex.com/knowledge-base/how-to-install-microsoft-rndis-driver-for- windows-7

Ejecutar PuTTY como Administrador.

Escribir en 'Host Name': 10.42.66.66

Marcar la casilla 'Telnet'

Open

Con esto ya podemos seguir la guía como en Linux, creo.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2018-11-12 07:51:50 +0300

Seen: 648 times

Last updated: May 31 '20