Dual boot HP desktop that had Windows 7 and Ubuntu 12.04 working fine until yesterday. Upgraded to 12.10 and the grub install gave an error of not being able to write to the boot sector. It looks like the situation is similar to the one in this bug.

Here is the pastebin from an unsuccessful boot-repair - http://pastebin.ubuntu.com/1290132/

Not booting at all now and goes back to grub rescue all the time.

Can someone help so that the system shall start booting again?