DM-Crypt Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [dm-crypt] loop file with partition problems
@ 2012-02-29 16:26 Giovanni Di Stasi
  2012-02-29 16:40 ` Arno Wagner
  2012-02-29 16:41 ` Milan Broz
  0 siblings, 2 replies; 5+ messages in thread
From: Giovanni Di Stasi @ 2012-02-29 16:26 UTC (permalink / raw)
  To: dm-crypt

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-29 18:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-29 16:26 [dm-crypt] loop file with partition problems Giovanni Di Stasi
2012-02-29 16:40 ` Arno Wagner
2012-02-29 16:41 ` Milan Broz
2012-02-29 17:57   ` Giovanni Di Stasi
2012-02-29 18:44     ` Arno Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox