Btrfs corrupted on Jolla1

My update to (Rokua) failed on Jolla1. The btrfs seems to be corrupted:

root@Sailfish:~> btrfs fi show
ERROR: unable get label Inappropriate ioctl for device
Label: 'sailfish'  uuid: 4b9a7c4f-83c2-49be-b2b7-6fe67cc12eae
        Total devices 1 FS bytes used 6.65GiB
        devid    1 size 13.75GiB used 13.75GiB path /dev/mmcblk0p28

Btrfs v3.16
root@Sailfish:~> btrfs-balancer allocation
Failed to get allocation.
root@Sailfish:~> btrfs-balancer balance
Failed to get allocation.

I started recovery mode and did a
btrfs check --repair /dev/mmcblk0p28

But after a reboot I get the same error as before.
Is there a way to fix this without a factory reset?

1 Like

One thing you can try is to make an image of the partition with dd, copy that image onto a Linux computer, and try to repair the filesystem there using up-to-date btrfs utils.
Once repaired, copy it back and dd it again onto the Jolla partition.

1 Like

Thank you for the hint. But meanwhile I did a factory reset and a flashback through Sailfish OS history…

1 Like