From owner-freebsd-scsi Mon Oct 6 23:50:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA02626 for freebsd-scsi-outgoing; Mon, 6 Oct 1997 23:50:55 -0700 (PDT) (envelope-from owner-freebsd-scsi) Received: from sax.sax.de (sax.sax.de [193.175.26.33]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id XAA02615 for ; Mon, 6 Oct 1997 23:50:50 -0700 (PDT) (envelope-from j@uriah.heep.sax.de) Received: (from uucp@localhost) by sax.sax.de (8.6.12/8.6.12-s1) with UUCP id IAA07820; Tue, 7 Oct 1997 08:50:49 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.8.7/8.8.5) id IAA08003; Tue, 7 Oct 1997 08:39:16 +0200 (MET DST) Message-ID: <19971007083916.RV43899@uriah.heep.sax.de> Date: Tue, 7 Oct 1997 08:39:16 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-scsi@FreeBSD.ORG Cc: adam@veda.is (Adam David) Subject: Re: fixing bad SCSI sectors? References: <199710062300.XAA10829@veda.is> X-Mailer: Mutt 0.60_p2-3,5,8-9 Mime-Version: 1.0 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: <199710062300.XAA10829@veda.is>; from Adam David on Oct 6, 1997 23:00:38 +0000 Sender: owner-freebsd-scsi@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk As Adam David wrote: > How do I start fixing this disk? By formatting it... > So, how do I repair the disk without completely reformatting it? Oh... Well, try to turn on AWRE/ARRE (mode page 1), and force a write to those blocks. The block numbers are mentioned in the `info' field. Note that they are absolute for the disk, i.e. use them as an lseek offset for /dev/rsd1. Alas, dd(1) doesn't lseek on raw devices when using "seek=". Hmm, our dd man page suggests it were seeking on anything but tape devices... Try it before using. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)