From owner-freebsd-questions Fri May 9 08:25:03 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA09405 for questions-outgoing; Fri, 9 May 1997 08:25:03 -0700 (PDT) Received: from mail.EUnet.hu (www.eunet.hu [193.225.28.100]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA09397 for ; Fri, 9 May 1997 08:25:00 -0700 (PDT) Received: by mail.EUnet.hu, id RAA19514; Fri, 9 May 1997 17:24:01 +0200 Received: (from zgabor@localhost) by CoDe.hu (8.7.5/8.7.3) id QAA00257; Fri, 9 May 1997 16:19:38 +0200 (MET DST) From: Zahemszky Gabor Message-Id: <199705091419.QAA00257@CoDe.hu> Subject: Re: need disk error help! To: freebsd-questions@freebsd.org (FreeBSD questions) Date: Fri, 9 May 1997 16:19:38 +0200 (MET DST) Cc: mmead@goof.com In-Reply-To: <199705061859.OAA11434@goof.com> from "matthew c. mead" at "May 6, 97 02:58:42 pm" X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > Hi, I'm trying to resolve a problem on a machine which is > having what appears to be drive errors. Can someone help me > interpret this message and figure out what to do to mark this > part of the disk as unusable or some other measure? Thanks! > > These messages are showing up on the console (and in the > dmesg log): > > wd0s1h: hard error reading fsbn 2086522 of 2086512-2086527 (wd0s1 bn 3135098; cn 3110 tn 3 sn 29)wd0: status 59 error 10 > wd0s1h: hard error reading fsbn 2086522 of 2086512-2086527 (wd0s1 bn 3135098; cn 3110 tn 3 sn 29)wd0: status 59 error 40 man badsect Gabor -- #!/bin/ksh Z='21N16I25C25E30, 40M30E33E25T15U!' ;IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';set $Z;for i { [[ $i = ? ]]&&print $i&&break;[[ $i = ??? ]]&&j=$i&&i=${i%?};typeset -i40 i=8#$i;print -n ${i#???};[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};IFS=' 0123456789 ';set $Z;X=;for i { [[ $i = , ]]&&i=2;[[ $i = ?? ]]||typeset -l i;X="$X $i";typeset +l i;};print "$X"