Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 9649  / 2 Years ago, sat, june 25, 2022, 9:13:38

How can I dual-boot a TrueCrypt-encrypted Windows 7 and Ubuntu 11.10 when both are installed separately on different physical drives?



I have two hard drives. hd0 has a TrueCrypt-encrypted Windows 7 installation with the TrueCrypt bootloader. hd1 has an Ubuntu 11.10 installation with the grub2 bootloader.



The output of fdisk -l is as follows:



  Device Boot      Start         End      Blocks   Id  System   
/dev/sda1 * 2048 206847 102400 7 HPFS/NTFS/exFAT
/dev/sda2 206848 976771071 488282112 7 HPFS/NTFS/exFAT

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 968517631 484257792 83 Linux
/dev/sdb2 968519678 976771071 4125697 5 Extended
/dev/sdb5 968519680 976771071 4125696 82 Linux swap / Solaris


I can successfully boot into either OS by changing the boot order in the BIOS but do not want to have to repeatedly do this. My options are either:




  • Add the TrueCrypt bootloader to the grub2 config and chainload this with grub2.

  • Boot into the TrueCrypt bootloader and, when hitting escape to exit password entry, boot into grub2.



I have had difficulty with option 1, as when hitting escape TrueCrypt finds no other bootable partition. As I understand, it should search for other bootable disks.



I also have had difficulty with option 2, and with the following inside /etc/grub.d/40_custom (and then running update-grub2) ...



menuentry "Windows 7" {
set root=(hd0,1)
chainloader +1
}


(I also tried root=(hd0,0) and root=(hd0,2))



... I get errors with no such partition. I have also read various sources that suggest it isn't possible to do this with grub2 without mounting and booting into the TrueCrypt rescue disk ISO prior to booting Windows. Is this necessary?



What am I doing wrong?


More From » grub2

 Answers
2

It seems the simplest solution for this is to use the Windows bootloader to boot into Grub rather than the other way round. Grub seems unable to boot to an encrypted windows partition even with --force.



There is a tool called EasyBCD (free for non-commercial use) which will properly configure the Windows bootloader to boot into Grub once you've entered your TrueCrypt password. I now have my Windows drive as the first boot device in the BIOS and Grub as the default boot item in the Windows bootloader. You can just as easily make Windows the default.


[#39976] Saturday, June 25, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istmasted

Total Points: 287
Total Questions: 130
Total Answers: 153

Location: Burkina Faso
Member since Thu, Dec 23, 2021
2 Years ago
istmasted questions
;