View Single Post
Posts: 74 | Thanked: 355 times | Joined on Aug 2017
#186
Originally Posted by oenone View Post
Thank you for the instructions.

I get this when running lvscan:

Code:
lvm> lvscan
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 0: Input/output error
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 4128768: Input/output error
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 4186112: Input/output error
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 4096: Input/output error
  ACTIVE            '/dev/sailfish/root' [2.44 GiB] inherit
  ACTIVE            '/dev/sailfish/home' [47.38 GiB] inherit
The Input/output errors, are they caused by anything in particular, and is there anything I can or should do about them?
Please don't just copy-paste any commands when you don't understand what they are doing. Especially don't just continue when they result in unexpected output, like the errors here!

And then. . .

Code:
resize2fs /dev/sailfish/home 11G
resize2fs 1.43.1 (08-Jun-2016)
Filesystem at /dev/sailfish/home is mounted on /home; on-line resizing required
resize2fs: On-line shrinking not supported
What is on-line resizing and how do I get past this issue of it not being supported?
Well, the device tells you in plaintext what's the problem:
"Filesystem at /dev/sailfish/home is mounted on /home; on-line resizing required"
Did you carried this out in recovery mode? Did you do something prior to this that left the partitions mounted?

Decided to carry on:

Code:
lvm> lvresize -L -4096M /dev/sailfish/home
  /dev/mmcblk0rpmb: read failed after 0 of 4096 at 0: Input/output error
  WARNING: Reducing active and open logical volume to 43.38 GiB
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce home? [y/n]: y
  Size of logical volume sailfish/home changed from 47.38 GiB (12128 extents) to 43.38 GiB (11104 extents).
  Logical volume home successfully resized
lvm> lvresize -l +100%FREE /dev/sailfish/root
  Size of logical volume sailfish/root changed from 2.44 GiB (625 extents) to 6.44 GiB (1649 extents).
  Logical volume root successfully resized
lvm> lvscan
  ACTIVE            '/dev/sailfish/root' [6.44 GiB] inherit
  ACTIVE            '/dev/sailfish/home' [43.38 GiB] inherit
Seems to have worked, or am I missing something?

EDIT: Yep, missing something. Device is stuck in a bootloop. This is the F5122.
You have obviously missed a lot of I/O errors which are never a good sign. And which probably is the reason you destroyed the LVMs.
Flash again and then make sure that the partitions are not mounted before trying to resize them.
 

The Following 6 Users Say Thank You to jenix For This Useful Post: