PCIe Bus Error: severity=Corrected, type=Physical Layer,
Step-By-Step How to Fix
For the impatient the solution is to remove the files clogging your hardrive and then edit the grub file to add the
pci-nomsi parameter to the
GRUB_CMDLINE_LINUX_DEFAULT directive. Here’s how you do this:
- Remove the logs and their archives that are using up drive space*:
$ cd /var && sudo rm -vf syslog* && rm -vf kern*Note: The above command executes a verbose(v) and forced(f) delete on the archived log files. But, in the sys-admin community it’s generally agreed that it’s better to empty live log files than to delete them. So,
$ sudo cat /dev/null > /var/log/kern.logand
$ cat /dev/null > /var/log/syslogare best practices.
- Edit the grub file and add the
$ sudo nano /etc/default/grubNow, find this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash amdgpu.vm_fragment_size=9"And change it to this line:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=nomsi amdgpu.vm_fragment_size=9"
- Save and Exit nano. Then update grub:
$ sudo update-grub
We noticed this error on our second mining rig which runs on an Asus Prime Z270-A on an Intel Celeron G3930 processor. You’ll want to get this error fixed as it will quickly consume hard drive space. The space will be consumed with multi-gigabyte logs replete with these error messages.
For the curious, feel free explore the theoretical causes for this error on the linux kernel mail-list board. One theory is this error is caused by a hardware issue between the wireless adapter and a PCI-E port.
Your kern.log and syslog (and their respective archives) will be filled with “Error Spam”. The kern.log is written to during system boot. The syslog is continuously written to and thus will consume the most space. The error messages will contain text akin to PCIe Bus Error: severity=Corrected, type=Physical Layer, id=00e6(Receiver ID).
Pinpoint which files are consuming the most hard drive space via:
$ sudo du -cha --max-depth=1 / | grep -E "^[0-9\.]*[MG]" | sort -rhWhere: -h: output human readable numbers (e.g., 2K 1G)
-r: reverse sort (largest to smallest)