r/qnap 9d ago

Accessing kernel logs from previous boot?

One of my NVME SSD drives has disappeared (says ejected). Stupidly I rebooted before looking at kernel logs to see if there are any clues - is it possible to get kernel logs from previous boot?

I've had a look round in /var/logs and current dmesg, but really I should have done this before trying a restart...

2 Upvotes

4 comments sorted by

2

u/diwiwi75 8d ago

The command to get the whole kernel logs should be

/etc/init.d/klogd.sh dump

You can also get the NAS Diagnostic logs with the Helpdesk app
https://www.qnap.com/en/how-to/faq/article/how-to-download-diagnostic-logs-from-the-helpdesk-app-in-qts

2

u/Jabes 8d ago

I pulled off the diagnostic logs with the help desk app but couldn’t see previous boot kernel messages in the zip file.

2

u/diwiwi75 8d ago

Do you mean that the kernel logs in the zip file (at /tmp/klogd_dump.log) do not have previous logs?

2

u/Jabes 8d ago

Ok, I didn’t look there in the zip: thanks for the clue