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 XYpCvqzcGKzw for ; Wed, 29 Feb 2012 17:29:06 +0100 (CET) Received: from mail-lpp01m010-f50.google.com (mail-lpp01m010-f50.google.com [209.85.215.50]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.saout.de (Postfix) with ESMTPS for ; Wed, 29 Feb 2012 17:29:05 +0100 (CET) Received: by lahm13 with SMTP id m13so9605882lah.37 for ; Wed, 29 Feb 2012 08:29:05 -0800 (PST) Message-ID: <4F4E519B.3030504@gmail.com> Date: Wed, 29 Feb 2012 17:26:03 +0100 From: Giovanni Di Stasi MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: [dm-crypt] loop file with partition problems List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi everyone, I am having problems accessing a partition I have created on a file. I have never managed to mount it after reboot. I am using Debian (testing). This is what I did: # sudo -i # echo aes >> /etc/modules # echo dm_mod >> /etc/modules # echo dm_crypt >> /etc/modules # dd if=/dev/urandom of=.encrypted bs=1024 count=500000 # sudo cryptsetup -y create crypt .encrypted # echo "crypt /home/giovanni/.encrypted none none" >> /etc/crypttab # sudo mkfs.ext4 /dev/mapper/crypt # mkdir /home/giovanni/cip # chown giovanni:giovanni /home/giovanni/cip/ # sudo mount /dev/mapper/crypt /home/giovanni/cip # ls /home/giovanni/cip/ # sudo umount /home/giovanni/cip # sudo mount /dev/mapper/crypt /home/giovanni/cip After rebooted, I don't really know how to mount my partition. I have tried this: # sudo -i # cryptsetup luksOpen .encrypted crypt Device /dev/loop0 is not a valid LUKS device. Did I lost all my data as I suspect? If so, why? Thanks a lot, Giovanni