ArchThis Forum is for the discussion of Arch Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have current arch installed on lenovo ideapad 110s
When refind boots linux, almost immediately, before udev is started, system prints messages heavily decorated with asterisks about root cannot be mounted (messages pass by too quickly for me to read).
On the one hand the system functions so why worry; but on the other hand it maybe warning me of some error condition on the hard drive that I should fix.
How can I capture these early sytem messages (not in dmesg)? Shift-PgUp does not scroll the screen back. /var/log/messages is empty.
Excepting the package manager's history pacman.log, every file, including in subdirectories, is binary. lastlog and wtmp seem promising, but both are largely hex zeros.
Searching the system for variations on syslog produced only 2 results that seemed hopeful
Thank you for the suggestion, but I'm not sure it will help.
According to this post https://bbs.archlinux.org/viewtopic.php?id=151363 arch does not include syslogd by default, uses journalctl instead, whose output for today is
Code:
Jun 28 09:10:01 a systemd[362]: Reached target Paths.
Jun 28 09:10:01 a systemd[362]: Listening on GnuPG cryptographic agent and pass>
Jun 28 09:10:01 a systemd[362]: Starting D-Bus User Message Bus Socket.
Jun 28 09:10:01 a systemd[362]: Listening on GnuPG network certificate manageme>
Jun 28 09:10:01 a systemd[362]: Listening on GnuPG cryptographic agent (ssh-age>
Jun 28 09:10:01 a systemd[362]: Listening on GnuPG cryptographic agent and pass>
Jun 28 09:10:01 a systemd[362]: Listening on GnuPG cryptographic agent and pass>
Jun 28 09:10:01 a systemd[362]: Reached target Timers.
Jun 28 09:10:01 a systemd[362]: Listening on D-Bus User Message Bus Socket.
Jun 28 09:10:01 a systemd[362]: Reached target Sockets.
Jun 28 09:10:01 a systemd[362]: Reached target Basic System.
Jun 28 09:10:01 a systemd[362]: Reached target Default.
Jun 28 09:10:01 a systemd[362]: Startup finished in 78ms.
Jun 28 09:19:12 a systemd[362]: Started D-Bus User Message Bus.
Jun 28 09:19:13 a dbus-daemon[952]: [session uid=1000 pid=952] Activating via s>
Jun 28 09:19:13 a systemd[362]: Starting Accessibility services bus...
Jun 28 09:19:13 a dbus-daemon[952]: [session uid=1000 pid=952] Successfully act>
Jun 28 09:19:13 a systemd[362]: Started Accessibility services bus.
Jun 28 09:19:15 a dbus-daemon[952]: [session uid=1000 pid=952] Activating servi>
Jun 28 09:19:15 a dbus-daemon[952]: [session uid=1000 pid=952] Successfully act>
lines 3689-3746/3746 (END)
syslogd records hundreds of messages before udev loads on my system. If it doesn't interfere with journalctl I recommend you try running it just to see what happens. I'd be surprised if you can't run it at all.
I looked at the page to which you referred me; it looks as though journalctl should record the same stuff. Maybe you need to look at a different file or pass an argument to journalctl to read them. I run Slackware (perhaps I shouldn't answer an Arch forum question.)
Thank you for the suggestion, but I'm not sure it will help.
According to this post https://bbs.archlinux.org/viewtopic.php?id=151363 arch does not include syslogd by default, uses journalctl instead
maybe that was so in 2012.
a lot has changed since then.
it is also irrelevant to your request.
Quote:
I'm assuming the messages I wish to capture precede systemd's startup.
you assume correctly.
and dmesg does that on my system (archlinux).
try:
Code:
sudo dmesg | head
followed by
Code:
sudo dmesg|grep -niEm1 -B10 'systemd|udev'
very clearly (at least on my system) the dmesg log starts with loading the linux kernel, then 600 lines and 3 seconds later it starts systemd.
and dmesg does that on my system (archlinux).
try:
Code:
sudo dmesg | head
followed by
Code:
sudo dmesg|grep -niEm1 -B10 'systemd|udev'
very clearly (at least on my system) the dmesg log starts with loading the linux kernel, then 600 lines and 3 seconds later it starts systemd.
Thank you for your help, dmesg does as you say, see following code box. But as I said in my first post, it does not list the console messages that concern me.
Code:
~ $ sudo dmesg|head
[ 0.000000] Linux version 4.17.2-1-ARCH (builduser@heftig-9574) (gcc version 8.1.1 20180531 (GCC)) #1 SMP PREEMPT Sat Jun 16 11:08:59 UTC 2018
[ 0.000000] Command line: \\boot\vmlinuz-linux ro root=UUID=f2dda047-0a99-43e3-9c67-cec5b4961d81 initrd=boot\initramfs-linux.img
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Centaur CentaurHauls
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000057fff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000058000-0x0000000000058fff] ACPI NVS
~ $ sudo dmesg|grep -niEm1 -B10 'systemd|udev'
590-[ 2.749259] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
591-[ 2.753906] sdhci-pci 0000:00:12.0: SDHCI controller found [8086:2296] (rev 35)
592-[ 2.754846] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
593-[ 2.880034] usb 1-4: new high-speed USB device number 3 using xhci_hcd
594-[ 3.027963] usb 1-4: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
595-[ 3.027968] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
596-[ 3.027970] usb 1-4: Product: Ultra Fit
597-[ 3.027971] usb 1-4: Manufacturer: SanDisk
598-[ 3.027973] usb 1-4: SerialNumber: 4C531001331212109152
599-[ 3.029141] sdhci-pci 0000:00:12.0: SDHCI controller found [8086:2296] (rev 35)
600:[ 3.084394] systemd[1]: systemd 238 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN +PCRE2 default-hierarchy=hybrid)
~ $
The HD is mounted, bolded, but no messages saying root cannot be mounted.
I looked at the page to which you referred me; it looks as though journalctl should record the same stuff. Maybe you need to look at a different file or pass an argument to journalctl to read them. I run Slackware (perhaps I shouldn't answer an Arch forum question.)
I don't think my problem is specific to any particular distro, and I appreciate your help.
Quote:
Originally Posted by RandomTroll
syslogd records hundreds of messages before udev loads on my system. If it doesn't interfere with journalctl I recommend you try running it just to see what happens. I'd be surprised if you can't run it at all.
I have installed syslogd, now its a matter of getting it to run, it seems it needs to be started by 'init', but all this is new to me. I've always avoided meddling with the system, just thankful that it does its job so well.
does the -k switch to journalctl give you what you want?
syslogd is just a program. You can just run it. The only hitch is that you can't run it too early - I don't know when that is. On my system it runs from /etc/rc.d/rc.M by /etc/rc.d/rc.syslog.
I read the journalctl doc more. I bet it has the same information, you just have to know how to look for it. syslogd stores most of what it reports in plain text files. journalctl may do the same, just with different names.
Last edited by RandomTroll; 06-29-2018 at 04:43 PM.
if the messages you mention aren't even in dmesg, i have my doubts if syslogd can help.
worth a try of course.
i'd go back to a previously mentioned kernel option to pause after every step or message or some such, i'm sure it was in this thread (edit: maybe one of the links to archwiki).
at least try it out.
does the -k switch to journalctl give you what you want?
syslogd is just a program. You can just run it. The only hitch is that you can't run it too early - I don't know when that is. On my system it runs from /etc/rc.d/rc.M by /etc/rc.d/rc.syslog.
I read the journalctl doc more. I bet it has the same information, you just have to know how to look for it. syslogd stores most of what it reports in plain text files. journalctl may do the same, just with different names.
journalctl -k produces lots more messages, but still not the ones I'm looking for. I think what I'll do is try filming the screen as the system boots, then run the video in mplayer. Its '.' command shifts one frame at a time, so that should pin it down. Many thanks for all your help, much appreciated.
if the messages you mention aren't even in dmesg, i have my doubts if syslogd can help.
worth a try of course.
i'd go back to a previously mentioned kernel option to pause after every step or message or some such, i'm sure it was in this thread (edit: maybe one of the links to archwiki).
at least try it out.
Don't know about kernel options, but thanks for the idea. I think what I'll do is try filming the screen as the system boots, then run the video in mplayer. Its '.' command shifts one frame at a time, so that should pin it down. Many thanks for all your help, much appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.