old-www/LDP/LG/issue37/tag/38.html

256 lines
9.1 KiB
HTML

<!--startcut ======================================================= -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<META NAME="generator" CONTENT="lgazmail v1.1H.i">
<TITLE>The Answer Guy 37: Low Level Formatting</TITLE>
</HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"
LINK="#3366FF" VLINK="#A000A0">
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<H4>"The Linux Gazette...<I>making Linux just a little more fun!</I>"</H4>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<center>
<H1><A NAME="answer">
<img src="../../gx/dennis/qbubble.gif" alt="(?)"
border="0" align="middle">
<font color="#B03060">The Answer Guy</font>
<img src="../../gx/dennis/bbubble.gif" alt="(!)"
border="0" align="middle">
</A></H1>
<BR>
<H4>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>
</center>
<p><hr><p>
<!-- endcut ======================================================= -->
<!-- begin 38 -->
<H3 align="left"><img src="../../gx/dennis/qbubble.gif"
height="50" width="60" alt="(?) " border="0"
>Low Level Formatting</H3>
<p><strong>From William Smith on Tue, 19 Jan 1999
</strong></p>
<P><STRONG>
How do you perform a low level format on your hard disk, my system has a
virus received when dwn loading from the net that keeps throwing it into
safe mode. I have completed <tt>C:\format</tt> and re-installed windows, it ran
great for six months and went back into the safe mode. I was able to get it
back up and running, but I can't remember how to perform the low level
formatting.
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
You don't actually need a "low-level" format. You
can just "zero out" or "wipe" the drive.
</BLOCKQUOTE>
<BLOCKQUOTE>
Boot up Linux (Tom's Root/Boot at <A HREF="http://www.toms.net/rb"
>http://www.toms.net/rb</A>)
and issue the command:
</BLOCKQUOTE>
<BLOCKQUOTE><BlockQuote><code>
dd if=/dev/zero of=/dev/hda
</code></BlockQuote></BLOCKQUOTE>
<BLOCKQUOTE>
... to wipe out the whole first IDE drive, or
</BLOCKQUOTE>
<BLOCKQUOTE><BlockQuote><code>
dd if=/dev/zero of=/dev/sda
</code></BlockQuote></BLOCKQUOTE>
<BLOCKQUOTE>
... to wipe out the whole first SCSI drive.
</BLOCKQUOTE>
<BLOCKQUOTE>
Actually you could just blow away one sector on
these drives using
</BLOCKQUOTE>
<BLOCKQUOTE><BlockQuote><code>
dd if=/dev/zero of=/dev/sda count=1
</code></BlockQuote></BLOCKQUOTE>
<BLOCKQUOTE>
It wouldn't make sense to do this to other drives
(/dev/hdb, <TT>/dev/hdc</TT>, <TT>/dev/sdb</TT>, etc) since their
boot sectors aren't referenced as code and you can
reformat those drives with normal DOS or Linux commands
to re-make your filesystems on them. However, you can
issue this command for all of your drives if you like.
In fact you should be able to do something like:
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
for i in a b c d; do
dd if=/dev/zero of=/dev/hd$i
done
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
... to get four IDE drives or
</BLOCKQUOTE>
<BLOCKQUOTE><pre>
for i in a b c d e f g ; do
dd if=/dev/zero of=/dev/hd$i
done
</pre></BLOCKQUOTE>
<BLOCKQUOTE>
... to wipe out all seven disks on a SCSI chain.
</BLOCKQUOTE>
<P><STRONG><IMG SRC="../../gx/dennis/qbub.gif" ALT="(?)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Can you assist me... Help!!!!!!!!!!!
William
<IMG SRC="../../gx/dennis/smily.gif" ALT=":-)"
height="24" width="20" align="middle">
</STRONG></P>
<BLOCKQUOTE><IMG SRC="../../gx/dennis/bbub.gif" ALT="(!)"
HEIGHT="28" WIDTH="50" BORDER="0"
>
Now. I realize that you didn't ask about Linux, and
you might have no idea why I'm responding to your question
with a suggestion that involves it.
</BLOCKQUOTE>
<BLOCKQUOTE>
Before you write back to be to ask those questions ---
DON'T.
</BLOCKQUOTE>
<BLOCKQUOTE>
I answer Linux questions. Microsoft sold you Windows 9x ---
you can get tech support from them or you can find a free
"Windows Answer Guy." I don't like MS Windows and I don't
use it. I will not freely answer questions, from strangers
that don't relate to the products that I do use and like.
</BLOCKQUOTE>
<blockquote><em>[ Try <a href="http://www.winfiles.com/"
>Winfiles.Com</a>, they have Tips and Howto areas.
-- Heather ]
</em></blockquote>
<BLOCKQUOTE>
Linux, like other forms of Unix, is basically not
susceptible to computer viruses. This is largely a matter
of typical usage (they are multi-user systems which protect
the system and most user accounts from most activities of
individual users. Most Linux and Unix just don't run as
"root" --- and consequently trojan horses and viruses
normally cannot utterly cripple a whole system just because
the guy at the keyboard ran them).
</BLOCKQUOTE>
<BLOCKQUOTE>
This is not to say that they are "safe" from trojans --- a
trojan can still blow away or corrupt any files owned by the
guy that runs them. But it's a lot better, in the long run,
than the common case with DOS, Windows, and MacOS. I
think it's worth the extra learning curve and the occasional
inconvenience (of having to switch to another "virtual
console" or window and log in as root).
</BLOCKQUOTE>
<BLOCKQUOTE>
So, consider getting a copy of Tom's Root/Boot. It's a
relatively powerful Linux distribution on a single floppy
with enough power and utility to be useful. There are
several other Linux distributions that fit on one, two
or three floppies, and run from RAM disks.
</BLOCKQUOTE>
<BLOCKQUOTE>
Consider trying a full blown Linux distribution
(like Red Hat <A HREF="http://www.redhat.com"
>http://www.redhat.com</A>,
Debian
<A HREF="http://www.debian.org"
>http://www.debian.org</A>,
S.u.S.E. <A HREF="http://www.suse.com"
>http://www.suse.com</A>,
Caldera, <A HREF="http://www.caldera.com"
>http://www.caldera.com</A>, or any of the others).
That will give you a choice. You'll have a basis for
comparison and you then go back to (continue to use)
Windows or you learn more about the OS that a few million
others have adopted.
</BLOCKQUOTE>
<!-- sig -->
<!-- end 38 -->
<!--startcut ======================================================= -->
<P> <hr> <P>
<H5 align="center"><a href="http://www.linuxgazette.com/copying.html"
>Copyright &copy;</a> 1999, James T. Dennis
<BR>Published in <I>The Linux Gazette</I> Issue 37 February 1999</H5>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P align="center">
<table width="98%"><tr valign="center" align="center">
<td rowspan="3" colspan="4"><A HREF="../lg_answer37.html"><IMG
SRC="../../gx/dennis/answernew.gif"
ALT="[ Answer Guy Index ]"></A></td>
<TD width="8%"><A HREF="./1.html">1</A></TD>
<TD width="8%"><A HREF="./2.html">2</A></TD>
<TD width="8%"><A HREF="./3.html">3</A></TD>
<TD width="8%"><A HREF="./4.html">4</A></TD>
<TD width="8%"><A HREF="./5.html">5</A></TD>
<TD width="8%"><A HREF="./6.html">6</A></TD>
<TD width="8%"><A HREF="./7.html">7</A></TD>
<TD width="8%"><A HREF="./8.html">8</A></TD>
<TD width="8%"><A HREF="./9.html">9</A></TD>
<TD width="8%"><A HREF="./10.html">10</A></TD>
</tr><tr valign="center" align="center">
<TD><A HREF="./11.html">11</A></TD>
<TD><A HREF="./12.html">12</A></TD>
<TD><A HREF="./14.html">14</A></TD>
<TD><A HREF="./15.html">15</A></TD>
<TD><A HREF="./16.html">16</A></TD>
<TD><A HREF="./17.html">17</A></TD>
<TD><A HREF="./18.html">18</A></TD>
<TD><A HREF="./19.html">19</A></TD>
<TD><A HREF="./21.html">21</A></TD>
<TD><A HREF="./22.html">22</A></TD>
</tr><tr valign="center" align="center">
<TD><A HREF="./23.html">23</A></TD>
<TD><A HREF="./28.html">28</A></TD>
<TD><A HREF="./29.html">29</A></TD>
<TD><A HREF="./30.html">30</A></TD>
<TD><A HREF="./31.html">31</A></TD>
<TD><A HREF="./32.html">32</A></TD>
<TD><A HREF="./33.html">33</A></TD>
<TD><A HREF="./34.html">34</A></TD>
<TD><A HREF="./37.html">37</A></TD>
<TD><A HREF="./38.html">38</A></TD>
</tr><tr valign="center" align="center">
<TD><A HREF="./39.html">39</A></TD>
<TD><A HREF="./41.html">41</A></TD>
<TD><A HREF="./42.html">42</A></TD>
<TD><A HREF="./43.html">43</A></TD>
<TD><A HREF="./44.html">44</A></TD>
<TD><A HREF="./45.html">45</A></TD>
<TD><A HREF="./46.html">46</A></TD>
<TD><A HREF="./47.html">47</A></TD>
<TD><A HREF="./48.html">48</A></TD>
<TD><A HREF="./49.html">49</A></TD>
</tr></table>
</P>
<P> <hr> <P>
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<P> <hr> <P>
<!-- begin lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<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_bytes37.html"
><IMG SRC="../../gx/back2.gif" ALT="[ Previous Section ]"></A>
<A HREF="../york.html"
><IMG SRC="../../gx/fwd.gif" ALT="[ Next Section ]"></A>
<!-- end lgnav ::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
<!-- ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: -->
</BODY></HTML>
<!--endcut ========================================================= -->