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

Re: cryptsetup on a loopback device with an offset fails



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: Failed to write to key storage

cryptsetup offset is in sectors (see 'cryptsetup --help')


HTH,
Michel


Reply to: