How to open a raw (non-native) disk volume ?

Giganews Newsgroups
Subject: How to open a raw (non-native) disk volume ?
Posted by:  R.Wieser (addre…@not.available)
Date: Mon, 4 Mar 2019

Hello all,

Windows has IOCTL_DISK_GET_DRIVE_LAYOUT to retrieve all partitions of a
physical drive, but I've not been able to find how to open such partitions
for raw access (letting the OS handle the nitty-gritty as well as not
interfering with access to other volumes on the same drive).

Part of the problem is that non-native (like type 0x83, Linux) as well as
extended partitions (like type 5) do, ofcourse, not have drive letters or
other IDs assigned to them, so the \.\ or \?\ approach doesn't work.

I've also tried FindFirstVolume, but that one only returns recognised data
volumes ones (iow: neither of the above).

Has anyone an idea ?

Regards,
Rudy Wieser

Replies