日志文件填满硬盘 + 无法关闭计算机

日志文件填满硬盘 + 无法关闭计算机

我刚刚在新电脑上完成了 Ubuntu 16.04 的双启动安装。我的电脑是华硕 VivoBook X541UV-BH71-CB。安装过程中我遇到了一些问题,但大多数问题都通过更新和驱动程序安装解决了。然而,有些问题仍然困扰着我。

  1. 我的硬盘在一小时内就被日志文件填满

    oumar@oumar-ubuntu:/var/log$ ls -lhS
    total 203G
    rw-r----- 1 syslog            adm  102G déc 30 13:00 kern.log
    rw-r----- 1 syslog            adm   86G déc 30 06:58 syslog.1
    rw-r----- 1 syslog            adm   16G déc 30 13:00 syslog
    rw-r----- 1 syslog            adm  154M déc 29 06:13 syslog.2.gz
    rw-r--r-- 1 root              root  57K jui 19 16:42 bootstrap.log
    rw-r--r-- 1 root              root  47K déc 29 17:47 alternatives.log
    rw-r--r-- 1 root              root  46K déc 29 22:56 dpkg.log
    

我有一个 250G 的 Ubuntu 分区。以下是问题文件的最后几行

内核日志:

Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478653] pcieport 0000:00:1c.5: can't find device of ID00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478654] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478665] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478667] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478668] pcieport 0000:00:1c.5:    [ 0] Receiver Error        
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478673] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478680] pcieport 0000:00:1c.5: can't find device of ID00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478683] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478695] pcieport 0000:00:1c.5: can't find device of ID00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478696] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478708] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478710] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478711] pcieport 0000:00:1c.5:    [ 0] Receiver Error        
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478720] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478729] pcieport 0000:00:1c.5: can't find device of ID00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478731] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478743] pcieport 0000:00:1c.5: can't find device of ID00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478745] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 12:55:39 oumar-ubuntu kernel: [ 4008.478756] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)

系统日志.1:

Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019372] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019379] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019381] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019382] pcieport 0000:00:1c.5:    [ 0] Receiver Error         (First)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019406] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019413] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019415] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019417] pcieport 0000:00:1c.5:    [ 0] Receiver Error         (First)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019439] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019446] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019451] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019456] pcieport 0000:00:1c.5:    [ 0] Receiver Error         (First)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019471] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019480] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019487] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019490] pcieport 0000:00:1c.5:    [ 0] Receiver Error         (First)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019504] pcieport 0000:00:1c.5: AER: Corrected error received: id=00e5
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019510] pcieport 0000:00:1c.5: PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e5(Receiver ID)
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019512] pcieport 0000:00:1c.5:   device [8086:9d15] error status/mask=00000001/00002000
Dec 30 06:58:41 oumar-ubuntu kernel: [  591.019514] pcieport 0000:00:1c.5:    [ 0] Receiver Error         (First)

我猜这个问题只是其他问题的结果,这让我想到了第二个问题。

  1. 无法关闭计算机

每次我尝试正常关闭计算机时,它只会出现黑屏,我必须按下按钮才能关闭它。

  1. 计算机运行缓慢

尽管硬件很好,但运行 Ubuntu 时速度却出奇地慢。我有点担心,因为我安装 Ubuntu 的主要原因是为了做一些编程工作。

答案1

好的,我在这里找到了我的问题的答案:Nvidia GeForce 930M 驱动程序和 PCI 总线错误

解决方案是使用 pci=nomsi 进行引导。我不知道为什么这样做有效,但确实有效!

答案2

您可以编辑 /etc/syslog.conf(或 rsyslog.conf,具体取决于您安装的 syslog 程序)并控制实际记录或不记录某些文件的内容。这将有助于减缓日志文件填满的速度,以便您可以排除这些 PCIe 总线错误。

还有一件事,可能有帮助,也可能没帮助……您可以将日志文件移到一边,并创建一个指向另一个具有更多空间的分区的符号链接。然后日志将跟随符号链接并记录到另一个分区。我知道这是一种奇怪的解决方法,但它可以为您节省一些时间和麻烦的故障排除。

答案3

不用绕弯子,直接重新安装整个系统会更直接。我有一台类似的型号 [X541S],也有类似的问题。据我所知,这些华硕机器需要定期更新 BIOS。我建议去您所在地区的华硕网站免费下载 MB 大小的闪存映像,我在一小时内解决了我的问题,同时进行了全新的 Linux 安装,只需将您正确型号的固件下载到格式化的 USB 记忆棒,然后进入 BIOS 设置,选择 easy-flash,然后按照那里的说明操作……毫不费力

相关内容