首先,如果这个问题之前有人问过,我深表歉意。我以前从未遇到过这种情况,而且我很难诊断我的问题。
问题:
我正在运行带有 Luks 加密驱动器的 Ubuntu Server 16.04。硬件有点过时,但最近当我尝试启动服务器时,我得到了以下信息:
Please unlock disk sda5_crypt:
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
Reading all physical volumes. This may take a while...
Found volume group "*GROUP NAME*" using metadata type lvm2
/run/lvm/lvmetad.socket: connect failed: No such file or directory
WARNING: Failed to connect to lvmetad. Falling back to internal scanning.
2 logical volume(s) in volume group "*GROUP NAME*" now active
cryptsetup: sda5_crypt set up successfully
done.
Begin: Running /scripts/local-premount ... Btrfs loaded
Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.27.1
[/sbin/fsck.ext4 (1) -- /dev/mapper/*GROUP NAME*-root] fsck.ex4 -a -CO /dev/mapper/*GROUP NAME*-root
/dev/mapper/*GROUP NAME*-root: recovering journal
[ 79.848109] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
[ 79.849226] ata1.00: failed command: WRITE DMA EXT.
[ 84.849226] ata1: link is slow to respond, please be patient (ready=0)
[ 84.849226] ata1: SRST failed (errno=16)
[ 84.849226] ata1: soft resetting link
**REPEATS SEVERAL TIMES**
fsck.ext4: Attempt to read block from filesystem resulted in short read while trying to re-open /dev/mapper/*GROUP NAME*-root
/dev/mapper/*GROUP NAME*-root: *********** WARNING: Filesystem still has errors ***********
fsck exited with status code 12
在 fsck 失败后,我被转储到 initramfs。
我尝试过的:
我尝试查找fsck error code 12
并得到了很多带有不同错误代码的随机问题,但这些都并不能真正解决我的问题。
我还发现了几篇fsck
在解密和安装分区后在实时 CD 上运行的文章。通常我得到的输出没有fsck (2.27.1)
成功/失败/错误数字,驱动器仍然无法启动。我还尝试修复超级块,但在成功修复后,我得到的驱动器输出与上述相同。
我现在有点困惑,不知道该如何继续或如何解决这个问题。如能得到任何帮助我将不胜感激。