unable to boot ubuntu with window xp

view full story

http://askubuntu.com – I have 500gb of HDD, my partition are like this 80 GB windows (primary partition) /dev/sda1 80 GB ubuntu 12.04 (primary partition) (/dev/sda2) and remaining extended partition of >300 GB (/dev/sda4) my motherboard is efi compatible, initially i installed window in efi mode of bios, after a lot workaround of installing dual boot system in efi mode i switched back to legacy mode I installed ubuntu 12.04 after switching back to legacy mode and every time i start my system windows xp start. I tried to rewrite grub from live cd these are the commands i got from many site sudo mount /dev/sdx / (HowTos)