Problem with LUKS encryption

I want to install PLASMA DESKTOP but with tricky encryption. I ran into a problem, I can not solve it myself, please help

stages - I boot from live usb, there are two disks I need in the system. Namely sda (installation), sdb (system, on which the system will be installed), sdc (usb on which I want the bootloader Grub and the header LUKS + initramfs

here is my whole process at the very end there is an encryption error that I can’t figure out how to solve

   ~  lsblk  :heavy_check_mark:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
loop0 7:0 0 93M 1 loop /run/miso/sfs/livefs
loop1 7:1 0 867.5M 1 loop /run/miso/sfs/mhwdfs
loop2 7:2 0 1.9G 1 loop /run/miso/sfs/desktopfs
loop3 7:3 0 921.4M 1 loop /run/miso/sfs/rootfs
sda 8:0 1 14.4G 0 disk /run/miso/bootmnt
├─sda1 8:1 1 3.8G 0 part
└─sda2 8:2 1 4M 0 part
sdb 8:16 0 931.5G 0 disk
├─sdb1 8:17 0 300M 0 part
└─sdb2 8:18 0 931.2G 0 part
sdc 8:32 1 29G 0 disk
└─sdc1 8:33 1 29G 0 part
nvme0n1 259:0 0 476.9G 0 disk
├─nvme0n1p1 259:1 0 100M 0 part
├─nvme0n1p2 259:2 0 16M 0 part
├─nvme0n1p3 259:3 0 476.3G 0 part
└─nvme0n1p4 259:4 0 520M 0 part
   ~  sudo cfdisk /dev/sdc  :heavy_check_mark:

Syncing disks.
   ~  sudo fdisk -l /dev/sdc  :heavy_check_mark:  38s 
Disk /dev/sdc: 29 GiB, 31142707200 bytes, 60825600 sectors
Disk model: Disk 2.0
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xf3749613

Device Boot Start End Sectors Size Id Type
/dev/sdc1 2048 60825599 60823552 29G 83 Linux
   ~  sudo cryptsetup benchmark  :heavy_check_mark:

Tests are approximate using memory only (no storage IO).

PBKDF2-sha1 1432480 iterations per second for 256-bit key
PBKDF2-sha256 1941807 iterations per second for 256-bit key
PBKDF2-sha512 1424695 iterations per second for 256-bit key
PBKDF2-ripemd160 809086 iterations per second for 256-bit key
PBKDF2-whirlpool 634731 iterations per second for 256-bit key
argon2i 6 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)
argon2id 6 iterations, 1048576 memory, 4 parallel threads (CPUs) for 256-bit key (requested 2000 ms time)

Algorithm | Key | Encryption | Decryption

    aes-cbc        128b      1153.6 MiB/s      3515.2 MiB/s
serpent-cbc        128b        96.1 MiB/s       757.9 MiB/s
twofish-cbc        128b       221.7 MiB/s       405.4 MiB/s
    aes-cbc        256b       879.4 MiB/s      2830.6 MiB/s
serpent-cbc        256b        98.5 MiB/s       759.6 MiB/s
twofish-cbc        256b       227.0 MiB/s       404.2 MiB/s
    aes-xts        256b      3445.0 MiB/s      3485.0 MiB/s
serpent-xts        256b       620.9 MiB/s       638.0 MiB/s
twofish-xts        256b       367.1 MiB/s       371.1 MiB/s
    aes-xts        512b      2824.9 MiB/s      2815.7 MiB/s
serpent-xts        512b       631.4 MiB/s       636.1 MiB/s
twofish-xts        512b       366.9 MiB/s       367.7 MiB/s

   ~  sudo cryptsetup --cipher=serpent-xts-plain64 --key-size=512 -hash=whirlpool luksFormat --type luks1 /dev/sdc1  :heavy_check_mark:  36s 
WARNING: Device /dev/sdc1 already contains a ‘vfat’ superblock signature.

WARNING!

This will overwrite data on /dev/sdc1 irrevocably.

Are you sure? (Type ‘yes’ in capital letters): yes
Operation aborted.

   ~ 

You need to write yes in CAPITAL letters, just yes is not enough.

I felt ashamed :no_mouth: Thank you :slightly_smiling_face:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.