NOTE: This post has moved to https://blog.gibson.sh/2014/01/02/how-to-boot-linux-and-windows-7-via-uefi/
The original article is kept here for now, but is not maintained in any way.
Don’t.
It’s a fucking pain in the ass.
Buy a 2TB for your Windows installation, you have to use GPT partitions (instead of the old MBR style which only supports 2TB with ugly hacks and can’t have a continuous partition from 2TB) – and Windows can only boot from GPT partitions in UEFI mode.
To make things more challenging, Windows doesn’t offer creating a GPT partition table and partitions in the graphical installer (at least for Win7), so one has to use cmd.exe.
But don’t worry, the Linux part also sucks :-)
I’ll describe how I got Windows to install using GPT partitions on a 3TB harddisk, how to make an existing Linux (Debian Wheezy) installation boot via EFI (using grub-efi) and how I got my Mainboard (ASUS Z87-A) to boot this and GRUB to chainload (UEFI) Windows.
(more…)