I first installed windows7 32 bit and then gentoo x64. when the time came for the grub2, i got problems. In IRC they told my to use a "pc" flag for my grub and i did. but beyond that i don't know what to do. remember my device is UEFI and Grub 2 has to adjust. i manually edit /boot/grub2/grub.cfg and just add windows and linux in it.
the grub at the boot says; the partition that windows is in says there is not such a partition and the partition that the gentoo is in it says unknown file-system.
THANK YOU%

First, although your computer may have an EFI rather than a BIOS, the whole point of your setup is to boot in BIOS mode, using the EFI's Compatibility Support Module (CSM). You can think of the CSM as being to EFI a bit like what WINE is to Linux: It's a compatibility layer meant to let it run binaries meant for a different environment. The end result of this is that EFI issues really don't enter into the equation, except to the extent that you may need to fiddle with your firmware settings to get CSM (aka "legacy mode") support working. Chances are this part of the task is already done, though, since otherwise you wouldn't be seeing GRUB messages.

The "unknown filesystem" message from GRUB indicates that you haven't built a GRUB binary that includes the filesystem driver for whatever filesystem you used on the Linux /boot partition. I don't recall the exact commands used to build or install GRUB, offhand, so I can't tell you precisely what you need to do to fix this. I think you need to adjust the installation command, though.

I'm not sure what's happening with your Windows boot failure. In fact, it's not even clear from your description if this is a message from GRUB or from the Windows boot loader. I recommend you review it, write down the exact error message, and report it here. Also note any tell-tale changes in the fonts or other screen issues that might be clues about a handover from GRUB to the Windows boot loader.

I'm not sure what's happening with your Windows boot failure. In fact, it's not even clear from your description if this is a message from GRUB or from the Windows boot loader

it is surly from grub because it says press any key to back to grub menu and it will.
So no hand off there at all.
and as far as that command goes please find it and tell me because the new wiki is really out of order in this matter. and the lack of info in there let me to the problem.
THANK YOU%

The motherboard is not uefi, P8H77-I Motherboard , and the disk is formatted with an msdos label so your problem is old school.

If you want windows 7 back as soon as posiible: http://support.microsoft.com/kb/927392
For gentoo (note that these steps will overwrite the windows mbr, if all goes well grub will have a menu entry to boot windows) boot the gentoo mninmal install or sysresc cd/dvd/usb, and enter the chroot, nominally:

sorry, lspci said Subsystem: ASUSTeK Computer Inc. P8H77-I Motherboard many times, tricked myself
tricked myself twice, the P8H77-I specifications do list uefi and i missed it
nonetheless uefi is not a player with the hard drive; hard drive being labeled msdos and not having an efi partition_________________Defund the FCC.

Last edited by DONAHUE on Sun Jul 14, 2013 4:44 pm; edited 1 time in total

sorry, lspci said Subsystem: ASUSTeK Computer Inc. P8H77-I Motherboard many times, tricked myself
nonetheless uefi is not a player with the hard drive; hard drive being labeled msdos and not having an efi partition

To elaborate on this a bit: The ASUS P8H77-I (and presumably others in the same family) comes with UEFI firmware. (I happen to have one of these boards myself.) This firmware, like most modern EFIs, includes a Compatibility Support Module (CSM; aka BIOS compatibility or legacy support), which enables the computer to boot BIOS-mode OSes. The parted output you posted clearly indicates an MBR ("msdos") partition table. Because Windows ties the partition table type to the firmware type (BIOS-MBR; EFI-GPT), this means that Windows is booting in BIOS mode, using the CSM. The fact that you're booting a 32-bit Windows is further evidence of that; AFAIK, it's not possible to boot a 32-bit Windows on a 64-bit EFI, although you can boot a 32-bit Windows on a 64-bit BIOS-based computer. You could theoretically boot Linux in EFI mode and Windows in BIOS mode on this computer, but that would complicate your setup and provide few or no advantages. It sounds like your GRUB is set up to work in BIOS mode right now.

In other words, your motherboard does support EFI, but at the moment you're using it like a traditional BIOS-based motherboard, and you should treat it as such.

another problem is the background. i foun the source of grub2-spalsh screen with is a archive of some pictues in TXZ format i think.
i put one of them in grub respective directory and put that in grub config but nothing happened.
What is the way?