Expanding the Boot Drive After Installing Bootloader
The Bootloader installation creates of a new partition that immediately follows the boot partition (typically C:
) on the disk. To extend the boot partition we need to move the Bootloader partition, labeled HTBOOTLDR
, to the end of the disk using the MoveHTbootloader.ps1
PowerShell script.
- Extend the disk containing the boot partition using the instructions from your virtualization vendor.
- Log into PowerShell on the Windows machine.
- Locate the main Policy Agent installation directory. The PowerShiell scripts are located in the
bin
folder under this main directory. The default directory isC:\Program Files\hcs
. -
Run the PowerShell script
MoveHTBootloader.ps1
by entering the commandpowershell -File "C:\hytrust-install-dir\MoveHTBootloader.ps1"
.The script creates a new Bootloader partition at the end of the recently extended disk and reboots the virtual machine. On reboot,
MoveHTBootloader.ps1
will again be executed automatically and will delete the old Bootloader partition and then extend the boot partition to take up the available free space.Note: This operation changes the drive letter for the HTBOOTLDR
drive. The original drive letter can be restored by either using thehtblconf.exe
GUI utility or theChangeHTBootloaderDrive.ps1
PowerShell script.