while back I had a problem with my Linux Mint.
Programmes took an age to shut down, sometimes taking several minutes. It wasn’t confined to one programme. Any programme seemed to be affected. Also I would occasionally get a screen full of code on shut down [or boot, I can’t remember!] that flew past too quickly to read.
Then I started getting messages that my disk was full. This was worrying as I have a 1Tb HDD with windows/Linux dual boot. The Linux root partition was 50Gb and the home partition was 500Gb, both being big enough to avoid problems. Or so I thought. It was the root partition that was nearly full.
A quick check with Disk Usage Analyzer showed that the problem was log files. Tons of ’em. I deleted them [carefully].
Next I took a photo of the scrolling text. That at least allowed me to read some of it.
I selected a likely looking piece from one of the lines – “PCIe bus error severity=corrected” – and did a search on the web. I quickly found a solution.
Edit the file “/etc/default/grub” as Root user [making a backup of it first, of course].
Change the line
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
to
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash pci=noaer”
Save it and run update-grub.
Everything now loads and shuts down smoothly and quickly.
N.B.
Two of the log files which can grow to several Gigabytes are “syslog” and “kern.log”. Both files must exist but can be emptied:
sudo truncate -s 0 /var/log/syslog
sudo truncate -s 0 /var/log/kern.log