All of lore.kernel.org
 help / color / mirror / Atom feed
* cryptsetup stopped working
@ 2012-04-12 22:59 Dale Amon
  2012-04-12 23:43 ` Dale Amon
  0 siblings, 1 reply; 2+ messages in thread
From: Dale Amon @ 2012-04-12 22:59 UTC (permalink / raw)
  To: linux-crypto; +Cc: amon

Here is a trace of shell script I am working on. I got
through the cryptsetup earlier this evening but for some
reason it just stopped working. 

Just in case, I've rebooted to see if anything needed 
tidied up. Nope.

I also tried using loop1 instead. Also no difference.

When the cfdisk ran, I gave it a single Primary 
partition that takes all the space and is not marked 
Bootable.

At the point of failure /dev/mapper/loop9p1 exists and
I can 'cat' it, so the kpartx is happy enough with the file.

Ideas welcome...

-------------------------------------------------------------

+ dd if=/dev/zero of=/MyDisk/foo.raw count=2097152
2097152+0 records in
2097152+0 records out
1073741824 bytes (1.1 GB) copied, 28.2482 s, 38.0 MB/s
+ losetup /dev/loop0 /MyDisk/foo.raw
+ badblocks -c 10240 -s -w -t random -v /dev/loop0
Checking for bad blocks in read-write mode
>From block 0 to 1048575
Testing with random pattern: done                                
Reading and comparing: done                                
Pass completed, 0 bad blocks found.
+ cfdisk /dev/loop0

+ kpartx -a /dev/loop0
+ cryptsetup --verbose --verify-passphrase luksFormat /dev/mapper/loop0p1

WARNING!
========
This will overwrite data on /dev/mapper/loop0p1 irrevocably.

Are you sure? (Type uppercase yes): yes
Command failed with code 22: Invalid argument

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

end of thread, other threads:[~2012-04-12 23:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-12 22:59 cryptsetup stopped working Dale Amon
2012-04-12 23:43 ` Dale Amon

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.