From owner-freebsd-fs@FreeBSD.ORG Thu Feb 24 17:55:55 2005 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0079516A4CE for ; Thu, 24 Feb 2005 17:55:55 +0000 (GMT) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C2EC43D2F for ; Thu, 24 Feb 2005 17:55:54 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.13.1) with ESMTP id j1OHt5PY094642; Thu, 24 Feb 2005 12:55:05 -0500 (EST) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.13.1/Submit) id j1OHt04P094635; Thu, 24 Feb 2005 12:55:00 -0500 (EST) (envelope-from bv) Date: Thu, 24 Feb 2005 12:54:59 -0500 From: Bill Vermillion To: falaki@ce.sharif.edu Message-ID: <20050224175459.GA94585@wjv.com> References: <53844.194.225.42.20.1109263952.squirrel@ce.sharif.edu> <421E090E.1030306@cs.tu-berlin.de> <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <61562.194.225.42.20.1109267064.squirrel@ce.sharif.edu> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on bilver.wjv.com cc: freebsd-fs@freebsd.org Subject: Re: badsect X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bv@wjv.com List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2005 17:55:55 -0000 falaki@ce.sharif.edu, the prominent pundit, on Thu, Feb 24, 2005 at 21:14 while half mumbling, half-witicized: > >> [Bad sectors.] What should I do? > > > > Check cables, exchange them. Buy a new hard disk drive. > This is the last choice. Do you know how I can find the bad > sector number? Reading your first message and the man page for badsect makes me wonder if you did things correctly. The first argument to badsect is supposed to be the directory you created to hold the bad sectors. You're argument [as I recall it] was /mnt/data. Antime I've had anything under /mnt it has always been another file system and not the root file system. Getting the error that you did, not finding the block number you passed to it, makes me think you may have not done things correctly. Is 'data' another file system that is mounted upon /mnt. If so you need to make a directory to hold the bad sectors on the filesystem with the problem, and then run badsect on that filesystem, and then run fsck on that filesystem. Your first posting did not have enough details to indicate just how your system was set up. Is my assumption [ assuming is a bad thing to do whit computers ] correct in that /mnt/data is another filesystem? Bill -- Bill Vermillion - bv @ wjv . com