Ubuntu – Wubi, Windows 8, Truecrypt, UEFI, and a big headache

dual-bootgrub2truecryptwindows 8wubi

So, I have a fresh install of Windows 8… Here's the issue.

When I first installed W8, the Wubi loader would launch just fine, no issues, no fuss… At the time, I elected to avoid installing through Wubi, and just setting up a dedicated partition, and I think this is where I messed up.

I installed my drivers (no OEM bloatware*), ran truecrypt, set up a dedicated partition.. Everything appeared to be fine, was still able to run my TC bootloader, I couldn't [esc] to grub yet though, I thought to myself "okay, it's just because I haven't encrypted the system yet, but rather only installed the bootloader".

After 8 hours of encrypting, I woke up and thought "awesome, let me reboot & check Ubuntu", which, to my dismay, did not properly install.

Soooo… I booted my 12.10 liveCD to try another installation, and that's when all hell broke loose. Ubuntu refused to identify any partitions within the installer. Gparted threw an error about my hdd when I launched it, showed me 3 partitions, 2 of which were "Unknown" thanks to TrueCrypt, and the one where I attempted to install Ubuntu. The Ubuntu partition was labeled "Extended".

Being too scared to screw around with the partitions, or make any changes to the table, I booted into Windows 8 (YES! Still worked!), attempted to run Wubi, and I got the dreaded error where it refuses to run. I checked my Environment Variables, no python path.. Okay… So I checked my startup folder.. Still there… Check the temp folder for a Wubi log file.. NOPE!

Basically, I have several issues, and each one is only compounded by the next. Any help with this situation can make my day vastly better.

System Specs:
Thinkpad Edge e535,
AMD APU A4-4300m,
4GB ram,
Windows 8,
UEFI (THE DEVIL!!!)

and, well, that's about it.

*OEM BLOATWARE: I don't ever install OEM software, and seeing as it's a Thinkpad, I related it to they Python issue, but that's not the case.

**Side note: I did a side-by-side installation with Win8 from the Ubuntu installer AFTER I installed the Truecrypt bootloader, and before I encrypted my drive.

***EDIT: I have Secure Boot disabled with UEFI, and I have it set to UEFI+Legacy booting mode.

**EDIT2: I don't care about encrypting Ubuntu, I only want my windows partition encrypted. My priority is dual-boot.

Best Answer

Okay. I solved this. I'm going to start from the basics.

I found how to simultaneously dual boot Windows 8 (Truecrypt encrypted) & Ubuntu 12.10 (home folder encrypted) while keeping secure boot enabled!!

UEFI/BIOS:

Configuration: Check all settings, confirm that USB is set to secure boot.

Boot settings: Enable UEFI/Legacy, with legacy booting first.

Save & Exit.

Install Windows 8, once installed, restart.

Install Ubuntu using the "Install alongside Windows 8" setting in the installer.

Install Gparted (or your favorite partition manager)

Shrink the Windows 8 partition by 250mb AFTER the data layer.

Make Ext4 filesystem on 250mb partition. (No label necessary, but I labeled mine "/boot" for the sake of memory.

Open Terminal and run "sudo grub-installer /dev/sdxX --force" (where xX is your "/boot" drive letter & partition number)

Return to windows, encrypt system partition using "dual boot" category. Drink a beer, or 12, depending on the size of your disk & wipe mode

*BE SURE TO MAKE A BACKUP OF THE REPAIR DISK. IF YOU FUTZ SOMETHING UP, YOU WILL HATE YOUR LIFE*

After encryption, reboot, and backup your MBR/TC boot loader

Run your livedisk: "sudo grub-install /dev/sdx --force" to install GRUB2 to the MBR

Using your favorite partition editor, erase your "/boot" partition, formatting it to either Ext4 or FAT32

Extract your MBR/TC backup to your "/boot" partition

Download & run grub-customizer (or edit it manually, if you prefer) to include the TC bootloader

And there you have it, dual booting Windows 8 and Ubuntu, with Windows encrypted, and chainloading the Truecrypt bootloader from Grub2, on a UEFI system.