在我最近搬到新房子之前,我没有遇到任何启动问题。再次设置后,启动时出现以下信息:
您处于紧急模式。登录后,输入“journaltcl -xb”查看系统日志,输入“systemctrl restart”重新启动“systemctl default”或“exit”启动进入默认模式。
按 Enter 进行维护(或按 ctrl-d 继续):
按 ctrl-d 后,我可以看到驱动器 /dev/sdb1 未安装。该驱动器通常安装为 /home。如果我手动将其安装在那里并继续启动,一切都会正常运行。如果我随后重新启动计算机,我会遇到同样的问题。
当我运行“journalctl -xb”时,以下是与 sdb 相关的行(每个省略号代表跳过的文本):
...
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: [sdb] 4096-byte physical blocks
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: Attached scsi generic sg1 type 0
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: [sdb] Write Protect is off
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Dec 27 12:40:00 wonder kernel: sdb: sdb1
Dec 27 12:40:00 wonder kernel: sd 1:0:0:0: [sdb] Attached SCSI disk
...
Dec 27 12:40:02 wonder systemd-fsck[1030]: /dev/sdb1 contains a file system with errors, check forced.
...Dec 27 12:40:03 wonder systemd-fsck[1030]: /dev/sdb1: Inodes that were part of a corrupted orphan linked list found.
Dec 27 12:40:03 wonder systemd-fsck[1030]: /dev/sdb1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
Dec 27 12:40:03 wonder systemd-fsck[1030]: (i.e., without -a or -p options)
Dec 27 12:40:04 wonder systemd-fsck[1026]: fsck failed with exit status 4.
Dec 27 12:40:04 wonder systemd-fsck[1026]: Running request emergency.target/start/replace
...
Dec 27 12:52:51 wonder kernel: EXT4-fs (sdb1): error count since last fsck: 1
Dec 27 12:52:51 wonder kernel: EXT4-fs (sdb1): initial error at time 1701887868: ext4_orphan_get:1254
Dec 27 12:52:51 wonder kernel: EXT4-fs (sdb1): last error at time 1701887868: ext4_orphan_get:1254
...
任何人都可以建议/解释这是什么原因吗?这显然是在搬到新城镇时发生的。我没有进行太多物理检查,只是确认驱动器已正确固定并且仍然正确连接。任何帮助将非常感激。
答案1
我现在觉得问这个问题很愚蠢,因为现在可以按照日志中的建议在 /dev/sdb1 上运行 fsck 来解决这个问题。系统现在可以正常启动了。