You are not logged in.

#1 2013-02-28 17:02:24

not_sure
Member
Registered: 2012-12-01
Posts: 27

[SOLVED] Error during update of LUKS header on device ./file

dd if=/dev/zero of=./file bs=1M count=200
cryptsetup 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

#2 2013-03-01 00:25:00

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Error during update of LUKS header on device ./file

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

#3 2013-03-01 00:39:58

not_sure
Member
Registered: 2012-12-01
Posts: 27

Re: [SOLVED] Error during update of LUKS header on device ./file

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

#4 2013-03-01 01:01:05

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,198

Re: [SOLVED] Error during update of LUKS header on device ./file

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

#5 2013-03-01 01:54:03

not_sure
Member
Registered: 2012-12-01
Posts: 27

Re: [SOLVED] Error during update of LUKS header on device ./file

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

Board footer

Powered by FluxBB