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

Is it possible to clone a jolla device with dd?

asked 2016-11-09 20:16:48 +0200

updated 2016-11-10 22:22:40 +0200

I have two identical sailfish OS devices (Intex Aqua Fish) and want to clone one to another.

My idear is to use dd to a computer, and copy the image to the target.

Do someone have some experiences on the topic? :)

Edit: dd /dev/mmcblk0 via recoverymode to a sdcard and/or laptop. Everything worked fine! Thx for the help.

edit retag flag offensive close delete

Comments

6

Note that you do not "clone" the device, but the partition (disk) only. And yes, its indeed possible.

tortoisedoc ( 2016-11-09 20:24:50 +0200 )edit

Jupp, thats clear. I technical just need the main partition and will use the same SD card. Should work, shouldn't it?

BlaeX ( 2016-11-09 20:37:31 +0200 )edit

3 Answers

Sort by » oldest newest most voted
6

answered 2016-11-09 20:51:55 +0200

chemist gravatar image

It has been done with Jolla1 from recovery mode - be aware that it is a very good idea, not to say a requirement, to have both phones on the same version before you transfer (upgrade both to the same release!) - and in general, if you break it, you may keep the pieces. Also be aware that you need to go the proper LVM2 way if you are dd'ing any less than the whole physical device.

edit flag offensive delete publish link more

Comments

thx, no game, no gain. will try it with the whole phone

BlaeX ( 2016-11-09 21:13:17 +0200 )edit

Just never touch the other partitions! And you should be good.

chemist ( 2016-11-09 22:06:59 +0200 )edit

atm i just dd /dev/mmcblk0 to a sdcard .... and will restore it from there to the second device.

BlaeX ( 2016-11-09 22:54:29 +0200 )edit

btw.: whats /dev/dm-0 and /dm-1 .. .around 2,3 gb and 11,2 gb=?

BlaeX ( 2016-11-09 22:56:47 +0200 )edit

That are kernel device mapper raw blockdevices, do not touch. Should be equivalent to /dev/mapper/ stuff - you may snapshot the lvm2 logical volumes instead of dd'ing the whole device (needs lvm2 installed).

chemist ( 2016-11-10 12:07:56 +0200 )edit
5

answered 2016-11-09 21:36:47 +0200

Carl gravatar image

Here are instructions that work fine for Jolla1: https://together.jolla.com/question/81832/full-phone-backup-guide/?answer=107185#post-id-107185

The partition layout of the Intex Aqua Fish might differ though(?) since it is not btrfs.

edit flag offensive delete publish link more
1

answered 2016-11-09 21:13:13 +0200

hyper_sonic gravatar image

updated 2016-11-09 21:14:25 +0200

After clone whole mtd device, my jolla do not detect sim card.

edit flag offensive delete publish link more

Comments

What is mtd?

chemist ( 2016-11-09 22:07:35 +0200 )edit
1

some modem partition with calibration data i guess.

coderus ( 2016-11-09 22:12:32 +0200 )edit
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2016-11-09 20:16:48 +0200

Seen: 759 times

Last updated: Nov 10 '16