刪除系統日誌中的 ECC 警告

刪除系統日誌中的 ECC 警告

如何停用這些有關 ECC 的警告?我沒有 ECC 內存,因此也在 BIOS 中禁用了它,但它仍然列印它。

[    4.697057] EDAC amd64: Node 0: DRAM ECC disabled.
[    4.697061] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[    4.764909] EDAC amd64: Node 0: DRAM ECC disabled.
[    4.764911] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[    4.844621] EDAC amd64: Node 0: DRAM ECC disabled.
[    4.844624] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[    4.889875] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    4.892678] EDAC amd64: Node 0: DRAM ECC disabled.
[    4.892681] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[    4.913651] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[    4.936635] EDAC amd64: Node 0: DRAM ECC disabled.
[    4.936637] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[    4.949722] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    4.980600] EDAC amd64: Node 0: DRAM ECC disabled.
[    4.980602] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)
[    5.028880] EDAC amd64: Node 0: DRAM ECC disabled.
[    5.028883] EDAC amd64: ECC disabled in the BIOS or no ECC capability, module will not load.
                Either enable ECC checking or force module loading by setting 'ecc_enable_override'.
                (Note that use of the override may cause unknown side effects.)

答案1

如果您沒有支援 ECC 的內存,您可以嘗試尋找並隨後停用此垃圾郵件模組:

find /lib/modules/$(uname -r) -type f -name '*.ko' | grep _edac

將會有相當多的*_edac*模組,但在您的情況下,罪魁禍首模組是amd64_edac_mod(如錯誤訊息中所暗示的)。

然後你要做的就是將此模組放入黑名單檔案中:

echo "blacklist amd64_edac_mod" >> /etc/modprobe.d/blacklist.conf

重新啟動,瞧! — 不再嘗試載入模組並且錯誤消失。

相關內容