From owner-freebsd-questions Mon Nov 11 14: 3:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B851837B401 for ; Mon, 11 Nov 2002 14:03:47 -0800 (PST) Received: from soda.csua.berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.112.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6113B43E6E for ; Mon, 11 Nov 2002 14:03:47 -0800 (PST) (envelope-from joup@bnet.org) Received: from soda.csua.berkeley.edu (IDENT:jTdRJvhjQskN+rDmtllHSdx5cxnUs76K@localhost [127.0.0.1]) by soda.csua.berkeley.edu (8.12.3/8.12.3) with ESMTP id gABM3lB4010331 for ; Mon, 11 Nov 2002 14:03:47 -0800 (PST) (envelope-from joup@bnet.org) Received: from localhost (mjm@localhost) by soda.csua.berkeley.edu (8.12.3/8.12.3/Submit) with ESMTP id gABM3lAw010326 for ; Mon, 11 Nov 2002 14:03:47 -0800 (PST) X-Authentication-Warning: soda.csua.berkeley.edu: mjm owned process doing -bs Date: Mon, 11 Nov 2002 14:03:46 -0800 (PST) From: Mark Miller X-X-Sender: mjm@soda.csua.berkeley.edu To: freebsd-questions@freebsd.org Subject: retrieving data from a failing drive Message-ID: <20021111135649.S8068-100000@soda.csua.berkeley.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I have a 20G /usr partition (IDE drive) that is reporting hard errors at a certain sector. I've run fsck -y many times, and each time it hits the bad sector, it falls back from DMA to PIO mode, and finally exits, saying "The filesystem is still marked dirty, please run fsck again." I'm looking around for a new drive that I can restore to, but I don't know how to read data off a dirty filesystem. Is there any way I can force the FS to be marked clean, or to mount a dirty filesystem (possibly in read-only mode)? OTOH, would something like netbsd's g4u (ghost for unix) help me out here? TIA Mark Miller To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message