From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Thu, 12 Nov 2020 10:32:47 +0100 (CET) Received: by mail-wr1-x432.google.com with SMTP id 23so5222273wrc.8 for ; Thu, 12 Nov 2020 01:32:47 -0800 (PST) References: <4d5bc266dc3a8afcee0e13f5476f4a38@msw.it> From: Milan Broz Message-ID: Date: Thu, 12 Nov 2020 10:32:44 +0100 MIME-Version: 1.0 In-Reply-To: <4d5bc266dc3a8afcee0e13f5476f4a38@msw.it> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Encrypting DVD or CDROM from iso List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Davide Marchi , dm-crypt@saout.de On 10/11/2020 17:22, Davide Marchi wrote: > Hi to all, > > I'm wondering how to create a DVD or CDROM encrypted using dm-crypt. > I've followed this tutorial, with no luck: > http://www.sourcentral.org/luks/iso9660/ > > and the DVD or cdrom created cannot be activated: ... > Comando non riuscito con codice -1 (parametri errati o mancanti). > > > > and also the iso not dockable to the loopback device: > > #cryptsetup -r luksOpen /dev/loop20 volume1 > #The required offset is beyond the actual size of the /dev/loop20 > device > > Could you give me a tips for make it working? While the page you linked is quite old, it still works (I tried 2.0.2 version even). (Loop devices are now allocated automatically, no need to use losetup with cryptsetup, just use file as the argument. THe size calculation is too tricky there, it can be simplified.). Are you sure that your *.iso image was correctly created? It seems to me that it is just LUKS header without data (that's why "beyond offset" error). Milan