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

Copy media, pictures, video in recovery mode

asked 2014-03-18 15:30:01 +0300

sjpilis gravatar image

Hi,

Is there any guide how to copy media, pictures, video in recovery mode to your PC in shell?

Would be great to have.

edit retag flag offensive close delete

Comments

If you can achieve starting sshd from the shell in recovery mode, it might be possible to use scp to copy stuff.

Timo ( 2014-03-18 16:56:40 +0300 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2014-03-18 17:10:33 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2014-03-18 17:12:43 +0300

Milo gravatar image

This hasn't been tested with actual recovery mode, but I did something similar last night. This method requires you to have microSD card (and for me, it was formated as vfat). Once you've telnetted to your device:

mkdir /mnt/my_home

mkdir /mnt/sdcard

mount -t btrfs -o subvol=@home /dev/mmcblk0p28 /mnt/my_home # This is where all of your personal settings, videos/pictures/music files are located at. Including account details, phone books and text-messages.

mount /dev/mmcblk1p1 /mnt/sdcard

cp -a /mnt/my_home/nemo /mnt/sdcard/ # copies the whole nemo-folder to your sdcard..

I'll leave this as wiki, so this can be updated and fixed if necessary.

Another option is to chroot into the phone's system and send all contents of /home/nemo to your own machine using the scp-command. This is a bit more complicated though.

edit flag offensive delete publish link more

Comments

Hello,

Sounds good to copy to SD.

My problem is that I have my phone stuck in strange screen mode and have to restet it to facory settings after the copy of media.

Will the factory reset delete the SD card as well?

Another thing is that I dont have the developer mode on, can I SSH in to the phone anyway?

sjpilis ( 2014-03-18 17:31:10 +0300 )edit

Factory reset shouldn't delete anything from the SD card, and you can ensure this by removing it before doing factory reset.

By "recovery mode" you are talking about this, right?

Milo ( 2014-03-18 19:43:28 +0300 )edit

Yea I am talking about that. And removing the SD card did come up on my mind after i posted :)

Thanks for the support :)

If you want to reverse it after factory reset and copy back your pictures and files from SD to phone, how to do that?

sjpilis ( 2014-03-19 12:52:05 +0300 )edit

This is how I restored my files. Caution: it's not yet confirmed whether 1.0.3.8 /home/nemo has any notable file changes which can cause issues on 1.0.4.20. All I can say is that I haven't had any issues, yet.

  1. Enable developer mode and enable remote logins (and give yourself a password) and start fingerterm
  2. devel-su
  3. mkdir -p /mnt/sdcard # This is only because default mount point for your sdcard includes unique identifer
  4. mount /dev/mmcblk1p1 /mnt/sdcard # Same as above.
  5. mv /home/nemo /home/nemo_reseted
  6. cp /mnt/sdcard/nemo /home/
  7. reboot

After reboot your ambiences, system sounds, text-messages, call logs, account settings and all that should be just like they were before boot.

Milo ( 2014-03-20 12:48:03 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2014-03-18 15:30:01 +0300

Seen: 517 times

Last updated: Mar 18 '14