You are not logged in.
Pages: 1
I've tried
cryptsetup --typeluks /dev/sda3 and all UUID's in sda3 except control.
I have 3 thereLv_home, lv_root and encrypted. When ever I try to mount it via
mount /dev/sda3 /mnt I gett unknown filesystem type 'crypto_LUKS'.
Creating a directory for a mount point makes no difference.
I should mention I'm trying to mount a lvm partition.
Last edited by Mrhawkbox (2021-03-19 14:59:22)
Offline
$ cryptsetup luksFormat --type luks1 --align-payload=8192 -s 256 -c aes-xts-plain64 /dev/sda3
$ cryptsetup open /dev/sda3 crypt_data
INFO>> you need to create a filesystem like vfat,btrfs, ext4 - without tou cant mount your partition
$ mkfs.ext4 /dev/mapper/crypt_data
$ mount /dev/mapper/crypt_data /mntTIP>> do not use LVM just get into btrfs filesystem. the reason for --type luks1 format is grub -> grub is only able to read the luks1 format if you are trying to boot out of a encrypted partition.
over 99% of all encryption guides are out of date. specially if you are trying to setup a full encrypted system.
Last edited by gebki (2021-03-19 15:40:50)
Offline
$ cryptsetup luksFormat --type luks1 --align-payload=8192 -s 256 -c aes-xts-plain64 /dev/sda3 $ cryptsetup open /dev/sda3 crypt_data INFO>> you need to create a filesystem like vfat,btrfs, ext4 - without tou cant mount your partition $ mkfs.ext4 /dev/mapper/crypt_data $ mount /dev/mapper/crypt_data /mntTIP>> do not use LVM just get into btrfs filesystem.
Thanks for the heads up but I'm using ext4.
Offline
$ cryptsetup luksFormat --type luks1 --align-payload=8192 -s 256 -c aes-xts-plain64 /dev/sda3 $ cryptsetup open /dev/sda3 crypt_data INFO>> you need to create a filesystem like vfat,btrfs, ext4 - without tou cant mount your partition $ mkfs.ext4 /dev/mapper/crypt_data $ mount /dev/mapper/crypt_data /mntTIP>> do not use LVM just get into btrfs filesystem. the reason for --type luks1 format is grub -> grub is only able to read the luks1 format if you are trying to boot out of a encrypted partition.
over 99% of all encryption guides are out of date. specially if you are trying to setup a full encrypted system.
I was not aware of that. I installed refind as a bootloader. I messed up and should have read the docs first. I was unaware it didn't support lvm and Luks. I'm trying to get back into sda3 to chroot and install grub.
Offline
if you are using lvm, you mount /dev/vg/lv, not /dev/sda3
if sda3 is encrypted, you have to cryptsetup luksOpen /dev/sda3 first, then vgchange -a y (that might happen automatically with udev rules), then mount /dev/vg/lv somewhere
Offline
just use grub it is way easier and it saves you ton of knowledge and time. if you are using grub dont forget to set the
encrypt
hook before filesystem in the /etc/mkinitcpio.conf
then run
$ mkinitcpio -p linux
and dont forget to set the encrypt device in /etc/default/grub
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda3:crypt_data"
and enable
GRUB_ENABLE_CRYPTODISK=y
then run
grub-mkconfig -o /boot/grub/grub.cfg
Offline
if you are using lvm, you mount /dev/vg/lv, not /dev/sda3
if sda3 is encrypted, you have to cryptsetup luksOpen /dev/sda3 first, then vgchange -a y (that might happen automatically with udev rules), then mount /dev/vg/lv somewhere
I've tried that it says no device or mapping point. Thanks for the tip though. I'm going to do a reinstall. The only reason I was trying to figure it out is to understand why it failed. You guys answered my questions perfectly. Thank you.
Last edited by Mrhawkbox (2021-03-19 16:56:00)
Offline
Pages: 1