You are not logged in.
dd if=/dev/zero of=./file bs=1M count=200cryptsetup luksFormat -s 512 -c aes-xts-plain64 -h sha512 ./file
WARNING!
========
This will overwrite data on ./file irrevocably.
Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Error during update of LUKS header on device ./file.This only happens on my 1TB HDD (GPT, xfs filesystem). I have 2 SSDs that do not throw the error.
I tested using a flash drive formatted as GPT and using xfs filesystem and it worked.
Ideas?
Last edited by not_sure (2013-03-01 02:50:32)
Offline
What are you trying to do exactly? I don't understand why you are trying to setup LUKS on a *file* or why you describe that as *updating* the header.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Ah, I just noticed I didn't edit my OP correctly (fixed). The file is supposed to be called 'file', not 'e'.
Yes, I am trying to encrypt a file container. Why? ...preference, I suppose?
The "Error during update of LUKS header on device ./file" is simply the error output of the command.
Offline
Hmm... I didn't know you could do that. Are you sure it can? https://wiki.archlinux.org/index.php/Di … ison_table
I thought dm-crypt basically did block level encryption.
I guess this is a "virtual partition"? Maybe https://www.linux.com/community/blogs/1 … nux/280174 helps? It seems to mount it as loopback prior to encryption?
Last edited by cfr (2013-03-01 01:07:16)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
It turns out I'm retarded. I've used truecrypt in the past for the file containers, not dm-crypt. lol
I always look for the SOLVED button....
Last edited by not_sure (2013-03-01 02:50:15)
Offline