Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2000 02:45:58 -0800
From:      "Jake Khuon" <khuon@GBLX.Net>
To:        freebsd-hardware@freebsd.org
Subject:   fixing hard read errors
Message-ID:  <200012211046.eBLAjwd11062@Espresso.NEEBU.Net>

next in thread | raw e-mail | index | archive | help
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 <khuon@GBLX.Net> ]======================+
 | 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200012211046.eBLAjwd11062>