as mentioned above, I want to to completely turn off the console output, but putting console=
or console=null
in the kernel command line doesn't change a thing. When I enque quiet
to the kernel command line it approximates this job, but I want to completely turn off the output.
So why is console=null
not working, there isn't even an error message?
Best Answer
1. Using dmesg
One method would be to do so using
dmesg
:For example:
2. Using rsyslog
Another method would be through
rsyslog
. The config file/etc/rsyslog.conf
:Changing this line to this:
NOTE: A restart of
rsyslog
is necessary,sudo service rsyslog restart
.3. Using sysctl
Lastly you can control this at the kernel level via
sysctl
.I suggest you alter your
/etc/sysctl.conf
. Specifically, you want to tweak the kernel.printk line.You can see your current settings:
4. Using silent
If you truly want to disable all logging, even during boot then change the string
quiet
tosilent
in the boot arguments to the kernel in GRUB, in/boot/grub2/grub.cfg
.