maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Oops! (https://talk.maemo.org/showthread.php?t=96762)

Markkyboy 2016-05-21 19:42

Oops!
 
Guys, wonder if anyone can help me...?

While connected via SSH and in the middle of editing a system file, I got distracted. Some 10 minutes later, my distraction has become a real problem - so much so, I needed to make a call!, I forgot I was SSh'd in and editing and unplugged the USB to use the phone.....and of course now all I have, is a solid white screen!, oh b*ll*cks!............

My question is, what are the chances of recovering the handset and keeping my data?, can I repair the file I was working on from within Recovery Tool....and info appreciated, before I do a full reset (not desirable in this case, as I actually have data I would like to keep!)

Ancelad 2016-05-21 20:32

Re: Oops!
 
That's why I use Wi-Fi connection :D

Obviously you can mount your FS from recovery and repair your file using VI-editor.

Markkyboy 2016-05-21 20:36

Re: Oops!
 
Quote:

Originally Posted by Ancelad (Post 1505910)
That's why I use Wi-Fi connection :D

Obviously you can mount your FS from recovery and repair your file using VI-editor.

Thank you Ancelad - I have just managed to recover my data from 'home', so that's good.

I don't have wifi, so I cannot ssh that way. My connection is a VPN via BT (Openzone), so I have no choice but to ssh via USB.

Okay, I don't know how to mount the file structure from recovery but I do know how to edit....which is exactly what I need to do!......

How do I mount the FS?

Edit: I'm in Recovery now, chosen option 4 (shell)
I have made a rootfs directory..........the few webpages I've found are either out of date or the commands to mount the fs don't work!...typical.

Ancelad 2016-05-21 20:50

Re: Oops!
 
Go into recovery and choose Shell, mount your FS
Code:

mount /dev/mmcblk0p28 /mnt
and edit your file
Code:

vi /mnt/path_to_file

Markkyboy 2016-05-21 21:21

Re: Oops!
 
Quote:

Originally Posted by Ancelad (Post 1505912)
Go into recovery and choose Shell, mount your FS
Code:

mount /dev/mmcblk0p28 /mnt
and edit your file
Code:

vi /mnt/path_to_file

Ahh, very cool, thank you!, you sir, are a STAR!!

My device is 'rockin n rollin' once more!

Thanks for your help,

Regards,


All times are GMT. The time now is 09:21.

vBulletin® Version 3.8.8