<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
On 05/06/2010 11:32 AM, Goh Lip wrote:
<blockquote cite="mid:hruufl$9tg$1@dough.gmane.org" type="cite">
  <pre wrap="">On 05/07/2010 12:58 AM, stan wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">On Thu, May 06, 2010 at 08:12:43PM +0800, Goh Lip wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">On Thu, 6 May 2010 07:19:27 -0400
stan<a class="moz-txt-link-rfc2396E" href="mailto:stanb@panix.com"><stanb@panix.com></a>  wrote:



      </pre>
      <blockquote type="cite">
        <pre wrap="">It's a brand new plain vanila install, that I did from scratch .
So, I am assuming that the current default is grub2, right?
This machine was not upgraded, or anything like that, it was just
installed from teh CD, with all defaults, and apt-get updatetd
a time or two, and yesterday morning, when I went to do another
apt-get upgrade, I ran in to this issue.

        </pre>
      </blockquote>
      <pre wrap="">


If you have a grub rescue cd, boot into lucid and at terminal
sudo update-grub
sudo grub-install /dev/sda


If you don't have grub rescue cd. boot livecd and follow instructions
from
<a class="moz-txt-link-freetext" href="http://grub.enbug.org/Grub2LiveCdInstallGuide">http://grub.enbug.org/Grub2LiveCdInstallGuide</a>
      </pre>
    </blockquote>
  </blockquote>
</blockquote>
            I went to this location and they had this:<br>
<br>
<h2 id="head-44c93474d8b7c35a2f458aadbea2997a39da2177">Commands list</h2>
<span class="anchor" id="line-47"></span>
<p class="line874">This is a list of the commands executed in order, <span
 class="anchor" id="line-48"></span><span class="anchor" id="line-49"></span></p>
<ol type="1">
  <li>
    <p class="line891"><strong>sudo fdisk -l</strong> <span
 class="anchor" id="line-50"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo mount /dev/sda1 /mnt</strong> <span
 class="anchor" id="line-51"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo mount --bind /dev /mnt/dev</strong>
    <span class="anchor" id="line-52"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo mount --bind /proc /mnt/proc</strong>
    <span class="anchor" id="line-53"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo mount --bind /sys /mnt/sys</strong>
    <span class="anchor" id="line-54"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo chroot /mnt</strong> <span
 class="anchor" id="line-55"></span></p>
  </li>
  <li>
    <p class="line891"><strong>(optional, only if you're on
Ubuntu/Debian) apt-get install grub-pc</strong> <span class="anchor"
 id="line-56"></span></p>
  </li>
  <li>
    <p class="line891"><strong>grub-mkconfig -o /boot/grub/grub.cfg</strong>
    <span class="anchor" id="line-57"></span></p>
  </li>
  <li>
    <p class="line891"><strong>grub-install /dev/sda</strong> (try <strong>grub-install
--recheck /dev/sda</strong> if it fails) <span class="anchor"
 id="line-58"></span></p>
  </li>
  <li>
    <p class="line891"><strong>Ctrl+D</strong> (to exit out of chroot) <span
 class="anchor" id="line-59"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo umount /mnt/dev</strong> <span
 class="anchor" id="line-60"></span></p>
  </li>
  <li>
    <p class="line891"><strong>sudo umount /mnt</strong></p>
  </li>
</ol>
<br>
    I believe 2. should be "sudo mount -t ext4 /dev/sda /mnt"<br>
Steps 3. 4. 5. are not needed. At 8. you can use "update-grub" which is
the same as he shows see "man update-grub". 9. is bad if grub-install
/dev/sda fails. The man page shows nothing like this.<br>
The rest are fine.<br>
<br>
    All definitive web pages are not accurate. <br>
<br>
73 Karl<br>
 <br>
<br>
<br>
<pre class="moz-signature" cols="72">-- 

        Karl F. Larsen, AKA K5DI
        Linux User
        #450462   <a class="moz-txt-link-freetext" href="http://counter.li.org">http://counter.li.org</a>.
        Key ID = 3951B48D

</pre>
</body>
</html>