cryptsetup on a loopback device with an offset fails

2009-07-06 Thread Sam Lowry
This is about a Lenny install with the stock kernel and modules. I am doing an exercise of encrypting an existing debian partition in a raw qemu image before doing that in production environment. I first identified the start of the partition (98703360) by doing sfdisk -l -uS lenny.img Then, I

Re: cryptsetup on a loopback device with an offset fails

2009-07-06 Thread Michel Messerschmidt
On Mon, Jul 06, 2009 at 10:51:44AM +0200, Sam Lowry wrote: losetup /dev/loop0 lenny.img mkdir lenny mount lenny.img lenny -t ext3 -o loop=/dev/loop0,offset=98703360 losetup offset is in bytes (see 'man losetup') cryptsetup luksFormat --offset=98703360 /dev/loop0 Command failed: