All of lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] Debian 7.10 random key swap Device /dev/sda2 is not a valid LUKS device.
@ 2016-04-06  4:25 David Christensen
  2016-04-06  5:38 ` Milan Broz
  2016-04-06 10:55 ` Michael Kjörling
  0 siblings, 2 replies; 10+ messages in thread
From: David Christensen @ 2016-04-06  4:25 UTC (permalink / raw)
  To: dm-crypt

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?


David



# cat /etc/debian_version
7.10

# dpkg-query -l cryptsetup
Desired=Unknown/Install/Remove/Purge/Hold
| 
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  cryptsetup     2:1.4.3-4    amd64        disk encryption support - 
startup

# grep sda2 /etc/crypttab
sda2_crypt /dev/sda2                                 /dev/urandom 
  cipher=aes-xts-plain64,size=256,swap

# grep sda2 /etc/fstab
/dev/mapper/sda2_crypt                    none                    swap 
        sw                                              0       0

# swapon -s
Filename				Type		Size	Used	Priority
/dev/mapper/sda2_crypt                  partition	488444	0	-1

# cryptsetup -v isLuks /dev/sda2
Device /dev/sda2 is not a valid LUKS device.
Command failed with code 22: Device /dev/sda2 is not a valid LUKS device.

# cryptsetup -v luksDump /dev/sda2
Device /dev/sda2 is not a valid LUKS device.
Command failed with code 22: Device /dev/sda2 is not a valid LUKS device.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-04-07  9:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-06  4:25 [dm-crypt] Debian 7.10 random key swap Device /dev/sda2 is not a valid LUKS device David Christensen
2016-04-06  5:38 ` Milan Broz
2016-04-06  5:59   ` David Christensen
2016-04-06  6:37     ` Milan Broz
2016-04-06 10:55 ` Michael Kjörling
2016-04-06 19:35   ` David Christensen
2016-04-06 20:26     ` Sven Eschenberg
2016-04-06 23:06       ` David Christensen
2016-04-07  9:39       ` Arno Wagner
2016-04-07  9:46         ` Arno Wagner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.