Hi all,
I just recently upgraded grub from 0,97 to 1,99 to be able to boot EFI Windows 7, but I am having issues with it
I have 3 hard drives:
Code:
/dev/sda, primary disk where Linux is and where Grub2 is installed
/dev/sdb, Data disk (Music, Pictures, etc)
/dev/sdc, Where Windows is installed
/dev/sda is a MBR disk while /dev/sdc is a GPT disk
I have read numerous articles and wikis on how to configure grub2. I post relevant info for grub2
/etc/default/grub
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-boot/grub/files/grub.default,v 1.2 2011/08/30 06:45:04 scarabeus Exp $
#
# To populate all changes in this file you need to regenerate your
# grub configuration file afterwards:
# 'grub2-mkconfig -o /boot/grub2/grub.cfg'
#
# See the grub info page for documentation on possible variables and
# their associated values.
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX_DEFAULT=""
GRUB_CMDLINE_LINUX=""
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal.
# Note that you can use only modes which your graphic card supports via VBE.
# You can see them in real GRUB with the command `vbeinfo'.
GRUB_GFXMODE=1280x800
# Background image used on graphical terminal.
# Can be in various bitmap formats.
#GRUB_BACKGROUND="/boot/grub2/mybackground.png"
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to kernel
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true
GRUB_PRELOAD_MODULES="part_msdos"
/etc/grub/40_custom
Code:
#!/bin/sh
exec tail -n +3 $0
# 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.
...
menuentry "Microsoft Windows 7" {
insmod part_gpt
insmod search_fs_uuid
insmod chain
search --fs-uuid --no-floppy --set=root fc98-f796
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}
/boot/grub2/device.map
Code:
(hd0) /dev/disk/by-id/ata-WDC_WD3200AAKS-00VYA0_WD-WCARW0001527
(hd1) /dev/disk/by-id/ata-SAMSUNG_HD501LJ_S0MUJ1FPA78508
(hd2) /dev/disk/by-id/ata-SAMSUNG_HD501LJ_S0MUJ1FPA78200
I do not post the /boot/grub2/grub.cfg as I do not have issues with booting Linux, but when I try to boot Windows. I always get the "Invalid Signature" error.
Os-prober does not find my Windows 7 installation on /dev/sdc even though I have EFI/GPT support enabled in the Kernel and can mount partitions.
I searched a lot trying to get Windows to boot using Grub2, Windows boots fine if I change the disk boot order in the BIOS. I know mixing MBR with EFI is causing issues, but cannot find a solution and I am running out of ideas.