[Bug 484102] Re: Grub2 doesn't chainload truecrypt loader correctly
nikhil
nikhil.ashok.sharma at gmail.com
Tue Jul 1 18:44:54 UTC 2014
Hi Guys,
I am able to dual boot my machine ( Windows 7 + Ubuntu) with McAfee
Endpoint Encryption enabled on windows.
Below are the details steps that I followed,
1) Installed Windows 7 without McAfee Endpoint encryption enabled. This
is because as McAfee encryption is a sector level encryption we cannot
an partition if encryption is enabled.
2) Once windows is installed I logged in widows and shrink one of the
partition to create a free unallocated space for ubuntu.
3) Then I enabled McAfee Endpoint Encryption in windows and encrypted
the hard disk.
4) Then I booted through ubuntu live cd (by clicking on try ubuntu) and
made a copy of Master boot record on a pen drive by executing following
command,
" dd if=/dev/sda of=/media/user/pen_drive/safemode.mbr
bs=512 count=1"
5) Then I installed ubuntu in the unallocated space that I created by
shrinking the partition in windows.
6) After completing ubuntu installation I copied the "safeMode.mbr" file
from my pen drive to "/boot" folder in ubuntu.
7) Then I modified "/etc/grub.d/40_custom" and added following lines,
menuentry 'Windows 7' {
insmod chain
insmod ext2
set root=(hd0,4)
chainloader /boot/safeMode.mbr
boot
}
insmod :- To load chain and ext2 module
set root = (hd0,4) :- To load ubuntu file system and as ubuntu was installed at "/dev/sda5" so "hd0,4" will the root
chainloader /boot/safeMode.mbr : - TO load the Master boot record of Windows
boot :- To boot through the Master boot record chainloaded
8) Then execute the following command :- "sudo upgrade-grub" to place
the "/etc/grub.d/40_custom" file into "/boot/grub/grub.cfg"
9) Reboot and you will see "Windows 7" as as entry in GRUB on selecting
it you will be asked for McAfee key.
Both operating system are working fine.
Hope it helps !
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/484102
Title:
Grub2 doesn't chainload truecrypt loader correctly
Status in “grub2” package in Ubuntu:
Invalid
Bug description:
Binary package hint: grub2
I am working on a dual-boot system with one hard disk.
sda1 = /boot
sda2 = Windows Vista Ultima encrypted with TrueCrypt System Encryption
sda3 = Ubuntu 9.10 encrypted lvm
The grub2 entry for windows is created by the file 50_windows in the
"/etc/grub.d" directory:
#! /bin/sh -e
echo "Adding Windows Vista entry" >&2
cat << EOF
menuentry "Windows Vista" {
set root=(hd0,2)
parttool (hd0,2) boot+
chainloader (hd0,1)/truecrypt.mbr
}
EOF
Choosing this entry in the grub2 menu the Truecrypt loader only shows the following message:
"TrueCrypt Boot Loader
Load damaged! Use Rescue Disk: Repair > Options > Restore Truecrypt Boot Loader"
But this would install the Bootloader into the MBR, where grub2 shall be. The TrueCrypt Loader is in /boot/truecrypt.mbr
Booting Ubuntu works without problems.
With grub-legacy the chainloading worked.
The menu.lst:
title Windows Vista
rootnoverify (hd0,1)
savedefault
makeactive
chainloader (hd0,0)/truecrypt.mbr
My Grub2 version: 1.97~beta4
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/484102/+subscriptions
More information about the foundations-bugs
mailing list