<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi <div><br></div><div>I'd be very grateful for a bit of advice regarding a Grub issue, please.</div><div><br></div><div>I have a dual boot desktop, running 10.04 LTS and Windows XP. I recently made the mistake of running a free Windows disk management tool in the XP partition which appeared to corrupt the MBR.</div><div><br></div><div>The result was that when I subsequently booted up I just got the "Grub Rescue" prompt. With a combination of research and trial-and-error I was able to get the PC to boot properly, with access to both Ubuntu and XP using the following commands at the "Grub Rescue" prompt:</div><div><br></div><div><meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="LibreOffice 3.3 (Linux)">
<style type="text/css">
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style>
<p style="margin-bottom: 0cm">set prefix=(hd0,5)/boot/grub</p>
<p style="margin-bottom: 0cm"><br>
</p>
<p style="margin-bottom: 0cm"> set root=(hd0,5)</p>
<p style="margin-bottom: 0cm"><br>
</p>
<p style="margin-bottom: 0cm"> insmod normal</p>
<p style="margin-bottom: 0cm"><br>
</p>
<p style="margin-bottom: 0cm"> normal</p><p style="margin-bottom: 0cm"><br></p><p style="margin-bottom: 0cm">While I could type this in with every boot, you will appreciate that it would be a bit of a pain. Could anybody suggest a way of saving these commands so that they run automatically, thereby restoring my machine fully back to normal?</p><p style="margin-bottom: 0cm"><br></p><p style="margin-bottom: 0cm">Thanks.</p><p style="margin-bottom: 0cm"><br></p><p style="margin-bottom: 0cm">Regards</p><p style="margin-bottom: 0cm"><br></p><p style="margin-bottom: 0cm">Nige</p></div> </div></body>
</html>