Академический Документы
Профессиональный Документы
Культура Документы
These search terms are highlighted: truecrypt ubuntu windows Text-only version
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 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
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.
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”
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!
The windows stanza in /menu.lst did not work for me. I had to use this:
rootnoverify (hd0,0)
makeactive
chainloader (hd0,1)/truecrypt.mbr
boot
Crapz.org says:
July 1, 2009 at 3:07 am
Name (required)
Website
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del
datetime=""> <em> <i> <q cite=""> <strike> <strong>
Comment
Submit Comment