How to run command from recovery mode ? [answered]
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!
The correct way to close an answered question is to mark the answer as accepted, click on "close" and select "the question was answered, an answer was accepted".
Sthocs ( 2016-07-22 18:19:50 +0200 )editThanks, done...
Schturman ( 2016-07-22 22:20:11 +0200 )edit