Results 1 to 6 of 6

Thread: How to do Chain loading TrueCrypt using GRUB 2 on ubuntu?

  1. #1
    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
    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?

  2. #2
    Join Date
    Aug 2011
    Posts
    308

    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.

  3. #3
    Join Date
    Jul 2011
    Posts
    229

    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+

  4. #4
    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.

  5. #5
    Join Date
    Mar 2011
    Posts
    490

    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.

  6. #6
    Join Date
    May 2011
    Posts
    397

    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

Similar Threads

  1. GRUB not loading after Installing Centos
    By Buggers in forum Operating Systems
    Replies: 6
    Last Post: 02-05-2011, 10:41 PM
  2. Backtrack grub and Ubuntu grub
    By Mulan in forum Operating Systems
    Replies: 6
    Last Post: 09-05-2010, 12:11 AM
  3. GRUB loading error
    By xenogizmo in forum Operating Systems
    Replies: 2
    Last Post: 28-12-2009, 02:54 PM
  4. How do i install TrueCrypt on a USB drive on Ubuntu
    By McGrawh in forum Hardware Peripherals
    Replies: 2
    Last Post: 21-05-2009, 10:04 AM
  5. Grub Error 21 With Loading
    By ABDIEL in forum Operating Systems
    Replies: 3
    Last Post: 02-05-2009, 06:10 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,994,035.13744 seconds with 17 queries