From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-de.maxcluster.net (mail-de.maxcluster.net [62.113.231.250]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Sun, 3 Apr 2016 10:41:37 +0200 (CEST) Date: Sun, 3 Apr 2016 10:41:31 +0200 From: Matthias Schniedermeyer Message-ID: <20160403084131.GA6111@citd.de> References: <20160403000722.1266037f@ulgy_thing> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160403000722.1266037f@ulgy_thing> Subject: Re: [dm-crypt] Encrypted fs in file List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: doark@mail.com Cc: dm-crypt@saout.de On 03.04.2016 00:07, doark@mail.com wrote: > Hello, > I wanted to make certain that I got this process right since I've never > done it before and I can't seem to find docs on the subject. > > 1. Cat /dev/zero into a new file till it is big enough. > 2. Use cryptsetup on the file (format and open). > 3. Use mkfs on the loop device. > 4. Mount the loop device as if it were a block device. > > Does this look correct to you? Nearly. 3) Not the loop device, but the dm-device, the loop it inbetween and is handled automatically. A symlink for the dm-device appears in /dev/mapper/ with the name you provided for the open command. Same for 4) You mount the dm-device -- Matthias