Linux-Kernel
刪除系統日誌中的 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.)
如果您沒有支持 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
重啟,瞧!— 不再嘗試載入模組並且錯誤消失了。