Husband. Father. Software engineer. Ubuntu Linux user.
I’ve been writing about how to dual-boot Ubuntu and Windows with encryption for a long time. I first wrote about it back in 2020, where I described a four-part process with 19 total steps to get dual-boot working with encryption. The process was very complicated, involving manual setup of LUKS. In Ubuntu 24.04, the process got significantly easier due to a quirk in the installer that allowed you to select both the dual-boot and the LUKS encryption options in the new Ubuntu installer GUI. Now, in Ubuntu 25.04+, the GUI installer has full support for installing Ubuntu alongside windows with encryption!
Installing Ubuntu 25.04+ with dual-boot encryption is very easy because the Ubuntu GUI installer now has built-in support for doing so!
Windows should already be installed, and BitLocker should be disabled.
Run the Ubuntu installer. Go through the initial installer screens to choose your language and set up internet access. Choose an interactive install process, and select the software you want to install as you continue through the installer wizard.
When you get to the “How do you want to install Ubuntu?” screen, choose to “Install Ubuntu alongside Windows Boot Manager”.
When choosing “Encryption and file system”, choose to “Encrypt with a passphrase” (using LUKS and LVM).
Finish the installer, completing the steps to choose a password and setup your user account. Here’s what my summary screen looks like at the end.
After Ubuntu finishes installing, you have an encrypted Ubuntu partition. Boot into Windows and enable BitLocker to encrypt the Windows partition.
That’s it! Congratulations, you have a dual-boot system where Ubuntu is encrypted with LVM (LUKS) and Windows is encrypted with BitLocker. It’s awesome that in Ubuntu 25.04+, the GUI installer includes the option to set up dual boot and simultaneously encrypt the Ubuntu partition with LUKS – this is much less tedious than it used to be, and I’m grateful for the work of everyone who contributed to the new Ubuntu installer!
The process is really straight-forward since the Ubuntu installer does all the hard parts. Still, there are a few places you might get stuck along the way. Hopefully these notes help.
If you’re comfortable with all the above, you might not need any additional information. But I think the details below will help some people who either need additional help with some steps, or are curious about some of the more advanced details.
Before starting, ensure your computer is running the latest BIOS available. This is important because an out-of-date BIOS can have bugs, and those bugs sometimes affect things like UEFI, non-Windows operating systems, or other components we’ll be touching.
You should also ensure your BIOS Boot List Option
is set to UEFI
. While
you’re looking at BIOS settings, it’s worth noting that TPM Security
is
required for BitLocker in Windows.
If Windows is already installed, just do the steps outlined above. The Ubuntu installer is capable of shrinking the Windows partition, and I’d recommend you just let it do so.
If Windows isn’t installed, you should install Windows first. Leaving extra space on the hard drive for Linux would be fine, but for simplicity I think it’s easiest to just do a normal Windows install followed by the steps above. The Windows partition will shrink quickly if it’s mostly empty. If you need a Windows USB stick, the easiest way to make one is to use the Windows Media Creation Tool from a computer that’s already running Windows.
The easiest way to make a bootable Ubuntu USB stick is to download the ISO and use the Startup Disk Creator on a computer that’s already running Ubuntu. If you don’t already have a computer running Ubuntu, you can use balenaEtcher to flash the image to the USB stick.
As a reference, here’s the final state of my hard drive after allowing the
installer to shrink my Windows partition and installing Ubuntu with LVM and
encryption. Note that your partition sizes might be different than mine based on
the size of your disk and the way you split it up, but the number of partitions
and their types will probably be the same. In the scheme below, partition (3) is
C:
in Windows. Partitions (2) and (4) are used by Windows. Partition (5) is
/boot
for Ubuntu and partition (6) is the encrypted LVM partition for Ubuntu.
$ sudo sgdisk --print /dev/sda
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Number Start (sector) End (sector) Size Code Name
1 2048 2099199 1024.0 MiB EF00 EFI
2 2099200 2131967 16.0 MiB 0C01 Microsoft reserved ...
3 2131968 157882367 75.2 GiB 0700 Basic data partition
4 975652864 976771071 546.0 MiB 2700
5 157882368 162076671 2.0 GiB 8300
6 162076672 975652863 387.9 GiB 8300
I began using encrypted storage on all my personal computers more than ten years ago after noticing that all the companies I’d worked for required it, and had good reason to. Laptops get lost and stolen all the time. They’re high-value items that are small and easy to carry. And when a thief gets your laptop, there’s tons of valuable information on it that they can use or sell. Even if you use a password to login, it’s easy for an attacker to gain access to your data if your disk isn’t encrypted – for example, by using a live USB stick. And once they have that data, they might get access to online accounts, bank statements, emails, and tons of other data. For me, an encrypted hard disk isn’t optional anymore – it’s a necessity.
Congratulations, you’ve created a dual-boot system with Ubuntu 25.04 and Windows 11 with all your data encrypted! I hope you found this guide useful! I’m excited to see that full-disk encryption with Ubuntu has become much easier, with full support in the GUI installer since I wrote my original dual-boot with encryption guide back in 2020! I’d love to hear from you if you validate these steps on your own computer (or if you notice any problems with the guide itself). The best way to reach me is on Twitter or via email.
👋 Hi, I'm Mike! I'm a husband, I'm a father, and I'm a staff software engineer at Strava. I use Ubuntu Linux daily at work and at home. And I enjoy writing about Linux, open source, programming, 3D printing, tech, and other random topics. I'd love to have you follow me on X or LinkedIn to show your support and see when I write new content!
I run this blog in my spare time. There's no need to pay to access any of the content on this site, but if you find my content useful and would like to show your support, buying me a coffee is a small gesture to let me know what you like and encourage me to write more great content!
You can also support me by visiting LinuxLaptopPrices.com, a website I run as a side project.