突然,硬盘驱动器变为只读状态时,我通常使用Ubuntu 2015.04(带有ecryptfs加密的用户主目录)笔记本电脑。
我重新启动,现在卡在此了:
[ 0.703206] ACPI PCC probe failed.
starting version 219
error: /dev/sdb: No medium found
error: /dev/sdb: No medium found
Welcome to emergency mode! After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default or ^D to
try again to boot into default mode.
root@nico:~#
系统日志中有趣的部分:
-- Unit systemd-fsckd.service has begun starting up.
system-fsck[475]: /dev/sda1 contains a file system with errors, check forced.
kernel: ACPI warning: \_SB_.PCIO.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
kernel: ACPI warning: \_SB_.PCIO.PEG_.VID_._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20141107/nsarguments-95)
kernel: thinkpad_acpi: EC reports that Thermal Table has changed
system-fsck[475]: /dev/sda1: Inodes that were part of a corrupted orphan linked list found.
system-fsck[475]: /dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
system-fsck[475]: (i.e., without -a or -p options)
system-fsck[475]: fsck failed with error code 4.
system-fsck[475]: Running request emergency.target/start/replace
systemd[1]: system-fsck-root.service: main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start File System Check on Root Device
-- Subject: Unit system-fsck-root.service has failed
我不确定这是ACPI还是磁盘问题。我曾尝试将我的Lenovo Thinkpad T520更新到最新的BIOS,但它不能更好地启动。
如何解决此问题,或者如果磁盘快要死了,如何至少将数据从加密的主目录导出到外部驱动器?
fsck /dev/sda1
并以交互方式让它向您显示发现的错误,然后选择更正它们。一次不说一次就反复检查,看看有多少错误。如果它们似乎只用于那些不重要的文件(例如日志文件),请再次检查是。这可能会导致文件丢失,因此,如果您可以先复制分区再说一个USB设备,请先复制。