Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub2 + Windows 7 = Invalid signature
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 153
Location: Barcelona, Catalonia

PostPosted: Thu Jan 19, 2012 8:50 am    Post subject: Grub2 + Windows 7 = Invalid signature Reply with quote

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.
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1373

PostPosted: Thu Jan 19, 2012 5:37 pm    Post subject: Reply with quote

And why dont you keep the win-sdc as sda. And install grub2-efi into first gpt-efi partition?
... Dont know if this works - never tried - I dont have this hardware.
_________________
fun2gen2
Back to top
View user's profile Send private message
Hammett
Apprentice
Apprentice


Joined: 26 Jan 2005
Posts: 153
Location: Barcelona, Catalonia

PostPosted: Fri Jan 20, 2012 2:42 pm    Post subject: Reply with quote

Ulenrich,

Thanks for your suggestion. I was actually thinking the same. Move Grub2 to /dev/sdc and boot from there to see if I can boot both Windows and Linux.
I am a little scared though as I do not want to break booting Windows and neither os-prober does not recognize my Windows install in /dev/sdc

With the config I have now, I can boot Windows by changing the boot drive at BIOS.

I think I will give a shot that option, I guess I will need to be extra careful not to break anything on the EFI partition that would prevent Windows to boot.
_________________
I don't fear the people. I fear the demon inside them.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum