Updated: 3 November 2026 · Applies to: Linux, systemd based distributions
To find out what went wrong during a Linux system's boot, read the boot's journal with journalctl -b. On a current systemd based system (which covers essentially every mainstream distribution today), this is the one command most likely to actually have what you are looking for, since many systems no longer write the older /var/log/boot.log or /var/log/messages files at all unless a traditional syslog daemon like rsyslog is separately installed and configured.
Review the most recent boot
journalctl -b
This shows every message logged during the current boot, from the kernel starting up through every service systemd started. Add -p err to narrow it to just errors and more severe messages, cutting out the normal startup noise:
journalctl -b -p err
Review a previous boot, not the current one
List the boots the journal still has records for:
journalctl --list-boots
Then review a specific one by its offset, where -1 means the boot before the current one, -2 the one before that, and so on:
journalctl -b -1
Follow the boot process live
If you can reach the console during the actual reboot, watch it happen in real time:
journalctl -f
Check the kernel's own messages
For hardware detection, driver loading, and kernel level errors specifically, rather than every service's log output:
dmesg
Or the same information through the journal, restricted to kernel messages only:
journalctl -k -b
Check which services actually failed to start
Rather than reading the whole log for failures, ask systemd directly which units are in a failed state:
systemctl --failed
Then look at the full detail for a specific one:
systemctl status name-of-unit.service
If the system still runs a traditional syslog daemon
On a system where rsyslog or syslog-ng is installed and configured to write plain text log files, the older locations may still be worth checking alongside journalctl:
cat /var/log/boot.log
less /var/log/messages
If either file does not exist, that almost always means no traditional syslog daemon is installed, and journalctl is genuinely the only place that boot information lives on that system, not a sign that something is broken.
A common real example: a missing swap device
A dependency failure that mentions a UUID and the word Swap together typically means the system expected a swap partition or file that is no longer present, often after restoring an image or cloning a disk. Check current swap status:
swapon --show
No output at all confirms swap genuinely is not active, which is the underlying cause worth fixing (by creating a new swap file or correcting the entry in /etc/fstab) rather than something to chase further in the boot logs themselves.