Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 31-03-2012
Member
 
Join Date: Jan 2012
Posts: 56
How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

Well I have encrypted my system. now I started to use Grub 2 and simply tried to adapt the code which chainload the TrueCrypt bootloader
Quote:
menuentry "Windows Vista" {
insmod chain
set root=(hd0,1)
chainloader (hd0,2)/truecrypt.mbr
}
As I have selected Windows Vista it simply loads TrueCrypt bootloader however it is prompting that is damaged. Can you tell me why it is happening?
Reply With Quote
  #2  
Old 31-03-2012
Member
 
Join Date: Aug 2011
Posts: 306
Re: How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

it seems to be bit odd that root is (hd0,1) and you are trying to chainload (hd0,2). You will also see that grub2 number partition from the 1 upwards rather than that of 0 upwards which has been used by grub1. I recommend that you should use root (hd0,2) or chainload (hd0,1) and see whether it is working or not.
Reply With Quote
  #3  
Old 31-03-2012
Member
 
Join Date: Jul 2011
Posts: 227
Re: How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

You can give a try to below mentioned code and it can help you to resolve the issue of yours.

Code:
#make a partition active ("makeactive" in grub legacy)
parttool (hd0,4) boot+
Reply With Quote
  #4  
Old 31-03-2012
Member
 
Join Date: Nov 2010
Posts: 363
Re: How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

As far as I know legacy-grub is working fine with truecrypt when you have installed tiny loader in you MBR which is loading other load stages from the boot partition. Grub 2 is installed on MBR and it embeds the core.img which is starting at the sector 1 and that?s why it is overwriting some of the portion of truecrypt loader.
Reply With Quote
  #5  
Old 31-03-2012
Member
 
Join Date: Mar 2011
Posts: 489
Re: How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

After going through the problem I am suggesting below mentioned steps which will be helpful to resolve the matter of yours.
First of all copy rescue ISO file to /boot.

After that you have to execute below mentioned command.
Code:
sudo apt-get install syslinux
sudo cp /usr/lib/syslinux/memdisk /boot
now you have to add /etc/grub.d/40_windows_truecrypt

Code:
#!/bin/sh
exec tail -n +3 $0
# Windows with TrueCrypt
menuentry "Microsoft Windows" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos3)'
linux16 ($root)/memdisk iso raw
initrd16 ($root)/truecrypt.iso
}
The above mentioned steps is supposed to updating the grub. You can even modify the same according to requirement of yours. (hd0,msdos3) partition should be your /boot and number should begining at 1.
Reply With Quote
  #6  
Old 03-04-2012
Member
 
Join Date: May 2011
Posts: 392
Re: How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

In case TrueCrypt bootloader prompting with an error message such as ?Error: It appears you are creating a hidden OS.? Then I am suspecting that there should be remaining of TrueCrypt MBR are available around. You will be able to ignore the same by pressing ?n? or you can prevent the error message completely by doing below mentioned thing.
See that you are having TrueCrypt MBR
Code:
dd if=$yourhd count=8 bs=1 skip=6
prints "TrueCryp"
simply remove TrueCrypt marker
Code:
echo 'grub<3tc' | dd of=$yourhd count=8 bs=1 seek=6
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?"
Thread Thread Starter Forum Replies Last Post
GRUB not loading after Installing Centos Buggers Operating Systems 6 02-05-2011 10:41 PM
Backtrack grub and Ubuntu grub Mulan Operating Systems 6 09-05-2010 12:11 AM
GRUB loading error xenogizmo Operating Systems 2 28-12-2009 02:54 PM
How do i install TrueCrypt on a USB drive on Ubuntu McGrawh Hardware Peripherals 2 21-05-2009 10:04 AM
Grub Error 21 With Loading ABDIEL Operating Systems 3 02-05-2009 06:10 PM


All times are GMT +5.5. The time now is 01:41 PM.