From owner-freebsd-stable Sat Feb 26 21:30:17 2000 Delivered-To: freebsd-stable@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id D2D0337B550 for ; Sat, 26 Feb 2000 21:30:13 -0800 (PST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id WAA18264; Sat, 26 Feb 2000 22:30:11 -0700 (MST) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id WAA64001; Sat, 26 Feb 2000 22:30:01 -0700 (MST) Message-Id: <200002270530.WAA64001@harmony.village.org> To: "Kenneth D. Merry" Subject: Re: disk repair on SunOS Cc: Rahul Dhesi , freebsd-stable@FreeBSD.ORG In-reply-to: Your message of "Sat, 26 Feb 2000 21:01:21 MST." <20000226210121.A28630@panzer.kdm.org> References: <20000226210121.A28630@panzer.kdm.org> <20000226235005.6973B3FF09@bolero.rahul.net> Date: Sat, 26 Feb 2000 22:30:01 -0700 From: Warner Losh Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000226210121.A28630@panzer.kdm.org> "Kenneth D. Merry" writes: : First, make sure that read and write reallocation are turned on in mode : page 1. Then you can issue a write(6) or write(10) command using : 'camcontrol cmd' with null data. The drive will remap the block for you. How is this different than 'dd of=/dev/rdaX if=/dev/zero oseek=XXX'? I've turned on read/write reallocation in page 1 in a drive I have here. I did a dd for the entire drive, and I still have sectors I can't read. After doing the remapping via the adaptech 19160 controller for a few sectors, they read fine. It looks like there are about 100 of bad sectors clustered 3 at a time every cylendar or so. It appears that the defect list of the drive was lost.... : To find out the format of SCSI write commands, see the SCSI drafts at : www.t10.org. I was afraid that you'd say that. :-) I suppose this is the same thing that the test media function of a adaptech controller bios, no? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message