first try this:
- insert your windows 7 instalation cd/dvd and boot from. choose your language and hit next. when prompted to "install now" appear just look left down to that windos and press repair your computer.
- wait and a new windows rise with operatings system instaled in your pc. click on "windows 7" and hit next.
in the next window press "Command "Prompt". when command prompt window appear type that:
press enter and:
press enter again and then close that command prompt window and restart your pc.
Note: between "bootrec" and "/" there is a space, dont forget.
- After that i think you will no longer have option to choose between operating systems to boot on startup. you will must to repair grub.( i think you can do that with ubuntu live cd. but i am not sure.
Good luck. Let me know if you fix that.
(Easy way is after repair windows 7 boot format the linux partition and reinstall linux:D)
To repair grub after fix windows 7 boot:
To recover grub:
1.Open the live version.
2.Open the terminal and run
sudo fdisk -l
to see where Linux is installed.
sudo mount /dev/sdaX /mnt
where X is the number you have found Linux word in
sudo grub-install --root-directory=/mnt /dev/sda
to install grub.
sudo update-grub to update grub, and if this command didn't work run it after rebooting.
For me #5 command didn't work. So i restart the computer and after restart, computer boot directly in to ubuntu O.S.
So i loged as root and write this command:
That solve the problem.