GrepBoard/Manuals
605 manuals ·

Fix journalctl -b -1 "No journal boot entry found"

·Tested on Ubuntu 24.04 · systemd 255 · settings per freedesktop.org journald.conf(5) and journalctl(1) docs·Test scope ↓·5 steps

When journalctl -b -1 finds nothing after a reboot, check whether the journal is persistent or volatile, then switch it to persistent storage with a drop-in.

You rebooted, ran journalctl -b -1 to read the previous boot, and got one line back instead of logs.

output
No journal boot entry found from the specified boot offset (-1).

The journal has no boot with the number you asked for. Work through the steps below. The output comes from a directory (journal-copy) holding a single file copied from /var/log/journal, read with -D. That matches a server with persistent storage off, where the journal holds only the current boot.

[1] List the boots the journal knows about. The number you pass to -b is the IDX column.

console
# journalctl -D journal-copy --list-bootsIDX BOOT ID                          FIRST ENTRY                 LAST ENTRY  0 BOOTID Mon 2026-10-19 06:57:43 KST Mon 2026-10-19 14:37:03 KST

With a single row, 0, there is no -1. Per the docs, -0 is the last boot and -1 the boot before it.

console
# journalctl -D journal-copy -b -1 -n 1 --no-pagerNo journal boot entry found from the specified boot offset (-1).# echo $?1

[2] Check whether journal files exist on disk. Persistent storage lives in /var/log/journal, in-memory storage in /run/log/journal.

console
# ls -d /var/log/journal /run/log/journal

If /var/log/journal is missing, ls prints cannot access '/var/log/journal': No such file or directory. Everything is then under /run, in memory only.

[3] Read the effective configuration. Only read it; do not edit yet. cat-config merges the main files and drop-ins.

console
# systemd-analyze cat-config systemd/journald.conf | grep -E '^#?Storage='#Storage=auto

The docs define Storage= like this:

ValueBehavior
volatileMemory only (/run/log/journal).
persistentDisk (/var/log/journal), created if needed, with a fallback to /run/log/journal during early boot or when the disk is not writable.
autoActs like persistent if /var/log/journal exists, like volatile otherwise.
noneStores nothing; incoming data is dropped.

A commented #Storage=auto means the option is unset, so the value is auto: the directory's existence decides the mode. If the value is auto and /var/log/journal was missing in step 2, that is the cause. An explicit volatile gives the same result. With none, nothing reaches the journal at all.

[4] Switch to persistent storage with a drop-in file.

/etc/systemd/journald.conf.d/persistent.conf
[Journal]Storage=persistent

Per the docs, persistent creates /var/log/journal if needed. Restart journald so it reads the change.

console
# mkdir -p /etc/systemd/journald.conf.d# systemctl restart systemd-journald# journalctl --flush

--flush asks the daemon to move data from /run/log/journal to /var/log/journal when persistent storage is enabled. At boot, systemd-journal-flush.service does this.

[5] After the next reboot, confirm journalctl --list-boots shows more than one row. If storage was volatile until now, logs from before the reboot cannot be recovered: that setting keeps them in memory only.

Analyze your syslog · journal log in the browser ↗ — nothing is uploaded.

#journalctl#systemd#journald