How can I repair XperiaX filesystem from Rescue?

asked 2020-03-04 20:04:52 +0200

nas gravatar image

updated 2020-03-05 11:08:50 +0200

Hello guys,

After a pkcon update I had few problems (apps weren't starting etc) and I thought to make a reboot. And I stuck at SONY screen at start, after the "unlocked bootloader" warning.

I managed to enter rescue mode (fastboot boot hybris-recovery.img), I did "4) Perform file system check" with the following results:

  Type the number of the desired action and press [Enter]: 
4
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 0: Input/output error
  2 logical volume(s) in volume group "sailfish" now active
e2fsck 1.43.1 (08-Jun-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
root: 77977/153600 files (0.6% non-contiguous), 534139/640000 blocks
e2fsck 1.43.1 (08-Jun-2016)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
home: 205986/1077216 files (1.2% non-contiguous), 4534578/4785152 blocks
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 0: Input/output error
  0 logical volume(s) in volume group "sailfish" now active
Done
Press [Enter] to return to recovery menu...

It didn't seem to do any kind of repair after the error message, so I entered shell / ssh. From there I successfully mounted home partition which I got all the data via "cp -a" without any warning.

Now I would like to try any kind of filesystem check / repair. The Sailfish Image I downloaded 1.5 years ago is Sailfish 2.2.0.29 , I upgraded up to 3.0 ( can't remember exactly the version, for sure not the latest).

Does anyone know anything I could try? fsck seems to not work, and from lvm didn't find anything useful.

I would like to avoid the "Reset your device and spend half day on upgrades / updates / installs and restores"

edit retag flag offensive close delete

Comments

I don't know much about repairing filesystems, but I wondered if, (assuming your initial crash wasn't caused by corruption in system partition), you dumped system with dd command, then factory reset, then dd'd your system back, maybe would work...

Maybe some helpful info here - https://together.jolla.com/question/176959/complete-flashable-image-of-the-os-as-backup/

Levone1 ( 2020-03-06 02:38:06 +0200 )edit