Score:0

cryptsetup open from live usb failing

es flag

I chose to encrypt during install (Ubuntu 22.04). All that works as expected. But the swap partition it made is too small for hibernation usually. It made a 1.9GiB part, I have 16G ram (thinkpad t480).

Hibernate is technically working. It’ll hibernate and resume successfully if I’m only running the DE and terminal. Since the installer already made this logical swap part and grub will resume from it, I’d rather just grow the part than switch to a swapfile and update grub to offset/resume from that.

But I can’t get my encrypted root open from the live usb to do that. The error is No key available with this passphrase. The usb and the real OS are both set to US keyboard and I’m certain I’m typing it correctly, no caps lock etc. Same issue whether I try from cli or Disks gui.

Using (as root from the live usb) cryptsetup open /dev/nvme0n1p3 vgubuntu-root tried variations like luksOpen or different mapper names like ubuntu, crypt, root. Pointing at other partitions says Not a LUKS device.

lsblk

nvme0n1        259:0    0 476.9G  0 disk  
├─nvme0n1p1    259:1    0   512M  0 part  /boot/efi
├─nvme0n1p2    259:2    0   1.7G  0 part  /boot
└─nvme0n1p3    259:3    0 474.8G  0 part  
  └─nvme0n1p3_crypt
               253:0    0 474.8G  0 crypt 
    ├─vgubuntu-root
    │          253:1    0 472.8G  0 lvm   /var/snap/firefox/common/host-hunspell
    │                                     /
    └─vgubuntu-swap_1
               253:2    0   1.9G  0 lvm   [SWAP]

What might be going on here / what kinda troubleshooting to try or other outputs to post?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.