Delete a corrupted file

This is for my XA2 but it is probably similar with other devices.
To boot in recovery:

  • If you don’t have it, download the package suiting your phone here: https://shop.jolla.com/downloads/
  • Unzip it somewhere.
  • Power off your phone
  • Hold Volume-UP key while plugging your phone
  • On the PC, run:

fastboot boot /some_path_where_you_uncmpressed_your_download/hybris-recovery.img

  • When the phone has booted (tiny characters on the screen talking about telnet), on the PC, type:

telnet 10.42.66.66

Choice 3), “y”, input your lock code.

  • The shell now opens. Open the encrypted partition by typing:

cryptsetup luksOpen /dev/sailfish/home myhome

  • Input your lock code again
  • Type:

chroot /rootfs

  • Run fsck.ext4 with the options you like on /dev/mapper/myhome
  • By the way, perhaps try to remove the file you had problems with.
  • Exit the chroot with CTRL-D
  • Close the encrypted partition with:

cryptsetup luksClose myhome

CTRL-D to exit the shell and you are back to the main menu. Choice 2 and unplug to reboot the phone.

3 Likes