seeking how to find a fresh boot in the system log files
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
While 'last' does show me the date-time of the most recent boot, and since I can use that date-time to search any log for entries around that time, I am looking for a log file entry that is definitive "system boot starts here".
While 'last' does show me the date-time of the most recent boot, and since I can use that date-time to search any log for entries around that time, I am looking for a log file entry that is definitive "system boot starts here".
Thank you for your replies,
~~~ 0;-Dan
What you see from the last command is the ‘definitive "system boot starts here".’
I am looking for a log file entry that is definitive "system boot starts here".
There isn't one because just after system boot logging is still disabled and the root fs mounted read-only.
As every distro has different startup handling the first entry AFTER the reboot is the one that came in just after system logging was enabled, the messages between the end of dmesg (which are in kernel memory, not disk) and that point never are logged (onto disk files).
So the first entry is distribution, kernel and startup method dependent.
Even the message in lastlog isn't WRITTEN on disk until the root fs has been remounted read-write. so after the file system check etc was done before that.
So by looking in the logs to lines after the date/time reported by last reboot you can determine what on YOUR system is the first logged entry.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.