I have Ubuntu Server 18.04 LTS. I want to suppress kernel messages shown on console during boot. (The type of [0.1234] kernel message
thing that floods the screen ).
THIS DID NOT WORK:
- Changing /etc/systl.conf
- Setting
LogLevel=err
orLogLevel=emerg
in/etc/systemd/system.conf
. This did in fact remove[ ok ] Blah blah
type of messages but not[123.456] Something something
type. - Changing GRUB settings. Even
GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 rd.systemd.show_status=auto rd.udev.log-priority=3 loglevel=0"
(source). No, difference inloglevel=0
orloglevel=3
. No, I did not forget to runsudo update-grub
. sudo dmesg -n 1
(source)- This,too. Don't mark this question as duplicate of that since
agetty
is completely unrelated to boot messages and OP's own answer does not work, like I mentioned above aboutGRUB
part. - editing
/etc/systemd/journal.conf
to setForwardToWall=no
orMaxLevelWall=emerg
- setting
console=tty5
in/etc/default/grub
( source ) - I removed
plymouth
completely - the messages still appear. Which also makes sense since it's not related to plymouth, it's not even started as service in systemd, and there's no GUI on this system.
I'll probably be offering a bounty to the answer that can make a perfectly quiet boot setting and maybe downvote all those other answers because they're outdated and not useful at all and don't work at all. I've spent quite a considerable time on trying to figure this out with not much results.
/dev/tty
or/dev/console
to a file so it's never displayed on screen? – WinEunuuchs2Unix Oct 20 '18 at 19:40/dev/tty1
. I mean, i could switch to tty2, but . . . that's hacky – Sergiy Kolodyazhnyy Oct 20 '18 at 19:45/etc/default/grub
toGRUB_CMDLINE_LINUX_DEFAULT="quiet"
hasn't helped. As I posted below, the only thing that did is settingconsole=ttyS0
, i.e. redirecting where console messages go – Sergiy Kolodyazhnyy Dec 21 '18 at 01:04GRUB_CMDLINE_LINUX_DEFAULT="quiet"
,GRUB_CMDLINE_LINUX="quiet"
,GRUB_RECORDFAIL_TIMEOUT=0
– LucaM Dec 21 '18 at 08:40GRUB_CMDLINE_LINUX
variables pass parameters to kernel. Thequiet
parameter in kernel docs is referenced as "Disable most log messages", which it indeed would do in versions prior to 15.04, but now that Ubuntu switched tosystemd
init subsystem, this doesn't seem to work anymore, at least in my experience. – Sergiy Kolodyazhnyy Dec 21 '18 at 10:28GRUB_RECORDFAIL_TIMEOUT
is not referenced in docs, but from brief research it doesn't have to do with kernel messages, but rather with failed boot ( see ubuntu wiki ) – Sergiy Kolodyazhnyy Dec 21 '18 at 10:30GRUB_CMDLINE_LINUX
settings go, I've tried them over and over in multiple variations without any positive result. And yes, I tried the complete 3 settings too even though I know one of them is pointless. Did not work. – Sergiy Kolodyazhnyy Dec 21 '18 at 10:41