LMDE 7: manual partitioning does not show /dev/mapper (dm-crypt) devices
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- linux
- Domain
- operating-systems, security
Research direction
Start at the manual partitioning screen and reproduce the issue after opening a LUKS device with cryptsetup. Compare the devices shown there with ls -la /dev/mapper/ and lsblk -f output. Done means an already-unlocked mapper such as /dev/mapper/cryptroot appears as a selectable root target without exposing the raw partition for destructive formatting.
Written by the indexing model from the issue text.
Description
Summary
When installing LMDE using manual partitioning, already-unlocked dm-crypt mappings (e.g. cryptsetup open … cryptroot → /dev/mapper/cryptroot) are not shown in the partition list. As a result, the installer cannot select the mapper as /.
This makes the manual-partitioning path unsafe: users are pushed toward selecting the underlying raw partition (e.g. /dev/nvme0n1p6) and formatting it, which destroys the LUKS header and breaks the intended full-disk encryption flow.
Impact
- User-facing risk: easy to brick the intended encryption setup by formatting the raw block device.
- UX issue: manual partitioning is effectively non-functional for dm-crypt/FDE workflows.
- Support burden: leads to install loops and recovery attempts.
Environment
- Distro: LMDE 7 “Gigi” live ISO
- Installer: LMDE installer (manual partitioning screen)
- Firmware: UEFI (Secure Boot enabled)
- Disk layout goal:
- ESP (FAT32) mounted at
/boot/efi(existing) - ext4
/boot - root intended inside LUKS2 (btrfs)
- ESP (FAT32) mounted at
- Goal: dual boot (Windows preserved), LUKS2 for root, btrfs snapshots later
Reproduction steps (minimal)
- Boot LMDE live ISO.
- Prepare partitions (or use an existing target partition):
- keep existing ESP (FAT32)
- create ext4
/boot - create a large partition to be encrypted (example:
/dev/nvme0n1p6)
- In the live session, create and unlock the dm-crypt mapping:
sudo cryptsetup luksFormat /dev/nvme0n1p6
sudo cryptsetup open /dev/nvme0n1p6 cryptroot
- Verify the mapper exists (before launching the installer):
ls -la /dev/mapper/
lsblk -f
- Start the installer and go to Manual partitioning.
Expected behavior
- Manual partitioning lists
/dev/mapper/cryptroot(or equivalent unlocked mapper) and allows selecting it as/(and formatting it as btrfs/ext4).
Actual behavior
- Manual partitioning does not list any
/dev/mapper/*entries. - Only the underlying raw partition (e.g.
/dev/nvme0n1p6) appears as a selectable target for/and formatting.
Evidence to attach (non-sensitive)
- Screenshot: manual partitioning screen showing the absence of
/dev/mapper/*entries. - Terminal output:
ls -la /dev/mapper/(shows mapping exists)lsblk -f(showscrypto_LUKS+ the mapping)
Workaround used (works, but non-obvious)
Install first onto plain btrfs on the raw partition, do not reboot, then encrypt in-place using cryptsetup reencrypt, followed by initramfs/GRUB updates from a chroot.
Reference used: https://gist.github.com/Leniwcowaty/4b2c239ca74629cad60d4718f79ff600
Related
- TPM2+PIN /
systemd-cryptenrollavailability (separate issue):https://github.com/linuxmint/live-installer/issues/177
Suggested fix direction
- In manual partitioning, refresh and include
/dev/mapper/*devices once dm-crypt has been unlocked. - Alternatively, provide an explicit UI action to “unlock encrypted volume”, and after unlock, surface the mapper device as a selectable target.
- Dominant language
- HTML
- Stars
- 64
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from linuxmint/live-installer
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
linuxmint/live-installer#183 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
linuxmint/live-installer#182 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
linuxmint/live-installer#181 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
linuxmint/live-installer#177 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
linuxmint/live-installer#176 · 4 comments ·
All issues in linuxmint/live-installer
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
type:content-error
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
stephrobert/blog-roadmap#15 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
microsoft/windows-rs#4979 ·
-
0.kind: bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100