PDA

View Full Version : [ubuntu] Windows 7+Ubuntu 9.10 dual boot problem (GRUB2)



daniel7860
February 13th, 2010, 03:35 PM
i was using windows 7 and decided to also install ubuntu 9.10 on the same hard drive, i created another partition within windows and installed ubuntu on there (using a liveusb not wubi) so when i turn my pc on (it's a Dell) i get this message :

GRUB loading.
error:unknown filesystem
grub rescue>

i am now in my liveusb. how can i fix this so i can have an option, wich os i want to boot into.

::::::::this is what i get for "sudo fdisk -l" ::::::::

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfc265f30

Device Boot Start End Blocks Id System
/dev/sda1 * 1 17154 137784641 7 HPFS/NTFS
/dev/sda2 17154 19458 18503680 83 Linux

Disk /dev/sdb: 2047 MB, 2047678976 bytes
255 heads, 63 sectors/track, 248 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00066255

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 248 1992028+ b W95 FAT32


:::::::and this is my grub.cfg file::::::::::

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set ccbb95cd-9496-4d23-b326-dc464c59a1c5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set ccbb95cd-9496-4d23-b326-dc464c59a1c5
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ccbb95cd-9496-4d23-b326-dc464c59a1c5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set ccbb95cd-9496-4d23-b326-dc464c59a1c5
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ccbb95cd-9496-4d23-b326-dc464c59a1c5 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 08e09f67e09f59b0
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

darkod
February 13th, 2010, 04:44 PM
Can you download the script in my signature, move it on desktop for example and run it with:
sudo bash ~/Desktop/boot_info_script*.sh

It will create results.txt file with info about your boot process. Copy the content here and put it in CODE tags for easier reading.

daniel7860
February 13th, 2010, 04:48 PM
============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #2 for /boot/grub.
=> Syslinux is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/grldr /wubildr.mbr /wubildr

sda2: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xfc265f30

Partition Boot Start End Size Id System

/dev/sda1 * 63 275,569,344 275,569,282 7 HPFS/NTFS
/dev/sda2 275,570,688 312,578,047 37,007,360 83 Linux


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 2047 MB, 2047678976 bytes
255 heads, 63 sectors/track, 248 cylinders, total 3999373 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00066255

Partition Boot Start End Size Id System

/dev/sdb1 * 63 3,984,119 3,984,057 b W95 FAT32


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 a40193eb-83ca-2d4a-b6a2-b28afffb0aa1 ext2 casper-rw
/dev/sda1 08E09F67E09F59B0 ntfs
/dev/sda2 ccbb95cd-9496-4d23-b326-dc464c59a1c5 ext4 Ubuntu
/dev/sdb1 3627-FFAD vfat DANIEL

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sdb1 /cdrom vfat (rw)
/dev/loop0 /rofs squashfs (rw)
/dev/sr1 /media/U3 System iso9660 (ro,nosuid,nodev,uhelper=devkit,uid=999,gid=999,io charset=utf8,mode=0400,dmode=0500)


=========================== sda2/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set ccbb95cd-9496-4d23-b326-dc464c59a1c5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set ccbb95cd-9496-4d23-b326-dc464c59a1c5
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ccbb95cd-9496-4d23-b326-dc464c59a1c5 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,2)
search --no-floppy --fs-uuid --set ccbb95cd-9496-4d23-b326-dc464c59a1c5
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=ccbb95cd-9496-4d23-b326-dc464c59a1c5 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 08e09f67e09f59b0
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda2/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda2 during installation
UUID=ccbb95cd-9496-4d23-b326-dc464c59a1c5 / ext4 errors=remount-ro 0 1
/dev/scd1 /media/cdrom2 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda2: Location of files loaded by Grub: ===================


142.7GB: boot/grub/core.img
142.7GB: boot/grub/grub.cfg
142.7GB: boot/initrd.img-2.6.31-14-generic
142.7GB: boot/vmlinuz-2.6.31-14-generic
142.7GB: initrd.img
142.7GB: vmlinuz

darkod
February 13th, 2010, 05:50 PM
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/grldr /wubildr.mbr /wubildr

Do you still have wubi installed on C:? If you do, and you don't need it any more, it's better to remove it from add/remove programs like you remove other windows apps.

Otherwise it looks OK, the grub.cfg file is correct, I can't really see anything wrong with it personally. You might try reinstalling grub2 to the MBR of /dev/sda. Also, you installed ubuntu manually specifying only / partition and without swap partition. It can work like that, but it's just not standard.

If you want to reinstall grub2 to /dev/sda, you can boot with live cd or live usb into the live desktop and in terminal do:

sudo mount /dev/sda2 /mnt
sudo gub-install --root-directory=/mnt/ /dev/sda

See if that helps.
You might also consider opening Gparted from the live desktop, deleting the /dev/sda2 partition and just reinstall ubuntu using the Use Largest Available free space option.

daniel7860
February 13th, 2010, 06:23 PM
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/grldr /wubildr.mbr /wubildr

Do you still have wubi installed on C:? If you do, and you don't need it any more, it's better to remove it from add/remove programs like you remove other windows apps.

Otherwise it looks OK, the grub.cfg file is correct, I can't really see anything wrong with it personally. You might try reinstalling grub2 to the MBR of /dev/sda. Also, you installed ubuntu manually specifying only / partition and without swap partition. It can work like that, but it's just not standard.

If you want to reinstall grub2 to /dev/sda, you can boot with live cd or live usb into the live desktop and in terminal do:

sudo mount /dev/sda2 /mnt
sudo gub-install --root-directory=/mnt/ /dev/sda

See if that helps.
You might also consider opening Gparted from the live desktop, deleting the /dev/sda2 partition and just reinstall ubuntu using the Use Largest Available free space option.
i already tried to reinstall grub many times, it doesnt help
and i did try to install ubuntu again, but i do not have an option that says; use lagest available space

ok i tried to do what you suggested, use gpated to delete sda2, and use the largest space available during installation, but now i get this:

Grub loading
error: no such partition

daniel7860
February 13th, 2010, 06:45 PM
this is what my boot info results.txt looks like Now:


============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #5 for /boot/grub.
=> Syslinux is installed in the MBR of /dev/sdb
sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /bootmgr /Boot/BCD /Windows/System32/winload.exe
/grldr /wubildr.mbr /wubildr

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0xfc265f30

Partition Boot Start End Size Id System

/dev/sda1 * 63 275,569,344 275,569,282 7 HPFS/NTFS
/dev/sda2 275,579,010 312,576,704 36,997,695 5 Extended
/dev/sda5 275,579,073 310,938,074 35,359,002 83 Linux
/dev/sda6 310,938,138 312,576,704 1,638,567 82 Linux swap / Solaris


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 2047 MB, 2047678976 bytes
255 heads, 63 sectors/track, 248 cylinders, total 3999373 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x00066255

Partition Boot Start End Size Id System

/dev/sdb1 * 63 3,984,119 3,984,057 b W95 FAT32


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/loop1 fd7ff82a-f6b6-bb44-a015-0a90002a2e27 ext2 casper-rw
/dev/sda1 08E09F67E09F59B0 ntfs
/dev/sda5 fc5d181e-705a-46b0-8662-84789b9a4642 ext4
/dev/sda6 97adae3d-82f0-475e-a824-7a9769b019f9 swap
/dev/sdb1 66C6-CEAB vfat DANIEL

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sdb1 /cdrom vfat (rw)
/dev/loop0 /rofs squashfs (rw)
/dev/sr1 /media/U3 System iso9660 (ro,nosuid,nodev,uhelper=devkit,uid=999,gid=999,io charset=utf8,mode=0400,dmode=0500)


=========================== sda5/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set fc5d181e-705a-46b0-8662-84789b9a4642
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
if [ ${recordfail} = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set fc5d181e-705a-46b0-8662-84789b9a4642
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=fc5d181e-705a-46b0-8662-84789b9a4642 ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,5)
search --no-floppy --fs-uuid --set fc5d181e-705a-46b0-8662-84789b9a4642
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=fc5d181e-705a-46b0-8662-84789b9a4642 ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set 08e09f67e09f59b0
chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

=============================== sda5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda5 during installation
UUID=fc5d181e-705a-46b0-8662-84789b9a4642 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda6 during installation
UUID=97adae3d-82f0-475e-a824-7a9769b019f9 none swap sw 0 0
/dev/scd1 /media/cdrom2 udf,iso9660 user,noauto,exec,utf8 0 0

=================== sda5: Location of files loaded by Grub: ===================


142.7GB: boot/grub/core.img
142.7GB: boot/grub/grub.cfg
142.7GB: boot/initrd.img-2.6.31-14-generic
142.6GB: boot/vmlinuz-2.6.31-14-generic
142.7GB: initrd.img
142.6GB: vmlinuz


I tried to use my system restore disk made in windows 7 but it doesnt help, i would be happy to have windows Only now, how do i get it back???

darkod
February 13th, 2010, 08:08 PM
142.7GB: boot/grub/core.img
142.7GB: boot/grub/grub.cfg
142.7GB: boot/initrd.img-2.6.31-14-generic
142.6GB: boot/vmlinuz-2.6.31-14-generic
142.7GB: initrd.img
142.6GB: vmlinuz

On some older BIOSes there is a problem that they can't see boot files beyond 137GB on the hdd. I don't know if that is the case with your computer.

For reverting to windows only boot, no problem, you can do it anytime. Boot again in the live desktop, and in terminal:

sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

Ignore any warnings. That will write generic mbr on /dev/sda which should boot your windows. The computer should boot straight into windows.

oldfred
February 13th, 2010, 08:33 PM
Are you getting to a grub rescue prompt or is it just hanging?

to repair windows:

You should only have to run fixmbr.

http://support.microsoft.com/kb/927392
You will need to boot with your Windows 7 installation disk. Hit Enter at the language selection prompt then hit "R" to get to the repair section. You can then select the automatic boot repair tool, but it often will not do any good. Then select the command prompt (console) and type in the following commands:
BootRec.exe /fixmbr #updates MBR master boot record do not run if you still want grub
BootRec.exe /FixBoot #updates PBR partition boot

How to restore the Ubuntu/XP/Vista/7 bootloader (Updated for Ubuntu 9.10)
http://ubuntuforums.org/showthread.php?t=1014708

oldfred
February 13th, 2010, 08:40 PM
Also some choices on repairs to get grub working:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:search

daniel7860
February 13th, 2010, 11:16 PM
i used this to get my windows back:

sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

at least i can use windows.
i do not get this "side by side" option during my install so i used wubi. it installed nicely and the grub thing lets me choose windows or ubuntu, BUT when i select ubuntu it Freezes on the brown loading screen. i tried reinstalling but with no luck.

oldfred
February 13th, 2010, 11:41 PM
wubi and grub2 found a bug in NTFS driver.

http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:Wubi_9.10

darkod
February 13th, 2010, 11:53 PM
I have seen this solution here but didn't bookmark the thread and it took me a while to find it now. I think you were hit by this yet unexplained bug:
http://sourceforge.net/apps/mediawiki/bootinfoscript/index.php?title=Boot_Problems:search

Sorry I couldn't find it sooner. Unless you deleted your ubuntu partitions, it should still be there. I know you must be dissapointed by now, but if you feel like it, install grub2 again on the MBR of your hdd, and try this fix. If it works, you'll just boot windows and remove wubi from add/remove programs.
If it doesn't, you can always put the windows bootloader back with the lilo commands as you did a while ago.

In that article, focus on Step 4, because we already confirmed that the UUID is correct, so there is big probability it's the bug.

You can reinstall grub2 now back on the MBR if you boot the live desktop, and execute:

sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda

This is under the assumption you haven't deleted the linux partitions and /dev/sda5 and /dev/sda6 are still there.