There is also this how-to, explaining how to connect via ssh: SSH How-to: type CLI terminal commands into your phone from your Linux computer
But the problem is that we cannot run fsck on a mounted filesystem.
And I know now way of unmounting it as the UI relies on users needing /home to be mounted.
So, the remaining solution is to use the recovery image, I guess.