My Certifications

LPI

Comptia A+
BB Training
Certified Ethical Hacker


Tags

This will be shown to users with no Flash or Javascript.
Ubuntu Encrypted Loopback Disk PDF Print E-mail
User Rating: / 0
PoorBest 
Written by Jason Kendall   
Friday, 03 October 2008 21:47
So I have a need for a encrypted disk - as a loop back file. I wrote earlier on how to restore a partimage backup to loopback, so lets see if we can make this work.

  1. We need to tell the kernal how to encrypt disks with a module
    • modprobe cryptoloop
  2. Create the loop file (like before, but with urandom to help hide the disk, the count is MB*1000 so in this case 1M)
    • dd if=/dev/urandom of=myharddisk.img bs=1000 count=1000 
  3. Create the loopback device (I'm going to use TwoFish)
    • losetup -e twofish /dev/loop0 ./myharddisk.img
  4. At this point, you will be asked for a password - create your own
  5. Create the file system of choice (ext3 for me)
    • mkfs.ext3 /dev/loop0  
  6. Mount the new loop back point /dev/loop0
    • mount /dev/loop0 /mnt/my/mount/point

Enjoy!

Add your comment

Your name:
Your email:
Subject:
Comment:
 

Like it? Share it!

Add to: JBookmarks Add to: Facebook Add to: Digg Add to: Del.icoi.us Add to: Reddit Add to: StumbleUpon Add to: Slashdot Add to: Technorati Add to: Google Information