Q: losetup encryption on raw disk

From: G. Ralph Kuntz, MD (grk_at_usa.net)
Date: 09/18/03


Date: 18 Sep 2003 06:26:53 -0700

I am running Debian/Gnu Linux with the 2.4.22 kernel. I would like to
use losetup to encrypt a raw disk (/dev/hda?). Is this possible?

Can I use

    dd if=/dev/zero of=/dev/hdaX count=(size of /dev/hdaX)

to initialize, then

    losetup -e AES --keybits 128 /dev/loop0 /dev/hdaX

to encrypt/decrypt it?

Thanks, Ralph



Relevant Pages

  • Re: Back to the future.
    ... Then port lzf to the kernel, or help with the lzo port. ... Swsusp might want RSA crypto, but it doesn't really need it. ... it only uses it to be able to suspend without asking for a passphrase. ... When a user logs in: get random data and encrypt it with the password, ...
    (Linux-Kernel)
  • Re: Am I thinking correctly?
    ... > ext3 and fs code in the kernel proper. ... > The idea is to encrypt data just prior to it being written to disk. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: encrypted filesystems
    ... you to check whether you want to encrypt the whole drive or rather just ... attacks on the key are harder. ... The howto was something like this: ... check if your kernel has the modules for encryption. ...
    (comp.os.linux.development.system)
  • Re: Encrypted Hard Drive
    ... I think you can encrypt everything except from your /boot partition. ... This teqniue should work with both bestcrypt and ... If you want to hide your kernel as well, ...
    (comp.os.linux.security)
  • losetup problems with hdd encryption
    ... I used to encrypt my disk ... en/decrypt data. ... Now with the new version of losetup it forces to use ... is there any possibility to force single-key usage within ...
    (linux.redhat.misc)