Ubuntu 冻结并显示错误

Ubuntu 冻结并显示错误

我的 ubuntu 冻结了,然后显示黑屏并循环显示错误文本:

systemd-journald: failed to write entry, ignoring: read-only file system

ext4-fs error device nvme0n1p2 ext4_find_entry:1454: inode #22152700: comm gdm-seesion-wor: reading directory lblock 0

这是怎么回事?我该如何解决?

编辑:我也犯了错误Buffer I/0 error on device nvme0n1p2

编辑2:我能够启动一次,并用 测试磁盘的完整性smartmontools。结果是已通过(但问题仍然存在):

Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       KXG5AZNV512G TOSHIBA
Serial Number:                      385S1046T31Q
Firmware Version:                   5106AALA
PCI Vendor/Subsystem ID:            0x1179
IEEE OUI Identifier:                0x00080d
Total NVM Capacity:                 512.110.190.592 [512 GB]
Unallocated NVM Capacity:           0
Controller ID:                      0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          512.110.190.592 [512 GB]
Namespace 1 Formatted LBA Size:     512
Local Time is:                      Fri Jan 31 14:18:35 2020 CET
Firmware Updates (0x14):            2 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL *Other*
Optional NVM Commands (0x005f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat *Other*
Maximum Data Transfer Size:         512 Pages
Warning  Comp. Temp. Threshold:     78 Celsius
Critical Comp. Temp. Threshold:     82 Celsius
Namespace 1 Features (0x02):        NA_Fields

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     8.00W       -        -    0  0  0  0        0       0
 1 +     3.90W       -        -    1  1  1  1        0       0
 2 +     2.00W       -        -    2  2  2  2        0       0
 3 -   0.0500W       -        -    3  3  3  3     1500    1500
 4 -   0.0050W       -        -    4  4  4  4     6000   14000
 5 -   0.0030W       -        -    5  5  5  5    50000   80000

Supported LBA Sizes (NSID 0x1)
Id Fmt  Data  Metadt  Rel_Perf
 0 +     512       0         2
 1 -    4096       0         1

=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

SMART/Health Information (NVMe Log 0x02, NSID 0xffffffff)
Critical Warning:                   0x00
Temperature:                        30 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    3%
Data Units Read:                    5.734.991 [2,93 TB]
Data Units Written:                 6.433.509 [3,29 TB]
Host Read Commands:                 205.819.666
Host Write Commands:                76.731.654
Controller Busy Time:               437
Power Cycles:                       1.362
Power On Hours:                     2.989
Unsafe Shutdowns:                   274
Media and Data Integrity Errors:    0
Error Information Log Entries:      0
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               30 Celsius

Error Information (NVMe Log 0x01, max 128 entries)
No Errors Logged

编辑3:我的 SSD 似乎有问题。我联系了联想。他们会给我寄一个新的 SSD 来替换我损坏的 SSD。

很难相信这会发生就像这样,正如smartctl我所看到的,光盘上有Percentage Used: 3%,而笔记本电脑甚至不到 2 年。我可以做些什么来改善光盘的完整性?

编辑4:我成功启动了一次(尝试了 50 次),我能够将时间移回到较早的稳定状态,从那时起就不再出现错误(至少从现在开始),机器像新生儿一样运行!我成功更新了所有内容,这里也没有错误。我重置了我的 nvme 控制器并运行sudo fsck -f /dev/nvme0np2,其中所有测试都通过了(感谢 @xenoid 和 @heynnema)。我发现了这个关联,描述了我遇到的相同症状;解决方案是更换 SSD 和主板。不确定这是否也适用于我。

编辑5:新更新:首先我决定临时安装 Windows,但我想将其作为最后的手段,因为我必须重建整个 Linux 系统。所以我想我可以通过 Live USB 运行 Windows,但不行,这是不可能的,Windows 只允许完整安装(忽略困难的解决方法)。所以我想我也许可以使用 Wine 运行联想提供的实用程序软件,但这也没有按预期工作。使用 FreeDOS(如 YouTube 视频中所建议的)可能会起作用,但还没有尝试过,而且我也不确定在哪里可以找到我需要的东芝固件的简单 iso 文件。有趣的是,我没能在东芝固件网站上找到我的 NVMe 型号。然后我遇到了 fwupd。多么棒的工具,我就是喜欢它!联想甚至为我的 Thinkpad 型号 T480s 添加了对 LVFS 的支持!太棒了!但尚未为我的型号上传太多固件。但是我的东芝 SSD 已列入 LVFS,但新固件(如戴尔网站建议的那样)尚未上传。我联系了联想,以加快速度。我还联系了 Richard Hughes(LVFS 的创建者),寻求他的帮助。由于我的笔记本电脑目前没有受到该漏洞的影响,所以我会等待一段时间,也许会出现新的进展。所以,正如你所见,这对我来说是一次漫长的旅程,而且还在继续 :) 我非常感谢社区的所有帮助,如果你有更多的想法和想法,请告诉我!

编辑6:我尝试使用 FreeDOS Live USB 安装我在联想和戴尔主页上找到的固件 .exe 文件。但它们都向我提供了一条错误消息,内容cannot be executed in DOS类似。这可能是因为这些 .exe 文件是联想和戴尔提供的实用程序软件,带有 GUI 等。因此,要运行这些文件,我实际上需要在笔记本电脑上临时安装 Windows。

编辑7:联想给我发了一个新的 SSD,这次是三星的。我用有故障的 SSD 替换了它,安装了 Windows,使用 Lenovo Vantage 执行了固件更新(以防万一)。在安装 Ubuntu 19.10 之前,我希望所有固件都是最新的,它运行得非常好!尤其是内核内置的 Nvidia 驱动程序简直是一大福音,Ubuntu 18.04 中的旧消息错误都消失了。

答案1

您的 SSD 似乎出现故障。此smartmontools软件包将帮助您读取磁盘的 SMART 数据,可能使用实时 CD(因为在证明无罪之前,最好不要在 SSD 上写入数据,直到它完全备份)。

编辑:smartmontools 没有显示 SSD 存在任何问题。注意力转向控制器,然后转向大约同一时期的 Ubuntu 版本对控制器的支持。OP 尝试了 HWE(硬件启用)内核(接收新硬件更新的内核变体),它似乎已经解决了这个问题(并改善了总体体验)。

答案2

让我们首先检查/修复您的文件系统...

  • 启动至 Ubuntu Live DVD/USB
  • terminalCtrl+ Alt+打开窗口T
  • 类型sudo fdisk -l
  • 识别“Linux 文件系统”的 /dev/sdXX 设备名称
  • 输入sudo fsck -f /dev/sdXX,替换sdXX为您之前找到的数字
    • sudo fsck -f /dev/nvme0n1p2
  • fsck如果有错误则重复命令
  • 类型reboot

其次,确保使用关机菜单正确关闭系统,而不是通过按住电源按钮。

更新#1:

BIOS 中未显示 NVMe。怀疑 NVMe 驱动器、电缆/连接或固件存在缺陷。建议进行保修维修。

更新 #2:

东芝有一个适用于您的 NVMe 的固件更新,可以解决此问题。此外,根据您的型号 T480s,请查看联想网站以获取联想特定的 NVMe 固件更新。

戴尔网站联想网站

This package contains the firmware for Toshiba KXG5AZNV256G 256GB, KXG5AZNV512G 512GB, and KXG5AZNV1T02 1TB SED M.2 2280, Revision AADA5105. Storage firmware is a microcode that is embedded on storage devices such as hard drives or solid-state drives. The firmware manages the functionality of the devices. It fixes the issue where an error message occurs when the drive is not detected and improves the performance of the solid-state drive (SSD).
Get the latest driver
Please enter your product details to view the latest driver information for your system.
Fixes & Enhancements

Fixes:

- Fixed the issue where an error message occurs when the drive is not detected.

Enhancements:

- Improved the performance of the solid-state drive (SSD).

Version
Version AADA5105, A00
Category
Serial ATA
Release date
06 Aug 2019
Last Updated
01 Jan 2020

和...

在此处输入图片描述

相关内容