SteveOH

Tag: truecrypt

Ubuntu / Debian Windows 7 Dual Boot System Encryption with TrueCrypt

by on Jun.02, 2011, under Technology

I will be doing this configuration on my test machine very soon since my previous guide (here) is a bit outdated.  For now you can follow the previous instructions and modify them per the instructions below:

From SuperUser:

I’ve done it :) but not exactly like in your link, because of some kind of (bug?) in 2 (tutorial is with “1″ but I’ve 2), specifically in this

title /Longhorn
rootnoverify (hd0,0) makeactive
chainloader (hd0,1)/.mbr
boot

The problem is known and posted on many forums.

My was:

  1. Windows7 partition using truecrypt, selecting Single boot and overwriting Grub2 loader with truecrypt loader
  2. Boot from Rescue CD and install grub2 bootloader NOT on MBR but on /dev/sda3 which is / partition (so truecrypt loader was not overrided)

Now while booting truecrypt bootmenu is shown and if I’d access Win7 I’m entering password, but if I’d enter debian (via Grub2) I hit esc key and then truecrypt loader is searching all other partitions for boot loader and finding Grub2 which resides on /dev/sda3 and load system properly.

I think its the best way to do this for now (until sb find resolution for Grub2 to read /boot/truecrypt.mbr without errors).

1 Comment :, , , , , , , , , , , , , more...

Ubuntu / Vista Dual Boot – Full Encryption with TrueCrypt

by on Mar.12, 2009, under Technology

sda1: encrypted with
sda2: Hardy Heron /boot partition (not encrypted)
sda3: Ubuntu Hardy Heron encrypted volume with LVM inside and / and swap partions within LVM (to save partitions used overall incase it gets over 5 partitions)
sda4: Working on installing OSX Leopard on this partition currently.

The steps I used are as follows, in brief:
1) Installed Vista first (actually pre-installed on laptop)

2) Installed Ubuntu second using encrypted physical volume with LVM inside it and 2 partions / and swap inside the LVM(at this point, was in the MBR)

3) Ran full windows (not full disk ) through TrueCrypt and let it write its bootloader to the MBR. (obviously overwriting Grub in the MBR)

4) Booted with a live cd and copied the truecrypt bootloader from the MBR to a file in the /boot partition (sda2)
use these commands to do so:
dd if=/dev/sda of=/mnt/boot/truecrypt.mbr count=1 bs=512
dd if=/dev/sda of=/mnt/boot/truecrypt.backup count=8 bs=32256

5)Reinstalled grub to the MBR using these commands:
sudo grub
install (hd0,1)/grub/stage1 (hd0) (hd0,1)/grub/stage2 0×8000 p

6) Added a chainloader to the menu.lst Vista entry to point to the truecrypt bootloader within the /boot partition like so:

title Windows Vista/Longhorn
rootnoverify (hd0,0)
makeactive
chainloader (hd0,1)/truecrypt.mbr
boot

The only partition not encrypted in the /boot partition so far, which is fine. After grub loads, no matter which OS I choose, I enter a passphrase and that OS starts.

For more detailed instructions which I pulled from but which are for instead of Vista, use this link:

http://ubuntuforums.org/showthread.php?t=761530

9 Comments :, , , , , , , , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!