I am currently dual-booting Windows and Linux (not Ubuntu), and I am looking to encrypt my Windows partition with Truecrypt. The Truecrypt bootloader must be installed on the MBR, so it will displace GRUB. I have read from numerous sources that installing GRUB to a partition is a bad idea, but it is the only solution for my setup.
While I was playing with Ubuntu in a virtual machine, I found that it will install GRUB onto a partition's boot sector without complaint when you choose the advanced partitioning option during installation. How does Ubuntu perform this installation? I would like to know enough detail so that I may move the concept to any distribution that uses GRUB2.