From owner-freebsd-questions Sun Aug 5 19: 6:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail9.sdc1.sfba.home.com (femail9.sdc1.sfba.home.com [24.0.95.89]) by hub.freebsd.org (Postfix) with ESMTP id D678737B403 for ; Sun, 5 Aug 2001 19:06:41 -0700 (PDT) (envelope-from garycor@home.com) Received: from home.com ([24.3.185.85]) by femail9.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20010806020641.ZDOK7798.femail9.sdc1.sfba.home.com@home.com> for ; Sun, 5 Aug 2001 19:06:41 -0700 Message-ID: <3B6DFBDA.34B444C6@home.com> Date: Sun, 05 Aug 2001 22:07:22 -0400 From: "Gary T. Corcoran" X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Hard error on IDE drive Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 I have a 37G IBM IDE drive which was not working when I powered up my FreeBSD system after vacation. Today I checked the IDE and power connections, and it was again recognized by the Promise IDE controller. But attempting to mount it told me the filesystem was dirty, and I should run fsck. I did that, and it found some 'hard error's on 2 (or 4, hard to tell) sectors. At the end of fsck, it told me the system was still dirty and to rerun fsck. I did that, and it fixed up some more filesystem things. But it said to rerun fsck again. I've done fsck 5 times now, and it's still says the filesystem is 'dirty', even though it has found no more errors except for the 'hard error's for the 2 (or 4) sectors. I thought that with modern drives, either A) the drive would remap the bad sector(s) upon a hard error, and/or B), the fsck would mark the sectors as bad in the filesystem and just not use them anymore (after I allowed it to remove the files which were using those sectors). I looked through the email archives for 'hard AND error' and found NOTHING, and the fsck man page gave no clue, so I'm asking here: how does one 'fix' this situation to let me use the drive again? (I'm running FreeBSD 3.2 on that system, if that matters). BTW, I *was* able to mount the drive read-only, so at least I can access my files. But with 35GB of files, backed up only by scattered directories on hundreds of CDR's, I do NOT want to 'newfs' the partition and spend weeks restoring my files. One of the fsck runs told me which files were lost due to the sector errors, and luckily they were not important. I just want to be able to use the drive as-is, minus the errored sectors. How do I do that? Thanks, Gary To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message