I was wondering of anyone has any ideas on how to help me, I installed the mainline OS to my sdcard and it has now got corrupted so my phone will not boot, i get the error mounting boot failed and then it boots to recovery. , i can get recovery and fastboot access but just cant get the phone to boot I am guessing it because the bootloader cant access root in the SD card. any ideas would be much appreciated . thanks in advanced
Are you able to restore the original boot image using fastboot and do lvm vgrename sailfish-on-device sailfish from the recovery shell? That would return you to the original OS. If you want to continue using the OS on the SD card instead, I recommend that you insert the SD card into a separate computer, back up the files in the root partition and then reflash it using the flash-sdcard.sh from the installation package.
Two more questions: are you sure that it got corrupted? The SD card slot is a bit flaky sometimes, so it might just be a bad connection. Is the U-Boot logo still visible when you get the error or is it after the kernel has started?
I don’t see the U-Boot logo i see the c2 splash screen and it then goes to the error. I didn’t get a chance to have a look at it yesterday and will be trying to reseat the sdcard and the command above you sent and I will keep you updated, Once again thanks for your help.
If you don’t get the U-Boot logo, I would assume that the boot partition somehow got reflashed with the stock Sailfish OS boot image. Before resetting the SD card, can you try fastboot flash boot_a u-boot-2nd.img from the unpacked installation package, and then fastboot reboot to see if this was the case?
I just tried that command and U-Boot is back the boot process starts to boot and it reboots before it gets into mainline OS, what would be the best process to get back to the stock Sailfiah OS on the phone from this point
thank again you have been a massive help
fastboot flash boot_a hybris-boot.img
fastboot reboot
If you don’t have a hybris-boot.img file you can use the u-boot-2nd.img.bak saved by the installer.
Then remove the SD card and use telnet to connect to recovery shell
lvm vgrename sailfish-on-device sailfish
Finally, reboot into the original OS.
thank you so much that did the trick, really appreciate your help phone is now back up and running on original OS
was very impressed with this port last night. great job