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

Restore contacts after Factory reset

asked 2017-01-23 11:13:49 +0200

4dmonster gravatar image

Hello, recently my Jolla C has gone into RECOVERY mode. I have managed to copy root and home partitions to SDcard and made factory reset. How can i restore contacts now? Where Contacts are stored?

edit retag flag offensive close delete

Comments

3

/home/nemo/.local/share/system/privileged/Contacts

coderus ( 2017-01-23 12:19:43 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2017-01-23 13:18:31 +0200

4dmonster gravatar image

Thank you coderus.

I have copied Contacts:

-----------------------------
     Jolla Recovery v2.0
-----------------------------
Welcome to the recovery tool!
The availabl`enter code here`e options are:
1) Reset device to factory state
2) Reboot device
3) Shell
4) Perform file system check
5) Run sshd
6) Exit
Type the number of the desired action and press [Enter]: 
3

If you continue, this may void your warranty. Are you really SURE? [y/N] Y
  2 logical volume(s) in volume group "sailfish" now active
[OK] No lockcode has been set. Proceeding...
/ # mount
rootfs on / type rootfs (rw)
none on /dev type devtmpfs (rw,relatime,size=961576k,nr_inodes=176661,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /tmp type tmpfs (rw,relatime,size=10240k)
/proc/sys/debug on /proc/sys/debug type debugfs (rw,relatime)
none on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sailfish/root on /rootfs type ext4 (rw,relatime,data=ordered)
/ # mkdir /mnt/h1
/ # mkdir /mnt/h2
/ # fdisk -l

Disk /dev/mmcblk0: 15.6 GB, 15634268160 bytes
256 heads, 63 sectors/track, 1893 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1               1      266306  2147483647+ ee EFI GPT

Disk /dev/mmcblk0rpmb: 4 MB, 4194304 bytes
4 heads, 16 sectors/track, 128 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Disk /dev/mmcblk0rpmb doesn't contain a valid partition table

Disk /dev/mmcblk1: 32.1 GB, 32161923072 bytes
255 heads, 63 sectors/track, 3910 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk1p1               1        3911    31408127+ ee EFI GPT

Disk /dev/dm-0: 2621 MB, 2621440000 bytes
255 heads, 63 sectors/track, 318 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 11.2 GB, 11261706240 bytes
255 heads, 63 sectors/track, 1369 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table
/ # mount -t ext4 /dev/mmcblk1p1 /mnt/h1
/ # mount -t ext4 /dev/sailfish/home /mnt/h2
/ # mount
rootfs on / type rootfs (rw)
none on /dev type devtmpfs (rw,relatime,size=961576k,nr_inodes=176661,mode=755)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
none on /tmp type tmpfs (rw,relatime,size=10240k)
/proc/sys/debug on /proc/sys/debug type debugfs (rw,relatime)
none on /var/run type tmpfs (rw,nosuid,noatime,size=256k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/sailfish/root on /rootfs type ext4 (rw,relatime,data=ordered)
/dev/mmcblk1p1 on /mnt/h1 type ext4 (rw,relatime,data=ordered)
/dev/sailfish/home on /mnt/h2 type ext4 (rw,relatime,data=ordered)
/ # cp -R /mnt/h1/home/nemo/.local/share/system/privileged/Contacts /mnt/h2/nemo/.local/share/system/privileged/
/ # chown -R nemo /mnt/h2/nemo/.local/share/system/privileged/Contacts/
/ # chgrp -R privileged /mnt/h2/nemo/.local/share/system/privileged/Contacts/
edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2017-01-23 11:13:49 +0200

Seen: 429 times

Last updated: Jan 23 '17