Shared server guidance · Question & answer

How do I inspect kernel messages for storage, memory or driver errors?

Kernel messages can reveal device timeouts, filesystem errors, memory pressure and driver problems that do not appear in an application log. Read them alongside the application timeline. A warning is a diagnostic clue; its severity and cause depend on the device, driver and surrounding events.

IntermediateLinux servers with accessible kernel journal messages
Go to the answer

Before you start

  • An authorised SSH session on the Linux server.

Instructions

1. Read current-boot kernel warnings

Use the journal when it is available so timestamps and boot scope are explicit. Access may require administrative journal permission.

Remote Linux shell
sudo journalctl -k -b -p warning -n 100 --no-pager

-k selects kernel messages and -b restricts the current boot. The priority filter intentionally omits lower-priority context initially.

2. Inspect surrounding messages

When an error identifies a device or timestamp, widen the small time range around it. Avoid restarting or reinitialising a storage device before understanding which mounted filesystems depend on it.

Remote Linux shell
sudo journalctl -k -b --since "30 minutes ago" -n 150 --no-pager

Correlate repeated errors with workload, disk, network or firmware events. Preserve exact driver error codes for support.

Check the result

  • The evidence identifies the affected subsystem and timing, and any repair is validated through both kernel messages and application behaviour.

Troubleshooting

The journal has no kernel records
The image may use different logging, lack permissions, or run inside a restricted container. Consult the host or provider’s supported logs.
A single warning suggests hardware trouble
Check repetition and vendor diagnostics before assuming a component has failed.

Official references

Use the documentation for your installed version when a flag, service name or platform feature differs.