You are not logged in.

#1 2017-05-01 15:00:32

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

how to find log messages on boot, before login prompt (tty1)?

hello,

during my boot I received some errors/warnings.
I cant catch&read it, because it is flashing too fast.

I am not interested in dmesg or journalctl, because this error is related with LUKS partition and I need to check this particular error.
dmesg is showing nothing regarding LUKS.

how can I check all messages generated before login prompt (tty1) ?
these messages are appear after first seconds of my computer is turning on.

I checked /var/log and found nothing

any idea?
thanks for help

Last edited by collector1871 (2017-05-01 21:05:15)


My: AUR and homepage .

Offline

#2 2017-05-01 15:33:21

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: how to find log messages on boot, before login prompt (tty1)?

You can edit

/usr/lib/systemd/system/getty@.service

and set TTYVTDisallocate to "no" which will prevent your console being cleared by systemd. Altough I still think the error should also be logged in the journal. Have you actually looked at it or only at dmesg?

Last edited by FlowIt (2017-05-01 15:33:48)

Offline

#3 2017-05-01 15:47:17

collector1871
Member
From: Poland
Registered: 2016-12-05
Posts: 51

Re: how to find log messages on boot, before login prompt (tty1)?

FlowIt wrote:

You can edit

/usr/lib/systemd/system/getty@.service

and set TTYVTDisallocate to "no" which will prevent your console being cleared by systemd. Altough I still think the error should also be logged in the journal. Have you actually looked at it or only at dmesg?


Problem is regarding that since last 2 weekend I am configuring mount/encryption
And something went little wrong and this error started flashing during boot.
I can`t read it, because it`s very fast.

And when I am trying to grep journalctl or dmesg, then found nothing regarding encryption.
(or meaby wrong search)

I am very careful of errors like this, because errors regarding mount/encryption are very dangerous for disk health. So I need to debug this and check this error.

any idea how to prevent clearing boot messages via editing  /usr/lib/systemd/system/getty@.service ?

Last edited by collector1871 (2017-05-01 15:53:05)


My: AUR and homepage .

Offline

#4 2017-05-01 16:03:53

loqs
Member
Registered: 2014-03-06
Posts: 19,114

Re: how to find log messages on boot, before login prompt (tty1)?

Altering the service file in /usr/lib/systemd is not recommended as it will be overwritten on package update.  systemd#Editing_provided_units
See also General_troubleshooting#Console_messages is you can not scroll back far enough.

Last edited by loqs (2017-05-01 16:04:30)

Offline

#5 2017-05-01 20:58:28

FlowIt
Member
Registered: 2014-10-25
Posts: 243

Re: how to find log messages on boot, before login prompt (tty1)?

So you just grepped the journal for "encryption", found nothing, and your conclusion was that the journal does not contain the error message? Please find 10 minutes to read through the whole journal, I am pretty sure you will find something. There is no generic or easy way to filter the journal for an error you no nothing about.

Offline

#6 2017-05-01 23:00:35

glyons
Member
From: Europa
Registered: 2016-10-14
Posts: 37

Re: how to find log messages on boot, before login prompt (tty1)?

type
journalctl -p 3 -xb
to Show only error, critical, and alert priority messages from last boot
Have you tried this?

more ways to filter journal here
https://wiki.archlinux.org/index.php/Systemd#Journal

Last edited by glyons (2017-05-01 23:09:31)

Offline

Board footer

Powered by FluxBB