Sie sind auf Seite 1von 3

Dual-booting Encrypted Windows and Encrypted Linux | Bandit Defense http://209.85.135.132/search?q=cache:rTwDaeKA-KAJ:blog.banditdef...

This is Google's cache of http://blog.banditdefense.com/2009/02/16/dual-booting-encrypted-windows-and-encrypted-linux/. It is a snapshot of the page as it


appeared on 22 Jul 2009 20:21:05 GMT. The current page could have changed in the meantime. Learn more

These search terms are highlighted: truecrypt ubuntu windows Text-only version

a weblog of my research, projects, hacks, and thoughts

To search type & enter


Dual-booting Encrypted Windows and Encrypted Linux
Whole disk encryption in Linux is easy nowadays if you install your operating system correctly. It’s easy in
Windows as well with TrueCrypt. Complications occur though when you’re trying to dual-boot Linux and
A Well-Rounded Hacker
If there's any topic that you're
Windows while using TrueCrypt.
specifically interested in, please

The easiest way to set up a dual-boot system is to install the bootloader that comes with your Linux distro in your contact me and if I know about it,

master boot record (MBR), and add Windows to the boot list. The problem is that if you set up TrueCrypt system I'll post about it.

encryption in Windows, it overwrites whatever is in the MBR (for this example, grub) with the TrueCrypt
bootloader. When you turn your computer on, TrueCrypt will ask for an encryption passphrase for Windows and Contact me about about anything

not even mention booting into Linux. else you want too. I'm currently
searching for freelance
It’s possible to get TrueCrypt to chainload grub, so you can boot into both, but it gets worse. When your Linux
programming or security work.
package manager upgrades your kernel image (this happens in Ubuntu unbelievably often), grub will reinstall itself
in the MBR, overwriting the TrueCrypt bootloader. At this point, the only way to boot into Windows is to boot
Recommended Reading
from your TrueCrypt recovery CD.

This is all a big pain in the ass, but luckily there’s a simple solution! It’s possible to keep grub installed in your MBR, RSS Feed
have Windows in your grub boot list, and when you choose it, have grub chainload to the TrueCrypt bootloader
that lives somewhere outside your MBR. Here’s how to set it up.

Install Windows on part of your hard drive.

Install Linux with encrypted filesystems on the rest of it, and let grub overwrite your MBR. For now, keep a
Windows entry in grub.conf.

Boot into Windows, install TrueCrypt, and set up system encryption. It will make you burn a rescue CD,
Tags
reboot to make sure it all works, and then you’ll have to wait awhile for it to encrypt everything. When you reboot, adblock advice anonimity
the TrueCrypt bootloader will now be on the MBR.
arbitrary code backtrack
Boot to a Linux LiveCD, mount your boot partition in /boot, back up your TrueCrypt MBR, edit your grub blackhats blogging border
menu, and reinstall grub on the MBR. This is where all the work happens. I’m going to assume you’re using searches civil liberties

Ubuntu, and your partition scheme looks like this: conferences dual-boot eff

encryption firefox
/dev/sda1 - Windows
/dev/sda2 - /boot
free culture hacking
/dev/sda3 - encrypted LVM with other partitions in it hello world howto internet
explorer internets linux
If yours is different, adjust accordingly. After booting to the LiveCD and opening a terminal, here’s how to do it: livecd mitm news new toy
passwords phpass_crack
ubuntu@ubuntu:~$ sudo -s piracy pirate bay privacy
root@ubuntu:~# rm -r /boot/* privilege escalation quick
root@ubuntu:~# mount /dev/sda2 /boot/ hacks rootkit ssl sudo tor
root@ubuntu:~# cd /boot/ truecrypt ubuntu virus warez
root@ubuntu:/boot# dd if=/dev/sda of=truecrypt.mbr bs=512 count=1
web applications web
root@ubuntu:/boot# grub-install /dev/sda
browser wifi windows
root@ubuntu:/boot# nano grub/menu.lst
wordpress
Find your Windows stanza in the configuration file and make it look like this:
Recent Comments

title Encrypted Windows alan on My new Dell Inspiron

root (hd0,1) Mini 9 Netbook Hackbox

chainloader /truecrypt.mbr Advanced WordPress Security


Tips | Website In A Weekend
on Wordpress security
And that’s it. How does that work? You grab the TrueCrypt bootloader from the MBR and save it as the file
dissected and analyzed: Part 1
/boot/truecrypt.mbr. Then you write grub to the MBR. When you try booting into Windows, grub will chainload to
Crapz.org on Dual-booting

1 von 3 01.08.2009 00:20


Dual-booting Encrypted Windows and Encrypted Linux | Bandit Defense http://209.85.135.132/search?q=cache:rTwDaeKA-KAJ:blog.banditdef...

where you copied the TrueCrypt bootloader, and from there you can type your TrueCrypt passphrase to boot into Encrypted Windows and
Windows. Encrypted Linux
Anonymous on Configuring tor

4 submit
in BackTrack 4
diggs Per Olav on Dual-booting
to
digg it reddit Encrypted Windows and
Encrypted Linux

This entry was posted on Monday, February 16th, 2009 at 11:40 am. You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site. Archives

June 2009
April 2009
5 Comments
March 2009
February 2009
Caleb says:
April 12, 2009 at 5:08 pm

Thank you for the fine article. Although I used LILO, this was very helpful and just what I needed to make it
work.

Caleb

JDB says:
April 21, 2009 at 9:24 am

Great article, but I’m having an issue reinstalling the grub bootloader. Maybe you have a suggestion if you have
ever run into this before. My config differs from yours in that I do not have a separate boot partition.

sda1 – Windows Vista


sda5 – Ubuntu 8.10
sda6 – Swap

There is a boot folder on sda5 so I mounted it, switched to the boot folder and backed up the TrueCrypt MBR to
there. However, when I try to reinstall the grub bootloader using the command grub-install /dev/sda, I get the
following error:

“Could not find device for /boot: Not found or not a block device”

If you have any ideas, I would appreciate it.

Thanks,
JD

m0rebel says:
April 21, 2009 at 11:43 am

JDB, I’m assuming you’re trying to run grub-install from the ubuntu LiveCD, like I suggested in the article. For
grub-install to work without errors, you need to have the real boot directory on your hard drive mounted to
/boot. Normally all you need to do is mount your boot partition to /boot, but since you don’t have a separate
boot partition you’ll have to instead mount your root partition to /, since it contains the real /boot. You can’t
really do that though (it would involve deleting the whole OS that’s running), so instead you should mount it to
somewhere else and chroot to it. This is from the top of my head, but it would be something like this:

mkdir /mnt/root
mount /dev/sda5 /mnt/root
chroot /mnt/root /bin/bash

At that point, you get a new bash session (technically running /mnt/root/bin/bash) where / is /mnt/root. Then
you can try running grub-install /dev/sda to see if that works.

What you might be able to do also is use a symbolic link just for the boot directory. Like this:

mkdir /mnt/root
mount /dev/sda5 /mnt/root
rm -r /boot
ln -s /mnt/root/boot /boot

Then try it. This basically would just make /boot point to /mnt/root/boot, which is you real boot partition. I don’t
know if this would work, but it might.

Also keep in mind that you can only do this stuff if you’re not using encrypted partitions in Ubuntu, which I’m
sure you know. The easiest way to set up whole disk encryption in Ubuntu would be to just re-install Ubuntu
from the alternate cd. Hope this helps!

Per Olav says:


June 26, 2009 at 11:48 pm

The windows stanza in /menu.lst did not work for me. I had to use this:

title Windows Vista/Longhorn

2 von 3 01.08.2009 00:20


Dual-booting Encrypted Windows and Encrypted Linux | Bandit Defense http://209.85.135.132/search?q=cache:rTwDaeKA-KAJ:blog.banditdef...

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

Crapz.org says:
July 1, 2009 at 3:07 am

Thanks. What an informative post. Keep up the good work~

Check us out for latest cracked appz,gamez,moviez and pornz!

Name (required)

Mail (will not be published) (required)

Website

XHTML: You can use these tags:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del
datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment

Submit Comment

Bandit Defense is powered by WordPress. Entries (RSS) and Comments (RSS).

3 von 3 01.08.2009 00:20

Das könnte Ihnen auch gefallen