From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 07:05:23 2003 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 3D5B516A4BF for ; Fri, 29 Aug 2003 07:05:23 -0700 (PDT) Received: from ns.aces.pt (ns.aces.pt [195.22.10.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51FFF43FCB for ; Fri, 29 Aug 2003 07:05:21 -0700 (PDT) (envelope-from marco@aces.pt) Received: from marco ([195.22.18.163]) by ns.aces.pt (8.10.2/8.10.2) with SMTP id h7TE6EP30723 for ; Fri, 29 Aug 2003 15:06:17 +0100 Message-ID: <01be01c36e36$73446f60$6b026b83@marco> From: =?iso-8859-1?Q?Marco_Gon=E7alves?= To: References: <009901c36d01$ba7572c0$ad1316c3@celeron1700> <44u181b7q9.fsf@be-well.ilk.org> Date: Fri, 29 Aug 2003 15:04:07 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: dmesg output 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: Fri, 29 Aug 2003 14:05:23 -0000 I wanted to clear the dmesg -a output because i had this problem with a = IDE disk, wich give this message all over ad0s1g: hard error reading fsbn 133851519 of 65253984-65254015 (ad0s1 bn = 133851519; cn 8331 tn 222 sn 18) status=3D59 error=3D40 ad0s1g: hard error reading fsbn 133851519 of 65253984-65254015 (ad0s1 bn = 133851519; cn 8331 tn 222 sn 18) status=3D59 error=3D40 ad0s1g: hard error reading fsbn 133851519 of 65253984-65254015 (ad0s1 bn = 133851519; cn 8331 tn 222 sn 18) status=3D59 error=3D40 ... and so one i mirrored the disk and change with other, and now is dificult to see if = that is ok...unless i clear the buffer to see if the messages keep on=20 by the way can i use fsck on a multi-user runing server? ----- Original Message -----=20 From: Lowell Gilbert=20 To: Marco Gon=E7alves=20 Cc: freebsd-questions@freebsd.org=20 Sent: Friday, August 29, 2003 1:58 AM Subject: Re: dmesg output =3D?Windows-1252?Q?Marco_Gon=3DE7alves?=3D = writes: > Email TemplateHow can i delete the 'dmesg -a' last output buffer Assuming I'm understanding you correctly (you want to clear the system message buffer?) you shouldn't be able to do that while the system is running. It's a security precaution. Maybe if you explained why you wanted to do it, we'd be able to help. > /var/run/dmesg.boot - but it just shows the hardware boot It shows the contents of the system message buffer immediately after the kernel boots. > /var/log/dmesg.today - seems like a copy of /var/run/dmesg.boot It should be the contents of the system message buffer at the time of the daily periodic(8) run. > /var/log/dmesg.eyesterday - seems to me like the dmesg -a output = before last reboot... It should be the previous day's dmesg.today file.