For this method to work Grub must be placed in the Linux root partition and Not the MBR.
Then you run the DD command.
How many partitions do you have on your computer?
How do I do that?
2.
Thanks
Recovering GRUB after reinstalling Windows
As above, when Windows is reinstalled, the master boot record will be overwritten. This can be avoided by backing up the boot sector, by following the instructions from step 2 in the above section 'Installing Windows After Ubuntu'.
An alternative method is to use the Ubuntu LiveCD to reinstall the GRUB boot sector, here are step-by-step instructions, to be run after Windows has been reinstalled:
- Boot into a LiveCD .....You have an Ubuntu Live CD right?
- Open a terminal
- Open the GRUB Command line utility by typing
sudo grub
- Tell GRUB where your Ubuntu partition is by entering
- root (hdA,B).... IN YOUR CASE root (hd0,1)...... Ubuntu is on your 1st harddrive 2nd partition
Where 'A' is the hard-drive number, starting at 0, and 'B' is the partition number, starting at 0. For example, if Ubuntu was installed on the second partition of the first hard-drive, the command should be
root (hd0,1).... RUN THIS.....there is a space between ROOT and (
- Tell GRUB which drive to put the boot sector on
setup (hd0,1)... RUN THIS....... will install GRUB to partition and not MBR.....
there is a space between SETUP and (
If you run...... setup (hdo)....... it will install GRUB to MBR.
- Leave the GRUB Command line
- quit..RUN THIS
and reboot. This will not give dual-boot yet.
If this works post back and I will help with the next part. This is the link:
https://help.ubuntu.com/community/WindowsDualBoot