IOCTL_DISK_GET_DRIVE_GEOMETRY_EX fails for SW Raid volumes on Win Server 2016 RRS feed

  • Question

  • Hi,

    while trying to encrypt a mirrored volume (Windows SW Raid 1) on Windows Server 2016 Standard with VeraCrypt 1.21, I encountered VeraCrypt failing to encrypt the volume.

    After some investigation, I found the problem is DeviceIoControl(IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, ...) is always failing with ERROR_INVALID_FUNCTION on mirrored volumes. Exactly the same source code is successfully returning the correct drive geometry for non-raid partitions.

    Furthermore, also DeviceIoControl(IOCTL_DISK_GET_DRIVE_GEOMETRY, ...) (deprecated version, without "_EX") successfully returns the drive geometry even for the same Raid1 volume, where "_EX" version fails.

    Thus, I am pretty sure there is a problem with IOCTL_DISK_GET_DRIVE_GEOMETRY_EX on mirrored volumes on Win Server 2016.

    Any idea what could be the problem?


    Wednesday, November 1, 2017 11:14 PM