Sep 14, 2004, 7:59 PM
Post #7 of 10
(2710 views)
Permalink
even easier than this (or my last post) is uname -a which gives the
compilation date/time of the kernel.
the dmesg buffer tends to be overwritten after a while, ie it is a fifo
which is only a certain size. therefore the information we were seeking
will disappear after a while (although should be available straight
after boot unless some repetitive error fills it up very very quickly)
On Tue, 14 Sep 2004 20:41:57 -0600
Alex Schultz <alex_sch@telus.net> wrote:
> Grant wrote:
>
> >On Tue, 14 Sep 2004 16:39:53 -0400, Comatose Jones
> ><comatose.jones@gmail.com> wrote:
> >
> >
> >>On Tue, 14 Sep 2004 20:36:28 +0000, Grant <emailgrant@gmail.com> wrote:
> >>
> >>
> >>>I've set up grub to boot to one kernel image, but fallback to a safe
> >>>one just in case. How can I tell which one I've booted into?
> >>>
> >>>
> >>>
> >>uname -r
> >>
> >>--
> >>ciao,
> >>cj
> >>
> >>
> >
> >Actually, I'm only getting this:
> >
> >system5 root # uname -r
> >2.4.27-hardened-r2
> >
> >and I need to know if it's using this kernel image:
> >
> >kernel-2.4.27-hardened-r2
> >
> >or this one:
> >
> >kernel-2.4.27-hardened-r2-fallback
> >
> >Is there any way to tell?
> >
> >
> Run a "dmesg | head" and look at the top, It should resemble this:
>
> Linux version 2.6.9-rc1-mm2 (root@bytepro) (gcc version 3.3.3 20040412
> (Gentoo Linux 3.3.3-r6, ssp-3.3.2-2, pie-8.7.6)) #3 Mon Sep 13 16:53:57
> MDT 2004
>
> Note the "Mon Sep 13 16:53:57 MDT 2004" which is the time at which the
> kernel was compialed. So if you know approximatly when you compialed
> them, then you can tell from that.
>
>
> Alex S.
>
> --
> gentoo-user@gentoo.org mailing list
--
Nick Rout <nick@rout.co.nz>
--
gentoo-user@gentoo.org mailing list