From owner-freebsd-hardware Thu Dec 21 2:46:23 2000 From owner-freebsd-hardware@FreeBSD.ORG Thu Dec 21 02:46:20 2000 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from Espresso.NEEBU.Net (espresso.neebu.net [208.178.117.2]) by hub.freebsd.org (Postfix) with SMTP id 398CC37B400 for ; Thu, 21 Dec 2000 02:46:20 -0800 (PST) Received: from Espresso.NEEBU.Net (khuon@localhost) by Espresso.NEEBU.Net (8.10.2/8.10.2) with ESMTP id eBLAjwd11062 for ; Thu, 21 Dec 2000 02:46:08 -0800 (PST) Message-Id: <200012211046.eBLAjwd11062@Espresso.NEEBU.Net> From: "Jake Khuon" To: freebsd-hardware@freebsd.org Dcc: Subject: fixing hard read errors Reply-To: khuon@GBLX.Net (Jake Khuon) Action: Expires: Priority: Normal X-Face: "(e&e|OIYrcV1x8y?txN%k1E2f[qWLjRjOn+a30)3>x`Wx%_9XiXs\IO2#G5L1m=c/|^h|z29wJ#]D/.?Ks,Mw1 X-URI: http://Espresso.NEEBU.Net/~khuon/ X-Organisation: Global Crossing Ltd., Net-Eng/NSM-Arch X-Header: /usr/include gives great headers X-System: Sun UltraSPARCstation2/2300MP running SunOS Release 5.7 X-Shell: tcsh 6.07.02 (Astron) 1996-10-27 (sparc-sun-solaris) options 8b,nls,dl,al,ng,rh X-Chtorr: History is full of revisionists. Where it used to say "THOU SHALT NOT KILL" it now says, "except as specified in section III-B, Paragraph 12, Sub-section D, Schedule 3." If that still doesn't suit you, wait till next year's commandments come out and trade it in for something that does. X-Mailer: MH 6.8.4 #4[UCI] (Espresso.NEEBU.Net) of Mon Feb 19 15:14:03 EST 1996 Date: Thu, 21 Dec 2000 02:45:58 -0800 Sender: khuon@Espresso.NEEBU.Net Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've started taking corruption errors on the drive. Dec 20 23:37:50 Mocha /kernel: ad0: HARD READ ERROR blk# 19527354 Dec 20 23:37:56 Mocha /kernel: ad0: HARD READ ERROR blk# 19527354 status=59 error=40 Dec 20 23:37:57 Mocha /kernel: ad0: DMA problem fallback to PIO mode Right now, I've had to set the fsck flag to 0 in /etc/fs and am doing a forcemount of /usr in /etc/rc before the other mounts just to keep me going. Is there a way to use badsect to map these out? When I try, I get this: badsect /usr/BAD 19527354 block 19527354 out of range of file system Don't forget to run ``fsck /dev/rad0s2f'' This is how my drive is laid out: # /dev/ad0c: type: ESDI disk: ad0s2 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 945 sectors/unit: 15181425 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 524288 0 4.2BSD 1024 8192 16 # (Cyl. 0 - 32*) b: 1048576 14131200 swap # (Cyl. 879*- 944*) c: 15181425 0 unused 0 0 # (Cyl. 0 - 944) e: 1048576 524288 4.2BSD 1024 8192 16 # (Cyl. 32*- 97*) f: 12558336 1572864 4.2BSD 1024 8192 16 # (Cyl. 97*- 879*) Thinking that maybe the error in console was relative to the beginning of the disk, I tried subtracting out the offset but just got: # bc bc 1.05 Copyright 1991, 1992, 1993, 1994, 1997, 1998 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 19527354 - 1572864 17954490 quit # badsect /usr/BAD 17954490 block 17954490 out of range of file system Don't forget to run ``fsck /dev/rad0s2f'' Did I do something stupid like forget to convert something? -- /*====================[ Jake Khuon ]======================+ | Senior Manager and Chief Architect, Net-Eng/NSM /~_ |_ () |3 /-\ |_ | | VOX: +1 (408) 543-4828 Fax: +1 (408) 543-0074 \_| C R O S S I N G | +===============[ 960 Hamlin Court, Sunnyvale, CA 94089 ]===============*/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message