<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.28.3">
</HEAD>
<BODY>
On Sat, 2010-05-22 at 14:05 -0400, m-aaron-r wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
I'm trying to do a favor for a friend by installing Linux on an older  
(but
serviceable) Compaq Celeron system of theirs that suffered death
by windisease.

As delivered the system would fail to boot, though the hard drive seemed
to be working fine when I pulled it and salvaged their user data by  
hooking
the drive up as an external disk on my Linux desktop.  I've returned the
drive to their box and am now trying to install Linux on it using a  
known
good Live CD copy of Ubuntu 9.10 (erase entire disk and install option).

The installation runs fine and the disk gets re-formatted and written  
to without
reporting any errors. However, after install completion, the system  
will not
boot to the hard drive, reporting something like:
&quot;cannot find device #####-#######-######&quot;
I ran the install a couple times using both 10.04 and 9.10;  10.04  
provided
a GRUB shell prompt on one attempt.

I have since run a final test by swapping out the non-booting drive  
with an
old 20gig spare and have successfully installed and booted the system,
so it's not the box it's the drive, and apparently only the &quot;boot  
sector&quot; of the
drive that is the problem.

Is there a way so salvage this drive or re-allocate the failing boot  
sector??

(I'm not keen on handing back a system with an HD of questionable
size, age and reliability, so I would prefer to salvage the 160 Gig  
original
hard disk if it's possible to do so with some confidence.)

Suggestions appreciated!
peace
aaron
_______________________________________________
Ale mailing list
<A HREF="mailto:Ale@ale.org">Ale@ale.org</A>
<A HREF="http://mail.ale.org/mailman/listinfo/ale">http://mail.ale.org/mailman/listinfo/ale</A>
See JOBS, ANNOUNCE and SCHOOLS lists at
<A HREF="http://mail.ale.org/mailman/listinfo">http://mail.ale.org/mailman/listinfo</A>
</PRE>
</BLOCKQUOTE>
<BR>
1. If you can't write to the MBR (Master Boot Record), then you have problems. It might be better to just buy a new drive.<BR>
<BR>
2. If you can write to the MBR, then GRUB should be replacing any data in it with it's own.<BR>
<BR>
You can nuke the data in the MBR by invoking the following command under Linux with root access:<BR>
<BR>
<TT>dd if=/dev/zero of=/dev/hda bs=512 count=1</TT><BR>
<BR>
Then just re-install Ubuntu or whatever. If that doesn't work, then it's more than likely a problem with the drive itself; See #1.<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<BR>
---<BR>
<FONT COLOR="#000000">Collin Pruitt</FONT><BR>
<FONT COLOR="#000000">Ubuntu Member</FONT><BR>
<FONT COLOR="#000000"><A HREF="http://hellow.ath.cx/">http://hellow.ath.cx/</A></FONT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>