New answers tagged

1

You have LUKS inside LVM, so yes, you have to care about LUKS. lvresize --resizefs does not work here, so you have to do it manually. Without LUKS, the size of LV and size of filesystem would be identical. With LUKS, you also have to consider the LUKS header. This header is several MiBs large so the filesystem has to be a few MiBs smaller or the logical ...


1

Any operations on sdc5_crypt will not harm your LUKS configuration. You can treat it like a normal drive. So yes, you should be able to use that command to reformat your partition.


1

It's possible, but with all in-place conversions, there is a certain risk of data loss. To make room for the LUKS header, unless you intend to use an external header, you must first shrink the filesystem (with resize2fs if it's ext4). For LUKS1, you should shrink it by 2MiB. For LUKS2, you can shrink it by 4M, 16M or up to 64M. If you intend to use advanced ...


0

Kali linux's installation encryption manager installs luks2 by default, but GRUB2 only supports luks1. Start the installation as normal and then use the shell from the installation menu to setup encryption with cryptsetup using the option --type luks1. You can also setup the logical volumes in the shell with the various lvm commands. Once returned to the ...


0

Use the command cryptroot-unlock from the shell, not cryptsetup. Here is an example of a one-line remote login to enter the decrypt password: ssh -ti /path/to/private_key_file -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@machine.requiring.unlock cryptroot-unlock


Top 50 recent answers are included