Encryption not working on installation when select custom storage

Bug #1995290 reported by Maraschin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

When installation Ubuntu on a system with several disks I found a few problems when trying to customize the installation of the discs partitions using encryption.

System configuration:
Dell 5820 tower with 2 SSD (NVMe Toshiba 1TB) and 2 4TB HD (ST4000DM000)

What I am trying to install:
- Windows on one SSD and 1 HD and Ubuntu on 1 SSD (root) and 1 HD (/home)
- Encrypt the linux discs
PS: Windows is installed and working.

I tried to install using:

- 22.10 Desktop
  - After select Custom installation I created the following partition:
    - SSD 0:
      - efi 2GB
      - /boot 4GB
      - ntfs with Windows
    - SSD 1:
      - encrypted partition and ext4 with /
      - PS I was planing to have LVM but it is not available!
    - HD 0:
      - ntfs mounted as /windows
    - HD 1:
      - encrypted partition and ext4 with /home

Beside for the windows part and efi, everything was done using the customization tool within the installation.

When the installation starts I get the following error:
- The attempt to mount a file system with type ext4 in Encrypted volume (mvme1n1p1_crypt at / failed.
Under in the cms log line I see:
date/time ubuntu ubiquity: mount: /target: wrong fs type, bad option, bad superblock on /dev/mapper/nvme1n1p1_crypt, missing codepage helper program, or other error.
date/time ubuntu ubiquity: dmesg(1) may have more information after failed mount system call.
date/time ubuntu ubiquity: [1139.329528] EXT4-fs (dm-0): VFS: Can't find ext4 filesystem
XDG_RUNTIME_DIR (/run/user/999) is not owned by us (uid 0), but by uid 999! (This could e.g. happen if you try to a non-root PulseAudio as a root user, over the native protocol. Don't do that.)

And the installation stalls! :-/
I tried several times with a few differences but ubuntu refuses to mount the SSD encryption partition.

- 22.04 Server
  I tried to do a similar things as above but the installation doesn't allow me to mount an encrypted partitions and not even create them (I tried to remove and add again but there is no option for encrypted partition)

QUESTIONS:
- Why are LVM gone from Customized Desktop partitions?
- Why are Encryption gone from server customized partitions?

Tags: bot-comment
Revision history for this message
Maraschin (carlo-maraschin) wrote :

I managed to install as I described above using ubuntu 19.04 server text interface.
There I'd to create a LVM on the encrypted discs to work, after that I did updated it to the latest desktop (22.10) and everything is working.

Any version after 19 seems to have the same issues with LVM and encryption when you try to customize it, it is just not possible. :-(
And if you have several discs it gets even worse!

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1995290/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Maraschin (carlo-maraschin) wrote :

I do not know the name of the packages since this is a problem in the ubuntu installation for desktop and server. And it affects several releases.
It was introduced when the installation client was updated.
I've reported it before but it seems it has been ignored.

It is not possible to install a new version of ubuntu and customize your partitions using encryption and LVM. And it get worse if you have more than one disc.
I am not trying to create a raid, I am just trying to encrypt two disc in separate, add a LVM, and add swap, / and /home on different partitions.

Another case would be to create a raid, encrypt it and install in it.

affects: ubuntu → ubiquity (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.