From owner-freebsd-stable Tue Feb 18 8: 1:10 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 11A1237B401 for ; Tue, 18 Feb 2003 08:01:09 -0800 (PST) Received: from lurza.secnetix.de (lurza.secnetix.de [212.66.1.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B07443FB1 for ; Tue, 18 Feb 2003 08:01:08 -0800 (PST) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [IPv6:::1]) by lurza.secnetix.de (8.12.6/8.12.5) with ESMTP id h1IG15dK018907 for ; Tue, 18 Feb 2003 17:01:05 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.12.6/8.12.5/Submit) id h1IG15cf018906; Tue, 18 Feb 2003 17:01:05 +0100 (CET) Date: Tue, 18 Feb 2003 17:01:05 +0100 (CET) Message-Id: <200302181601.h1IG15cf018906@lurza.secnetix.de> From: Oliver Fromme To: freebsd-stable@FreeBSD.ORG Reply-To: freebsd-stable@FreeBSD.ORG Subject: Re: badblocks? In-Reply-To: X-Newsgroups: list.freebsd-stable User-Agent: tin/1.5.4-20000523 ("1959") (UNIX) (FreeBSD/4.7-RELEASE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mario Pranjic wrote: > It seems that /usr partition has a bad blocks. > With what tool can I check/fix it? The dust bin might be the right tool for it. However ... You could try overwriting the whole disk with dd. This will force the firmware to remap any bad sectors, if there are any spare sectors left. For SCSI disks, make sure that reallocation-on-write is enabled (there's an example for it in the camcontrol(8) manpage). Something like this: $ dd if=/dev/zero of=/dev/daX conv=noerror,sync It will take a long time, and it will OVERWRITE the whole contents of the disk. You'll have to fdisk, disklabel, newfs and restore your backup afterwards. However, depending on the kind of defect, it might work or not. If there's a serious surface problem on the media, loose abrasion/debris will cause further bad sectors. If that happens, there's no other way than to replace the disk. But if the defects were only small and didn't cause any abrasion in the drive, the disk can very well run fine for several years to come. Regards Oliver -- Oliver Fromme, secnetix GmbH & Co KG, Oettingenstr. 2, 80538 München Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "All that we see or seem is just a dream within a dream" (E. A. Poe) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message