I want to boot my computer from a bootable VHD based on Windows 8.1. The non-encrypted version of this VHD boots successfully using Grub4Dos with no problem. It has just one NTFS partition. The Disk Management utility shows both of famous Boot and System partitions on drive C:.
I encrypted the VHD by adding another partition like the configuration used by Windows:
1- 350 MB FAT32
2- NTFS with Windows 8.1
Then I encrypted this VHD using Oracle VirtualBox. The encrypted VHD boots with no problem under VirtualBox (Boot partition on drive FAT32 and System on NTFS); but the problem is that Grub4Dos cannot boot it successfully. After Truecrypt bootloader (settled on hard disk's MBR) asks the encryption password, booting process continues and after a while a BSOD blue screen is shown.
I searched a lot to find a solution, but nothing found.
Here is the script of grub4dos I use in my job. I'm novice in Grub script and this script was originally created by another software when feeding it with non-encrypted vhd.
title Portable W832USP1.vhd - FiraDisk FILEDISK - 2.5 GB
find --set-root --ignore-floppies /W832USP1.vhd
map --heads=255 --sectors-per-track=63 --mem (md)0x800+4 (99)
map /W832USP1.vhd (hd0)
write (99) [FiraDisk]\nStartOptions=disk,vmem=find:/W832USP1.vhd,boot;\n\0
The third line shows some warnings around auto-detection of VHD disk info such as sector-per-track and heads no. But the non-encrypted VHD boots with no problem in spite of that.
What is the problem with my solution?. Where am I wrong here? :dubbio:Do I need to follow another approach or ...?