From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.saout.de ([127.0.0.1]) by localhost (mail.saout.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UAGiUAzECC-r for ; Mon, 6 Feb 2012 15:23:10 +0100 (CET) Received: from enyo.dsw2k3.info (enyo.dsw2k3.info [195.71.86.239]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Mon, 6 Feb 2012 15:23:10 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by enyo.dsw2k3.info (Postfix) with ESMTP id EFC8E98C8F4 for ; Mon, 6 Feb 2012 15:14:19 +0100 (CET) Received: from enyo.dsw2k3.info ([127.0.0.1]) by localhost (enyo.dsw2k3.info [127.0.0.1]) (amavisd-new, port 10024) with LMTP id XNhdPtCdsoys for ; Mon, 6 Feb 2012 15:14:11 +0100 (CET) Received: from citd.de (pD9FF3DB5.dip.t-dialin.net [217.255.61.181]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by enyo.dsw2k3.info (Postfix) with ESMTPSA id E655B98C7F6 for ; Mon, 6 Feb 2012 15:14:10 +0100 (CET) Date: Mon, 6 Feb 2012 15:14:08 +0100 From: Matthias Schniedermeyer Message-ID: <20120206141408.GA29217@citd.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [dm-crypt] Is removing a HDD after umount, without remove, considered safe? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi I want to integrate a dm-crypted USB-HDD with autofs. The first part of setting up dm-crypt can be put into udev, so that the dm-crypt-device is setup immediatly after plugging in the HDD, which in turn can then be used with autofs. So my question is: Is it safe to unplug the HDD after the filesystem is umounted, but with the dm-crypt-device still in existance? (IOW: Are all dirty blocks immediately written to the HDD (at least at umount-time), or can there be something still buffered in the dm-crypt device?) Bis denn -- Real Programmers consider "what you see is what you get" to be just as bad a concept in Text Editors as it is in women. No, the Real Programmer wants a "you asked for it, you got it" text editor -- complicated, cryptic, powerful, unforgiving, dangerous.