by the way, you should put (#) in the begining of the line , not in front of the line as you said.
anyway....
you have to install ubuntu on its own partition alongside windows or delete windows OS. and install ubuntu on the first partiton (sda1).
but before to do anything, backup your data & make sure to check your hard disk and do defragment for all the harddisk partitions :read this
first, you need to fix the MBR with a bootable winxp CD to restore winxp OS.
boot off a WINXP-CD and when the menu loads, press "R" to go to a command prompt, Once there, choose which partition you want (usually is 1), and enter an admin password (if any).
and then run these commands :
fixboot
fixmbr
exit
after that we need to restore ubuntu boot-loader too:
01 - boot off your Ubuntu-LiveCD (try without install)
02 - open Terminal type:
sudo -i
03 - then type:
fdisk -l
04 - if you have just one harddisk on your PC you will got something like this, ex; on an old PC:
fdisk -l
Disk /dev/sda: 40.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf6edf6ed
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1217 9775521 7 HPFS/NTFS
/dev/sda2 1218 4866 29306401 f W95 Ext’d (LBA)
/dev/sda5 1218 2434 9775521 7 HPFS/NTFS
/dev/sda6 2435 3650 9765888 b W95 FAT32
/dev/sda7 365 3772 972800 82 Linux swap / Solaris
/dev/sda8 3772 4866 8786944 83 Linux
05 - mount ubuntu partition:
mount /dev/sda8 /mnt
06 - install grub2 on MBR section in 'sda' (the best place) do not install it on the partiton. ex: 'sda1':
grub-install --root-directory=/mnt/ /dev/sda
07 - if no errors appear that means everything is OK :
reboot
08 - return to ubuntu OS & open Terminal and type:
sudo update-grub
now, Ubuntu sure recognise windows OS and add it to grub menu
that's all
:-)
PS: my english isn't good , if I made a mistake , please correct it .