From owner-freebsd-questions@FreeBSD.ORG Sun Apr 4 22:05:56 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9703216A4CE for ; Sun, 4 Apr 2004 22:05:56 -0700 (PDT) Received: from munk.nu (mail.munk.nu [213.152.51.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49A5D43D49 for ; Sun, 4 Apr 2004 22:05:54 -0700 (PDT) (envelope-from munk@munk.nu) Received: from munk by munk.nu with local (Exim 4.31; FreeBSD) id 1BAMIy-0005ks-3x; Mon, 05 Apr 2004 06:05:52 +0100 Date: Mon, 5 Apr 2004 06:05:52 +0100 From: Jez Hancock To: Rob Message-ID: <20040405050552.GB21560@users.munk.nu> Mail-Followup-To: Rob , freebsd-questions@freebsd.org References: <4070DD61.9020102@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4070DD61.9020102@users.sourceforge.net> User-Agent: Mutt/1.5.6i Sender: Jez Hancock cc: freebsd-questions@freebsd.org Subject: Re: dmesg bootup-info removed/overwritten by syslogd ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 05:05:56 -0000 On Mon, Apr 05, 2004 at 01:15:29PM +0900, Rob wrote: > I wanted to see my original bootup messages again. So I typed > dmesg, but all I got were 'arplookup' lines. > > I'm puzzled, where the bootup messages have gone? Overwritten by kernel debug messages. There have been a number of similar questions for a while, the gist is that when the dmesg buffer gets filled up, it starts to overwrite itself. This affects the daily periodic output and makes it look munged. I don't think any solution has ever been offered up - I'd certainly be interested in it :P > I have two files in /var/log: dmesg.today and dmesg.yesterday > Both files are completely filled with this line: > arplookup 147.46.50.254 failed: host is not on local network > > How can I see the original bootup messages from the kernel? One way is to cat the output from bootup dmesg into a file at boot time - in /etc/rc.local put this: dmesg > /var/log/dmesg.boot if you wanted to get fancy you could use the date(1) command to timestamp the files ala: dmesg > /var/log/dmesg.boot.`date "+%Y%m%d"` > Do I have to reboot for that :( ? Yup. Good luck. -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - Another FreeBSD Diary http://ipfwstats.sf.net/ - ipfw peruser traffic logging