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

Revision history [back]

click to hide/show revision 1
initial version

posted 2016-07-22 16:15:02 +0200

[question] Need help! How to run command from recovery mode ?

Hi.
After updating to 2.0.3.11 I started to install patches, it was no errors at all. But probably one of lockscreen patches did something and after lipstick restart I see only clean and beautiful ambience image :D No lockcode, no status bar, nothing. I can't access to the phone and sadly to say wifi connection was disabled before (can't ssh and restore changes).
I successfully connected to Recovery (0.3.1), choose option 4 to start shell, but now I probably need to mount fs because when I run command to revert patch, I get this message:

[OK] Code accepted.
/ # /usr/share/unapply-all-patches.sh
sh: /usr/share/unapply-all-patches.sh: not found
/ #

after /usr it can't auto-complete other folders (/share etc..). It doesn't see nothing, except:

/ # ls -l /usr/
drwxr-xr-x    2 0        0                0 Jun 16 09:12 bin
drwxr-xr-x    2 0        0                0 Jun 16 09:12 lib
drwxr-xr-x    2 0        0                0 Jun 16 09:12 sbin
/ #


PLEASE, can someone explain me what I need write after access, that will allow me to run my command ?
Thanks

[question] Need help! How to run command from recovery mode ?

Hi.
After updating to 2.0.3.11 I started to install patches, it was no errors at all. But probably one of lockscreen patches did something and after lipstick restart I see only clean and beautiful ambience image :D No lockcode, no status bar, nothing. I can't access to the phone and sadly to say wifi connection was disabled before (can't ssh and restore changes).
I successfully connected to Recovery (0.3.1), choose option 4 to start shell, but now I probably need to mount fs because when I run command to revert patch, I get this message:

[OK] Code accepted.
/ # /usr/share/unapply-all-patches.sh
sh: /usr/share/unapply-all-patches.sh: not found
/ #

after /usr it can't auto-complete other folders (/share etc..). It doesn't see nothing, except:

/ # ls -l /usr/
drwxr-xr-x    2 0        0                0 Jun 16 09:12 bin
drwxr-xr-x    2 0        0                0 Jun 16 09:12 lib
drwxr-xr-x    2 0        0                0 Jun 16 09:12 sbin
/ #


PLEASE, can someone explain me what I need write after access, that will allow me to run my command ?
Thanks

Ok. Here I found how to mount it (https://together.jolla.com/question/22079/howto-all-computer-users-recover-or-reset-a-device-that-is-stuck-in-boot-loop/?sort=votes&page=1).

 mkdir /mnt/rootfs
 mkdir /mnt/sd
 mount /dev/mmcblk0p28 /mnt/rootfs
 mount /dev/mmcblk1p1 /mnt/sd

Will try now to resolve my problem. But it not mentioned if I need to umount when I'll done ? if yes, what exactly the command ?

[question] Need help! [answered] How to run command from recovery mode ?

Hi.
After updating to 2.0.3.11 I started to install patches, it was no errors at all. But probably one of lockscreen patches did something and after lipstick restart I see only clean and beautiful ambience image :D No lockcode, no status bar, nothing. I can't access to the phone and sadly to say wifi connection was disabled before (can't ssh and restore changes).
I successfully connected to Recovery (0.3.1), choose option 4 to start shell, but now I probably need to mount fs because when I run command to revert patch, I get this message:

[OK] Code accepted.
/ # /usr/share/unapply-all-patches.sh
sh: /usr/share/unapply-all-patches.sh: not found
/ #

after /usr it can't auto-complete other folders (/share etc..). It doesn't see nothing, except:

/ # ls -l /usr/
drwxr-xr-x    2 0        0                0 Jun 16 09:12 bin
drwxr-xr-x    2 0        0                0 Jun 16 09:12 lib
drwxr-xr-x    2 0        0                0 Jun 16 09:12 sbin
/ #


PLEASE, can someone explain me what I need write after access, that will allow me to run my command ?
Thanks

Ok. Here I found how to mount it (https://together.jolla.com/question/22079/howto-all-computer-users-recover-or-reset-a-device-that-is-stuck-in-boot-loop/?sort=votes&page=1).

 mkdir /mnt/rootfs
 mkdir /mnt/sd
 mount /dev/mmcblk0p28 /mnt/rootfs
 mount /dev/mmcblk1p1 /mnt/sd

Will try now to resolve my problem. But it not mentioned if I need to To unmount, just run this commands:

umount when I'll done ? if yes, what exactly the command ?/mnt/rootfs
umount /mnt/sd

Thanks to @till :) Problem solved!

[answered] How to run command from recovery mode ?

Hi.
After updating to 2.0.3.11 I started to install patches, it was no errors at all. But probably one of lockscreen patches did something and after lipstick restart I see only clean and beautiful ambience image :D No lockcode, no status bar, nothing. I can't access to the phone and sadly to say wifi connection was disabled before (can't ssh and restore changes).
I successfully connected to Recovery (0.3.1), choose option 4 to start shell, but now I probably need to mount fs because when I run command to revert patch, I get this message:

[OK] Code accepted.
/ # /usr/share/unapply-all-patches.sh
sh: /usr/share/unapply-all-patches.sh: not found
/ #

after /usr it can't auto-complete other folders (/share etc..). It doesn't see nothing, except:

/ # ls -l /usr/
drwxr-xr-x    2 0        0                0 Jun 16 09:12 bin
drwxr-xr-x    2 0        0                0 Jun 16 09:12 lib
drwxr-xr-x    2 0        0                0 Jun 16 09:12 sbin
/ #


PLEASE, can someone explain me what I need write after access, that will allow me to run my command ?
Thanks

Ok. Here I found how to mount it (https://together.jolla.com/question/22079/howto-all-computer-users-recover-or-reset-a-device-that-is-stuck-in-boot-loop/?sort=votes&page=1).

 mkdir /mnt/rootfs
 mkdir /mnt/sd
 mount /dev/mmcblk0p28 /mnt/rootfs
 mount /dev/mmcblk1p1 /mnt/sd

Now chroot to this:

chroot /mnt/rootfs

now you should "be" in your normal sailfish file system and should be able to run your script
To unmount, just run this commands:

umount /mnt/rootfs
umount /mnt/sd

Thanks to @till :) :)
Problem solved!

[answered] How to run command from recovery mode ?

Hi.
After updating to 2.0.3.11 I started to install patches, it was no errors at all. But probably one of lockscreen patches did something and after lipstick restart I see only clean and beautiful ambience image :D No lockcode, no status bar, nothing. I can't access to the phone and sadly to say wifi connection was disabled before (can't ssh and restore changes).
I successfully connected to Recovery (0.3.1), choose option 4 to start shell, but now I probably need to mount fs because when I run command to revert patch, I get this message:

[OK] Code accepted.
/ # /usr/share/unapply-all-patches.sh
sh: /usr/share/unapply-all-patches.sh: not found
/ #

after /usr it can't auto-complete other folders (/share etc..). It doesn't see nothing, except:

/ # ls -l /usr/
drwxr-xr-x    2 0        0                0 Jun 16 09:12 bin
drwxr-xr-x    2 0        0                0 Jun 16 09:12 lib
drwxr-xr-x    2 0        0                0 Jun 16 09:12 sbin
/ #


PLEASE, can someone explain me what I need write after access, that will allow me to run my command ?
Thanks

Ok. Here I found how to mount it (https://together.jolla.com/question/22079/howto-all-computer-users-recover-or-reset-a-device-that-is-stuck-in-boot-loop/?sort=votes&page=1).

 mkdir /mnt/rootfs
 mkdir /mnt/sd
 mount /dev/mmcblk0p28 /mnt/rootfs
 mount /dev/mmcblk1p1 /mnt/sd

Now chroot to this:

chroot /mnt/rootfs

now you should "be" in your normal sailfish file system and should be able to run your script
To unmount, just run this commands:

umount /mnt/rootfs
umount /mnt/sd

Thanks to @till :)
Problem solved!