From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jorge R . Csapo" Subject: Re: Bad Blocks Date: Thu, 19 Sep 2002 12:23:26 -0300 Sender: linux-admin-owner@vger.kernel.org Message-ID: <20020919122326.B1485@completo.com.br> References: Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: ; from Mike.Abiy@EC.gc.ca on Thu, Sep 19, 2002 at 08:48:09AM -0600 List-Id: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "Abiy,Mike [Edm]" Cc: linux-admin@vger.kernel.org assim falou Abiy,Mike [Edm] (em 19/09/2002): > I would like to apologize, first, if this happens to be a simple question. > > 1. How does one test for bad blocks on a hard drive in linux. > > 2. More important, how does one render a bad block on hard drive unreadable, > so that the bad block utility that was used( whatever it may be) and/or > program does not try to write or read to this same bad block, resulting in > the same errors happening again and again. mkfs -c does just that, addressing both 1. and 2. > > 3. This was necessitated by trips to a remote site from remote power bootup > ( sometime it is absolutely necessary to do that) to do a manual fsck, > because the linux box stops the normal bootup process awaiting manual > intervention to do manual fsck. This is totally configurable, meaning the necessity for a manual fsck can simply be removed. You can either prevent Linux from fsck'ing at boot (not a really good idea) or force fsck at every boot but with options that don't require manual intervention. The way to do this depends on your distro, but it may involve editing /etc/inittab, a number of /etc/rc.d files, re-creating your filesystems or all of the above... -- Jorge R. Csapo -------------------------------------------------- /"\ \ / CAMPANHA DA FITA ASCII - CONTRA MAIL HTML X ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL / \ -------------------------------------------------- http://www.completo.com.br/~jorge =========================================== With a PC, I always felt limited by the software available. On Unix, I am limited only by my knowledge. --Peter J. Schoenster