From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Tue, 10 Nov 2020 17:59:48 +0100 (CET) References: <4d5bc266dc3a8afcee0e13f5476f4a38@msw.it> From: Ondrej Kozina Message-ID: Date: Tue, 10 Nov 2020 17:59:37 +0100 MIME-Version: 1.0 In-Reply-To: <4d5bc266dc3a8afcee0e13f5476f4a38@msw.it> Content-Type: text/plain; charset=utf-8; format=flowed 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: dm-crypt@saout.de Cc: Davide Marchi On 11/10/20 5:22 PM, 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: > > > > cryptsetup --debug -r luksOpen /dev/sr1 dvdati > # cryptsetup 2.0.2 processing "cryptsetup --debug -r luksOpen Hi, could you try to reproduce it on more up to date cryptsetup release? Version 2.0.2 is quite old and may contain bugs already fixed in current upstream. Regards O. > /dev/sr1 dvdati" > # Running command open. > # Locking memory. > # Installing SIGINT/SIGTERM handler. > # Unblocking interruption on signal. > # Allocating context for crypt device /dev/sr1. > # Trying to open and read device /dev/sr1 with direct-io. > # Initialising device-mapper backend library. > # Trying to load any crypt type from device /dev/sr1. > # Crypto backend (gcrypt 1.8.1) initialized in cryptsetup library > version 2.0.2. > # Detected kernel Linux 5.3.1-050301-lowlatency x86_64. > # PBKDF pbkdf2, hash sha256, time_ms 2000 (iterations 0), > max_memory_kb 0, parallel_threads 0. > # Reading LUKS header of size 1024 from device /dev/sr1 > # Key length 32, device size 2097151 sectors, header size 2050 > sectors. > # Activating volume dvdati using token -1. > # Interactive passphrase entry requested. > Inserire la passphrase per /dev/sr1: > # Activating volume dvdati [keyslot -1] using passphrase. > # dm version [ opencount flush ] [16384] (*1) > # dm versions [ opencount flush ] [16384] (*1) > # Detected dm-ioctl version 4.40.0. > # Detected dm-crypt version 1.19.0. > # Device-mapper backend running with UDEV support enabled. > # dm status dvdati [ opencount flush ] [16384] (*1) > # Trying to open key slot 0 [ACTIVE_LAST]. > # Reading key slot 0 area. > # Using userspace crypto wrapper to access keyslot area. > Slot di chiave 0 sbloccato. > # Calculated device size is 2093055 sectors (RW), offset 4096. > # DM-UUID is CRYPT-LUKS1-fc00404de1784730ae9492929a0db06c-dvdati > # Udev cookie 0xd4d0652 (semid 10) created > # Udev cookie 0xd4d0652 (semid 10) incremented to 1 > # Udev cookie 0xd4d0652 (semid 10) incremented to 2 > # Udev cookie 0xd4d0652 (semid 10) assigned to CREATE task(0) with > flags DISABLE_LIBRARY_FALLBACK (0x20) > # dm create dvdati > CRYPT-LUKS1-fc00404de1784730ae9492929a0db06c-dvdati [ opencount flush ] > [16384] (*1) > # dm reload dvdati [ opencount flush readonly securedata ] > [16384] (*1) > device-mapper: reload ioctl on failed: Argomento non valido > # Udev cookie 0xd4d0652 (semid 10) decremented to 1 > # Udev cookie 0xd4d0652 (semid 10) incremented to 2 > # Udev cookie 0xd4d0652 (semid 10) assigned to REMOVE task(2) with > flags DISABLE_LIBRARY_FALLBACK (0x20) > # dm remove dvdati [ opencount flush readonly securedata ] > [16384] (*1) > # Udev cookie 0xd4d0652 (semid 10) decremented to 1 > # Udev cookie 0xd4d0652 (semid 10) waiting for zero > # Udev cookie 0xd4d0652 (semid 10) destroyed > # Releasing crypt device /dev/sr1 context. > # Releasing device-mapper backend. > # Unlocking memory. > 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? > > > Many thanks! > > > Davide > > > > _______________________________________________ > dm-crypt mailing list > dm-crypt@saout.de > https://www.saout.de/mailman/listinfo/dm-crypt >