Page 1 of 1
Defines Uninitialized Drive, RAW Drive and Initialized Drive
Posted: Sat Nov 19, 2022 2:26 pm
by hoangdiemtinh
I create a VHD file and Mount it, then use DISKPART CLEAN command to delete all properties and partitions of its hard disk.
How to distinguish Uninitialized Drive, RAW Drive and Initialized Drive ?.
.
And if that hard drive is not initialized, how to initialize it without DISKPART.
.

.

.

.
Thanks.
Re: Defines initialized and uninitialized hard drives
Posted: Sat Nov 19, 2022 5:04 pm
by fryquez
An initialized disk does have a partition layout (usually MBR or GPT).
There is
IOCTL_DISK_GET_PARTITION_INFO_EX or
DRIVE_LAYOUT_INFORMATION_EX to get this information.
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
Posted: Mon Nov 21, 2022 2:12 am
by hoangdiemtinh
sorry, i'm a newbie, can't understand with brief hint. Thankyou anyway. I need an example.
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
Posted: Mon Nov 21, 2022 7:12 am
by netmaestro
The bot would like an example - anyone?
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
Posted: Mon Nov 21, 2022 7:58 am
by HeX0R
I doubt, that a bot would
translate apps
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
Posted: Mon Nov 21, 2022 8:00 am
by hoangdiemtinh
Sorry for my bad English. I am from vietnam. NOT BOT

Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
Posted: Thu Nov 24, 2022 5:42 am
by hoangdiemtinh
After few days, I found in WMI, but it need .NET Framework, this not work in WinPE
I query class Win32_DiskDrive, get CIMV2:Win32_DiskDrive.DeviceID="\\\\.\\PHYSICALDRIVE5" (5 = my VHD Disk), get Properties named Partitons (if 0 as Uninitialized Drive, this is right ?)
call @Chris
Please help