old-www/LDP/LG/issue28/tag_cluster.html

82 lines
3.1 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<TITLE>The Answer Guy 28: Bad cluster in HDD </TITLE>
</head>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#A000A0"
ALINK="#FF0000">
<!--endcut ========================================================= -->
<H4>"Linux Gazette...<I>making Linux just a little more fun!</I>"
</H4>
<P> <hr> <P>
<!-- =============================================================== -->
<H1 align="center"><A NAME="answer">
<img src="../gx/dennis/qbubble.gif" alt="" border="0" align="middle">
<a href="./lg_answer28.html">The Answer Guy</a>
<img src="../gx/dennis/bbubble.gif" alt="" border="0" align="middle">
</A></H1> <BR>
<H4 align="center">By James T. Dennis,
<a href="mailto:linux-questions-only@ssc.com">linux-questions-only@ssc.com</a><BR>
Starshine Technical Services,
<A HREF="http://www.starshine.org/">http://www.starshine.org/</A> </H4>
<p><hr><p>
<H3><img src="../gx/dennis/qbub.gif" alt="(?)" width="50" height="28"
align="left" border="0">Bad cluster in HDD </H3>
<p><strong>From Thomas Vavra on Wed, 15 Apr 1998 </strong></p>
<p><strong>
Hi there!
<br><br>
I got a neat, fast 1,6GB HDD (WD IDE) with one "bad cluster" as DOS
calls it. Is there any way in using it for linux(marking the cluster as
bad or something like that?)</strong></p>
<blockquote><img src="../gx/dennis/bbub.gif" alt="(!)" width="50" height="28"
align="left" border="0">No
problem. Linux distributions come with a program named '<tt>badblocks</tt>'
it handles this for you. The best way to do it is to let '<tt>mkfs</tt>'
call badblocks using its internally supported switches.
<br><br>
For ext2 filesystems you'd use <tt>mke2fs</tt> or <tt>mkfs.ext2</tt>
(usually links to the same file). Just add the <tt>-c</tt> switch to
the command when you invoke it (and read the man page for details).
<br><br>
If you already have an ext2fs on a drive and you suspect that new bad
blocks have developed (for example you've dropped the drive or the
machine's been through an earthquake) you can run <tt>e2fsck</tt> (or
<tt>fsck.ext2</tt> as it may be linked) with the <tt>-c</tt> switch.
<br><br>
Like I said, easy!
<br><br>
(Naturally I suggest you do these from single user mode, and do
proper backups).
</blockquote>
<!--================================================================-->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright &copy;</a> 1998, James T. Dennis <BR>
Published in <I>Linux Gazette</I> Issue 28 May 1998</H5>
<P> <hr> <P>
<!--================================================================-->
<A HREF="./index.html"><IMG SRC="../gx/indexnew.gif"
ALT="[ Table Of Contents ]"></A>
<A HREF="../index.html"><IMG SRC="../gx/homenew.gif"
ALT="[ Front Page ]"></A>
<A HREF="./lg_answer28.html"><IMG SRC="../gx/dennis/answernew.gif"
ALT="[ Answer Guy Index ]"></A>
<!--startcut ======================================================= -->
</body>
</html>
<!--endcut ========================================================= -->