How to chain GRUB2 for Ubuntu 10.04 from Truecrypt & its bootloader (multi boot alongside Windows XP partition)?
Posted
by
Rob
on Super User
See other posts from Super User
or by Rob
Published on 2010-08-23T15:17:47Z
Indexed on
2011/06/23
16:25 UTC
Read the original article
Hit count: 170
I want Truecrypt to ask for password for Windows XP as usual but with the standard [ESC] option, on selecting that, i.e via Escape key, I want it to find the grub for the (unencrypted) Ubuntu install.
I've installed Windows XP on the 120Gb hard drive of a Toshiba NB100 netbook then partitioned to make room for Ubuntu 10.04 and installed that after the Windows XP install.
When I encrypt Windows XP, Truecrypt will overwrite the grub entry in the master boot record (MBR), I believe (?) and I won't be able to choose between XP and Ubuntu anymore. So I need to restore it back.
I've searched fairly extensively for answers on Ubuntu forums and elsewhere but have not yet found a complete answer that covers all eventualities, scenarios and error messages, or otherwise they talk of legacy GRUB and not GRUB2. Ubuntu 10.04 uses GRUB2.
My setup:
Partitions:
- Windows XP, NTFS (to be encrypted with Truecrypt), 40Gb
- /boot (Ext4, 1Gb)
- Ubuntu swap, 4Gb
- Ubuntu / (root) - main filesystem (20gb)
- NTFS share, 55Gb
I know that the Truecrypt boot loader replaces the GRUB when boot up because I've already tried it on another laptop.
I want boot loader screen to look something like the usual:
Truecrypt
Enter password:
(or [ESC] to skip)
password is for WindowsXP and on pressing [ESC] for it to find the Ubuntu grub to boot from
Thanks in advance for your help.
The key area of the problem is how to instruct Truecrypt when escape key is pressed, and how the Grub/Ubuntu can be made visible to the truecrypt bootloader to find it, when the esc key is pressed. Also knowing as chaining.
© Super User or respective owner