From owner-freebsd-questions Wed Mar 18 13:56:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02638 for freebsd-questions-outgoing; Wed, 18 Mar 1998 13:56:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hoe.isi.edu (hoe.isi.edu [128.9.160.164]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA02617 for ; Wed, 18 Mar 1998 13:56:25 -0800 (PST) (envelope-from haoboy@isi.edu) Received: from localhost (LOCALHOST [127.0.0.1]) by hoe.isi.edu (8.8.5/8.8.5) with SMTP id NAA00429; Wed, 18 Mar 1998 13:56:11 -0800 (PST) Date: Wed, 18 Mar 1998 13:56:11 -0800 (PST) From: Haobo Yu Reply-To: Haobo Yu To: freebsd-questions@FreeBSD.ORG cc: faber@isi.edu Subject: bad blocks on hard disk Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greetings, I'm running FreeBSD 2.2.2 on a PC. It worked great until last week. A power failure left many bad blocks on my hard disk (Seagate ST36450, IDE), both in my swap partition and my home partition. I looked through the handbook and FAQ and man pages, bad144 and badsect are the only thing I could find. I tried to use bad144 to correct it, but it complained about too many bad blocks in a slice. It seems that bad144 can only handle 126 bad sectors per slice and I got too many. I couldn't use badsect because (1) my swap partition is corrupted; (2) I don't know how to generate a list of all bad sectors. I also tried to reformat my partition using /stand/sysinstall. It seems that it also relies on bad144, and newfs simply doesn't do surface check at all. So this try failed again. Does anybody know any solution to mark these bad blocks so that they will not be used again? Is there anything like Norton Disk Doctor or Sun's format in FreeBSD? Thank you very much. - Haobo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message