Linux + Windows dualboot, both encrypted

the thing about UEFI is its much easier to have multiple operating systems on the same disk. MBR is deprecated and difficult to work with in these scenarios.

Basically you would install windows as normal on the HDD (set up encryption), then linux as normal on the SSD (set up encryption), and then you would set up GRUB in UEFI mode and create entries for linux and windows.

GRUB => Windows bootloader => windows || GRUB => linux, each which its own encryption scheme. The only thing is that if you use LUKS, there will be an issue with supporting the TRIM function for SSD’s. Link to that thread here.

I believe that Ubuntu and *buntu distros automagically add the windows entry in grub during installation, provided that windows in set up prior to installing linux. Just be sure that you don’t install them on the same disk if you want them on separate drives.

If you are trying to set them up on the same drive then instead you will need to install linux first and partition off a NTFS filesystem for where you will install windows, and let windows handle its own encryption, and linux its own encryption.

The only issue is this may not work depending on which edition of windows you use. Windows 7 like to set itself up the old way but it does have support for UEFI, you just have to install it via UEFI. Now let me save you a lot time if you are going the windows 7 route. Don’t install it via USB. Use a disk (which you can boot to from UEFI to do the install). Trust me, Win7 has freaky shit not work when you try to install it from usb in UEFI mode.

Now if you are tying to do a newer version of windows then you will first have to boot to a live CD, do the same as before, install windows first this time, then check back and make sure it didn’t overwrite where you will install linux, then install linux. If you install linux first you run the risk of windows 8 or 10 wiping it during its installation. From experience this is what I do because every time I’ve tried to install windows I always do it first, or physically separate all my other drives from the motherboard when I install windows because for some reason it likes to fuck with everything.

This is just the information I’ve garnered after many years of frustration and failed attempts. Hope it helps.

1 Like