How are people doing clean install on custom disk layout with Ubuntu Desktop 26.04?

Ubuntu Version

Ubuntu 26.04 LTS

Desktop Environment (if applicable)

GNOME

Problem Description

The installer does not see LVM or LUKS partitions on the disk.

1 Like

Hello all. I have been using Ubuntu since version 9 and have always preferred my own custom disk layout. More recently, my last clean install was 20.04, then with upgrades to 22.04 and 24.04. Now with 26.04 I wanted to do a clean install and was very surprised to see the custom disk step does not seem to work as before. Reading around it seems this ā€œproblemā€ is known since 24.04 but hasn’t been ā€œfixedā€ yet (or it will never be because the developers are not considering it a problem).

Long story short, if you want a custom layout using for example LUKS inside (over) LVM, how are you supposed to do it? Is autoinstall yaml the only way?

If anyone can clarify, thanks a lot in advance.

1 Like

As you say, it’s a known condition. I am taking the easy way, and using the default setup for full-disk encryption.

TPM-backed FDE (full-disk encryption) isn’t quite ready for the Desktop, which is a shame because it’s brilliant and I’d love to use it. With luck, the blocking bugs (Grub problem, a related one, and a fwupd problem) will be fixed soon.

In the meantime, I use normal FDE and apply Clevis (with certain workarounds for security and updates). It’s not perfect by any means, but it means that I can use my hardware with TPM-backed encryption.

Yes, doing custom setups was always present, regardless of the few name changes as time went by (ā€˜something else’, ā€˜manual partitions’, ā€˜custom’, whatever). For me the biggest blocker right now is that I can’t reuse my home and data partitions with the data on them.

I would reformat root anyway (hence calling it clean install), but I don’t want to overwrite (or lose alltogether) my home and data partitions (more precisely, logical volumes with LUKS on top of them).

If the installer doesn’t see any of that, how to install? I can’t accept just using the ā€˜erase and use whole disk’ option.

This problem has been around since Ubuntu 23.04 with introduction of the current installer back then.

Bug Report

You can do mixed installs on both Logical Volumes and Partitions on the same physical disk. That is what I have now.

I’d forgotten about this. I’d even subscribed to the bug report. But I see that nothing has been done.

By the way, your link is broken. Here’s the correct one:

You could look into installing Server and then install whatever desktop you want on to of that.

Thanks. Fixed it.

……….

1 Like

Thanks everyone for the reply. I was hoping there is a solution like a patched installer (that could see the LVM and LUKS devices) but it seems not.

At the end I am not in a real hurry to reinstall, so for the moment I am not considering installing the server version because then I would have to ā€œchase upā€ which packages to add so that it can end up identical to the Desktop version. I know, it is probably doable, but like I said, I am not in that of a need.

Plus I could always do another in-place upgrade just like the ones before.

Some tutorials on the internet were mentioning the autoinstall way and I have never used it before because I don’t have hundreds computers to manage. Just one server and one desktop. So I never needed to bother and learn the autoinstall automation.

The instructions look easy but regardless of reading many different tutorials, my yaml is still not working. The installer errors at the step of verifying the current LUKS devices.

It would probably be best to open a new topic if I want to continue to chase up the autoinstall way, so that the title is more descriptive of the topic.

2 Likes