From owner-freebsd-questions@FreeBSD.ORG Mon Dec 18 19:13:44 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2769A16A407 for ; Mon, 18 Dec 2006 19:13:44 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1622243CA0 for ; Mon, 18 Dec 2006 19:13:42 +0000 (GMT) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id kBII9ZnO019390; Mon, 18 Dec 2006 13:09:35 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id kBII9Yeh019389; Mon, 18 Dec 2006 13:09:34 -0500 (EST) (envelope-from jerrymc) Date: Mon, 18 Dec 2006 13:09:34 -0500 From: Jerry McAllister To: Marc van Woerkom Message-ID: <20061218180934.GA19345@gizmo.acns.msu.edu> References: <4586AE6D.3080704@fernuni-hagen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4586AE6D.3080704@fernuni-hagen.de> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: Dealing with bad blocks on a hard disc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2006 19:13:44 -0000 Hi, > Hi, > > my notebook's hard drive seems to be damaged: > > Dec 18 15:49:13 hokage kernel: ad0: FAILURE - READ_DMA > status=51 error=40 LBA=9919567 > Dec 18 15:49:13 hokage kernel: > g_vfs_done():ad0s1f[READ(offset=1360723968, length=32768)]error = 5 > Dec 18 15:49:13 hokage kernel: vnode_pager_getpages: I/O read error > Dec 18 15:49:13 hokage kernel: vm_fault: pager read error, pid 1048 (cvsup) > Dec 18 15:49:17 hokage kernel: ad0: FAILURE - READ_DMA > status=51 error=40 LBA=9919567 > Dec 18 15:49:17 hokage kernel: > g_vfs_done():ad0s1f[READ(offset=1360723968, length=32768)]error = 5 > Dec 18 15:49:17 hokage kernel: vnode_pager_getpages: I/O read error > Dec 18 15:49:17 hokage kernel: vm_fault: pager read error, pid 1048 (cvsup) > Dec 18 15:49:17 hokage kernel: pid 1048 (cvsup), uid 0: exited on signal 6 > > Is it possible to check the disc for bad blocks and to mark them as > unusable, > thus allowing me continue using the hard drive? > > Or what would you recommend? My main recommendation is to get what you can off the disk and replace it as soon as possible. Disk failures are progressive. When one shows up, more are quite sure to follow. > Funny, I use FreeBSD about 10 years, this is the first time I have > that problem and it seems not to be addressed in the handbook. That is probably because it is not really an OS issue. In modern disks it happens at the hardware controller level. Almost all disks nowdays have spare sectors that the controller maps to automatically when it detects a bad one. You do not even see it happening. Then when you finally see bad disk reads/writes reported, it is typically after the controller has used up all of its spare sectors and can no longer do any remapping. It is an indication that there have been some failures already and more are happening. This issue has been covered numerous times in this list - usually about every 4 to 6 weeks it comes up. It is also covered in some FAQs somewhere, maybe in some of the online magazines. I haven't checked the handbook, but it wouldn't hurt to have a mention there. I think there may be some utilities out there that will allow you to access the disk controller for such things, but I don't know them. You might check with the disk manufacturer. Some of them have disk diagnostics, maintenance and recovery tools available. But, you need to assume that is only going to at best let you rescue some remaining data after you have already moved to a new drive. ////jerry > > Regards, > Marc > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"