From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) (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:36:57 +0100 (CET) Received: by mail-wm1-x32a.google.com with SMTP id a65so4859223wme.1 for ; Thu, 12 Nov 2020 01:36:57 -0800 (PST) References: <4d5bc266dc3a8afcee0e13f5476f4a38@msw.it> <7fc28489-10f9-0033-65aa-03b841a23408@telefonica.net> From: Milan Broz Message-ID: <6bb76ae6-b9a6-2bac-8e81-d2e8b1db2dae@gmail.com> Date: Thu, 12 Nov 2020 10:36:55 +0100 MIME-Version: 1.0 In-Reply-To: <7fc28489-10f9-0033-65aa-03b841a23408@telefonica.net> 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: "Carlos E. R." , dm-crypt mail list On 11/11/2020 20:16, Carlos E. R. wrote: > 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: > > Hum. I created encrypted DVD years ago with a similar procedure, > somewhat simpler. Basically, I created an empty file of the same size as > the CD or DVD, mounted it as a loop device, then I encrypted that loop > device, and then I formatted the resulting luks device with any > filesystem type I wished, typically XFS. > > This, so far, still works. > > Then I just burn that file to DVD. > > The final step is to mount and decipher the DVD - and this step failed, > but it was an XFS error if I remember correctly. You cannot switch block size in XFS - if DVD reports 2k block and XFS was formatted with 4k block device, it will never work. This is not a cryptsetup problem but the way how XFS works. Try to run lsblk -t and compare reported sector size for DVD device and your original device. If it is the same, it should work even for XFS. Milan