From owner-freebsd-questions Tue Apr 9 15:23:23 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id PAA22508 for questions-outgoing; Tue, 9 Apr 1996 15:23:23 -0700 (PDT) Received: from soda.CSUA.Berkeley.EDU (soda.CSUA.Berkeley.EDU [128.32.43.52]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id PAA22493 for ; Tue, 9 Apr 1996 15:23:17 -0700 (PDT) Received: (from richardc@localhost) by soda.CSUA.Berkeley.EDU (8.6.12/8.6.12) id PAA24005; Tue, 9 Apr 1996 15:21:35 -0700 Date: Tue, 9 Apr 1996 15:21:34 -0700 (PDT) From: Richard Chang To: "Lenzi, Sergio" cc: questions@freebsd.org Subject: Re: hard reading error In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Tue, 9 Apr 1996, Lenzi, Sergio wrote: > On Tue, 9 Apr 1996, J Wunsch wrote: > > > As Richard Chang wrote: > > > > > I am experiencing a problem with my FreeBSD partition with a hard > > > reading error on my hard drive since someone accidentally kicked the > > > machine while it was running. I had fixed the problem in DOS by > > > repairing it with Norton Disk Doctor, is there a way to do it under FreeBSD? Hello Sergio, > I correct this problem in my FreeBSD using the badsect program > When the error occurs the system display on the console: FSB NNNNNNNNN > where NNN is the sector number in error. > 1) make a /BAD directory in the file system in error say: /usr/BAD > 2) run badsect /usr/BAD NNNN NNNNN NNNN... > 3) boot the machine with -s option. > 4) run fsck /dev/rwdxx (xx) as indicated in the badsect output > 5) answer to the fsck (y or n) according. (preserve BAD..., no remove > BAD, remove file...) > 6) quit shell and let the system reboot. > 7) recover deleted files listed by fsck. (from the cdrom for example). > > That's it . Tried this but step 2 won't attach.... Richard