<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 05/24/2012 08:44 AM, Bill Stanley wrote:
    <blockquote cite="mid:4FBDA79A.3070804@wowway.com" type="cite">I
      have an older (but still good) computer that dual boots Ubuntu and
      Windows.  The Windows partition needs the Windows OS to be
      reinstalled.
      <br>
      <br>
    </blockquote>
    after installing windows, boot using live cd ( ubuntu )<br>
    <br>
    1] select " try without any change to your computer"<br>
    2] once you have login start the terminal <br>
    3] change to root using " sudo -i" ( prompt will be changed to
    root@ubuntu:~# )<br>
    <br>
    4] find partition location of your ubuntu:-<br>
    <br>
    root@ubuntu:~# fdisk -l<br>
    Disk /dev/sda: 160.0 GB, 160041885696 bytes<br>
    255 heads, 63 sectors/track, 19457 cylinders<br>
    Units = cylinders of 16065 * 512 = 8225280 bytes<br>
    Disk identifier: 0x10031003<br>
    <br>
    Device Boot Start End Blocks Id System<br>
    /dev/sda1 * 1 6374 51199123+ 7 HPFS/NTFS<br>
    /dev/sda2 6375 19457 105089197+ f W95 Ext'd (LBA)<br>
    /dev/sda5 6375 11473 40957686 7 HPFS/NTFS<br>
    <b>/dev/sda6</b> 11474 19457 64131448+ 83 Linux<font color="#ff0000">
      <--- Here</font><br>
    <br>
    5] Create mount-point for ubuntu's partition <br>
    <br>
    root@ubuntu:~# mkdir /media/root<br>
    <br>
    6] mount the partition using following line/command <br>
    root@ubuntu:~# mount <b>/dev/sda6</b> /media/root<br>
    <br>
    7] confirm your root location by typing "ls /media/root"<br>
    root@ubuntu:~# ls /media/root<br>
    bin dev initrd.img lib32 media proc selinux tmp vmlinuz<br>
    boot etc initrd.img.old lib64 mnt root srv usr vmlinuz.old<br>
    cdrom home lib lost+found opt sbin sys var<br>
    <br>
    8] if the output of the above command looks similar to the above
    result we can now install GRUB2<br>
    <br>
    root@ubuntu:~# sudo grub-install --root-directory=/media/root
    /dev/sda<br>
    <br>
    You may see -----> "Installation finished. No error reported.
    This is the contents of the device map<br>
    /media/root/boot/grub/device.map. Check if this is correct or not.
    If any of the lines is<br>
    incorrect, fix it and re-run the script `grub-install'. (hd0)
    /dev/sda"<br>
    <br>
    9] reboot your system !!!<br>
    <br>
    10] No windows entry in grub menu ??<br>
    <br>
    11] boot to your ubuntu<br>
    <br>
    12] start terminal run " update grub2 "<br>
    <br>
    user1@linbox:~$ sudo update-grub2<br>
    [sudo] password for ubuntu:<br>
    Generating grub.cfg ...<br>
    Found Debian background: apollo.tga<br>
    Found linux image: /boot/vmlinuz-2.6.31-15-generic<br>
    Found initrd image: /boot/initrd.img-2.6.31-15-generic<br>
    Found linux image: /boot/vmlinuz-2.6.31-14-generic<br>
    Found initrd image: /boot/initrd.img-2.6.31-14-generic<br>
    Found memtest86+ image: /boot/memtest86+.bin<br>
    Found Windows 7 (loader) on /dev/sda1<br>
    done<br>
    <br>
     13] again reboot .....  you should be able to see windows at grub
    menu !!!!!!!!!!!!!!!!<br>
    <br>
    <br>
    Warm Regards <br>
    -- <br>
    <div class="moz-signature">
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <meta name="GENERATOR" content="OpenOffice.org 3.2 (Unix)">
      <meta name="AUTHOR" content="livewire ">
      <meta name="CREATED" content="20100413;16400600">
      <meta name="CHANGEDBY" content="Livewire ">
      <meta name="CHANGED" content="20110817;15290400">
      <meta name="CHANGEDBY" content="livewire ">
      <style type="text/css">
        <!--
                @page { margin: 2cm }
                P { margin-bottom: 0.21cm }
                A:link { so-language: zxx }
        -->
        </style>
      <p style="margin-bottom: 0cm">*/</p>
      <p style="margin-bottom: 0cm">
        <meta name="CHANGEDBY" content="livewire ">
        Jatin
        Khatri</p>
      <p style="margin-bottom: 0cm">RHCSA RHCE CCNA</p>
      <p style="margin-bottom: 0cm"><a
          href="http://www.fedoraproject.org/wiki/Jatin">www.fedoraproject.org/wiki/Jatin</a>
      </p>
      <p style="margin-bottom: 0cm">Phone (+91) 98250 20393</p>
      <p style="margin-bottom: 0cm; font-style: normal; font-weight:
        normal">
        <font face="arial"><font size="2"><font color="#008000"><font
                face="Arial">Save
                Paper, Save Environment.**</font></font><font
              color="#993366"><br>
            </font><font color="#008000"><font face="Arial"><i><b>(Plant
                    at least one tree in your life and nurture it !!!)</b></i></font></font></font></font></p>
      <p style="margin-bottom: 0cm"><br>
      </p>
    </div>
  </body>
</html>