accidently I chose recovery of windows in my grub menu and it promptly overwote now I dont have any boot at all. I have tried various methods with no success for example as below but when I get to sudo chroot /mnt it says unable to resolve host ubuntu.
running 11.10 x64
You'll need to install GRUB manually. To do that you'll have to boot up using a live CD then do the following:
Setup a chroot environment. open a terminal and mount the root partition to /mnt sudo mount /dev/sdXy /mnt sdXy being the root partition of your installed ubuntu, e.g. /dev/sda5. you can find that out using sudo fdisk -l next, mount some virtual devices sudo mount -bind /dev /mnt/dev sudo mount -bind /proc /mnt/proc sudo mount -bind /sys /mnt/sys chroot into the installed system sudo chroot /mnt finally, (re)install GRUB grub-install --recheck /dev/sdX sdX is the internal hard drive, probably /dev/sda and while we're at it, we may as well update it, too. update-grub if there were no errors during the installation, you can type "exit" to leave chroot nd then simply reboot the computer. you should then be able to boot both windows and linux.