0

I just wanted to give you my bootlog and see whether anyone can help me. I have already applied the recommended boot repair solution, I get to see GRUB now but Windows 7 is not listed. Your help is very much appreciated

my bootlog: http://paste.ubuntu.com/5564838/

0

If you have already tried sudo update-grub but grub still doesn't detect Windows, you can try manually inserting the grub menu entry below in the relevant section (where you have the lines "### BEGIN /etc/grub.d/30_os-prober ###" and "### END /etc/grub.d/30_os-prober ###" and nothing in between) by entering sudo gedit /boot/grub/grub.cfg in terminal, and then saving and rebooting your computer.

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 7' --class windows --class os $menuentry_id_option 'osprober-chain-1A8422008421DECF' {
    insmod part_msdos
    insmod ntfs
    set root='hd0,msdos2'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  1A8422008421DECF
    else
      search --no-floppy --fs-uuid --set=root 1A8422008421DECF
    fi
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

If this solves the problem and Windows 7 does work, you might like to make this manual solution permanent by entering the entry also to this system file /etc/grub.d/40_custom

If this doesn't solve the problem, you might need your Windows 7 installation disk to repair its bootloader by booting from it and going to recovery mode. It should be adequate to use the fixboot only (and not the fixmbr option) so as not to override the grub2 bootloader.

Note: I also have (pre-installed) Windows 7 and (user-installed) Ubuntu 12.10 (both 64-bit) working flawlessly, although I never use Windows (I don't know why I don't delete it ;-)

  • thanks a bunch Sadi, I'll try this once I get home, currently in the office. I'll let you know of the results. – Mohsen Feb 26 '13 at 0:46
  • alright, tried your method. It does add the Windows 7 option to my GRUB interface, but as no boot manager is linked to it, it fails to boot and asks for the boot manager. Now, how do I link my boot manager file or set of files to this Windows 7 entry? – Mohsen Feb 26 '13 at 12:15
  • your windows 7 boot manager is probably broken - see: last option mentioned above. – Sadi Feb 26 '13 at 12:35
  • well,I don't have a Windows 7 Installation Disk, I can prepare a bootable USB if it's any help though. so, in your method, the Windows 7 entry is already linked to my Windows' boot manager. I don't know how it got corrupted though, it was just fine before installing Ubuntu. – Mohsen Feb 26 '13 at 13:39
  • Once mine was corrupted too because I changed the Windows partition size from Ubuntu I guess. Maybe you can obtain a Windows Recovery Disk in some way , e.g. a relatively small iso file that can be downloaded. It merely includes so disk maintenance tools specifically for Windows 7. – Sadi Feb 26 '13 at 14:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.