Skip to content

Instantly share code, notes, and snippets.

@Endermanbugzjfc
Created March 3, 2026 23:02
Show Gist options
  • Select an option

  • Save Endermanbugzjfc/7808b6aa36f3bc608751c0b8a01930fc to your computer and use it in GitHub Desktop.

Select an option

Save Endermanbugzjfc/7808b6aa36f3bc608751c0b8a01930fc to your computer and use it in GitHub Desktop.
elementary@elementary:~/idk$ lsblk -o NAME,FSTYPE,SIZE,PARTLABEL
NAME FSTYPE SIZE PARTLABEL
loop0 squashfs 2.3G
nvme0n1 931.5G
├─nvme0n1p1 vfat 512M EFI
├─nvme0n1p2 crypto_LUKS 914.1G root
└─nvme0n1p3 crypto_LUKS 16.9G
nvme1n1 476.9G
├─nvme1n1p1 vfat 260M EFI system partition
├─nvme1n1p2 16M Microsoft reserved partition
├─nvme1n1p3 ntfs 237.8G Basic data partition
├─nvme1n1p4 ntfs 1G Basic data partition
├─nvme1n1p5 ntfs 175G Basic data partition
├─nvme1n1p6 vfat 16G Basic data partition
├─nvme1n1p7 ext4 29G
├─nvme1n1p8 swap 17.3G
└─nvme1n1p9 vfat 512M
elementary@elementary:~/idk$ lsblk -o NAME,FSTYPE,SIZE,PARTLABEL
NAME FSTYPE SIZE PARTLABEL
loop0 squashfs 2.3G
nvme0n1 931.5G
├─nvme0n1p1 vfat 512M EFI
├─nvme0n1p2 crypto_LUKS 914.1G root
└─nvme0n1p3 crypto_LUKS 16.9G
nvme1n1 476.9G
├─nvme1n1p1 vfat 260M EFI system partition
├─nvme1n1p2 16M Microsoft reserved partition
├─nvme1n1p3 ntfs 237.8G Basic data partition
├─nvme1n1p4 ntfs 1G Basic data partition
├─nvme1n1p5 ntfs 175G Basic data partition
├─nvme1n1p6 vfat 16G Basic data partition
├─nvme1n1p7 ext4 29G
├─nvme1n1p8 swap 17.3G
└─nvme1n1p9 vfat 512M
elementary@elementary:~/idk$ sudo cryptsetup isLuks -v /dev/nvme0n1p2
Command successful.
elementary@elementary:~/idk$ sudo cryptsetup luksDump /dev/nvme0n1p2
LUKS header information
Version: 2
Epoch: 3
Metadata area: 16384 [bytes]
Keyslots area: 16744448 [bytes]
UUID: 5de558fd-2f7c-4c6b-8ec1-400897cdb0e5
Label: (no label)
Subsystem: (no subsystem)
Flags: (no flags)
Data segments:
0: crypt
offset: 16777216 [bytes]
length: (whole device)
cipher: aes-xts-plain64
sector: 512 [bytes]
Keyslots:
0: luks2
Key: 512 bits
Priority: normal
Cipher: aes-xts-plain64
Cipher key: 512 bits
PBKDF: argon2id
Time cost: 4
Memory: 1048576
Threads: 4
Salt: 7c cf be 10 4c 41 04 40 6a 66 d3 bc df a1 42 3e
8d c0 56 0b db 19 ee ce 91 8e 39 29 c6 3a 3c 36
AF stripes: 4000
AF hash: sha256
Area offset:32768 [bytes]
Area length:258048 [bytes]
Digest ID: 0
Tokens:
Digests:
0: pbkdf2
Hash: sha256
Iterations: 311334
Salt: 70 38 2e 6c 6b 8a fe bb 6e 08 84 51 04 69 ed 9a
8f 78 9b 35 16 f3 db 7c 2b 22 43 16 29 85 9f fb
Digest: 6c 12 32 d5 55 e2 6d 22 af 86 f8 db 2e 78 f9 80
dd 7a 72 02 ff 37 0f 7f 0e 64 42 b6 a9 af 78 27
elementary@elementary:~/idk$ sudo cryptsetup repair /dev/nvme0n1p2
elementary@elementary:~/idk$ sudo cryptsetup repair /dev/nvme0n1p3
elementary@elementary:~/idk$ sudo cryptsetup luksOpen /dev/nvme0n1p2 a
Enter passphrase for /dev/nvme0n1p2:
No key available with this passphrase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment