Re: Debian 7.10 random key swap Device /dev/sda2 is not a valid LUKS device.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 04/06/2016 06:25 AM, David Christensen wrote:
> dm-crypt:
> 
> I have a Debian 7.10 (Wheezy) computer with a random-key swap device. 
> The disk and swap are working.
> 
> 
> When I try to backup the LUKS header:
> 
>      # cryptsetup luksHeaderBackup /dev/sda2 --header-backup-file 
> luksheaderbackup-sda2.bin
>      Device /dev/sda2 is not a valid LUKS device.
> 
> 
> Is this expected/ normal behavior for a dm-crypt/ LUKS random-key swap 
> partition?

LUKS device cannot be used with random volume key, so I guess you use
just plain device without header. (So obviously header backup fails because
there is no header.)

You can verify it by checking entry in /etc/crypttab - no luks keyword:

> # grep sda2 /etc/fstab
> /dev/mapper/sda2_crypt                    none                    swap 

or running "cryptsetup status sda2_crypt" over unlocked device
(type is LUKS1 for LUKS devices)

Milan
_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
http://www.saout.de/mailman/listinfo/dm-crypt



[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux