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.
Defines Uninitialized Drive, RAW Drive and Initialized Drive
-
- User
- Posts: 29
- Joined: Wed Nov 16, 2022 1:51 pm
Defines Uninitialized Drive, RAW Drive and Initialized Drive
Last edited by hoangdiemtinh on Mon Nov 21, 2022 2:11 am, edited 1 time in total.
Re: Defines initialized and uninitialized hard drives
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.
There is IOCTL_DISK_GET_PARTITION_INFO_EX or DRIVE_LAYOUT_INFORMATION_EX to get this information.
-
- User
- Posts: 29
- Joined: Wed Nov 16, 2022 1:51 pm
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
sorry, i'm a newbie, can't understand with brief hint. Thankyou anyway. I need an example.
- netmaestro
- PureBasic Bullfrog
- Posts: 8433
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
The bot would like an example - anyone?
BERESHEIT
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
I doubt, that a bot would translate apps
{Home}.:|:.{Dialog Design0R}.:|:.{Codes}.:|:.{Downloads}.:|:.{History Viewer Online}
-
- User
- Posts: 29
- Joined: Wed Nov 16, 2022 1:51 pm
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
Sorry for my bad English. I am from vietnam. NOT BOT
-
- User
- Posts: 29
- Joined: Wed Nov 16, 2022 1:51 pm
Re: Defines Uninitialized Drive, RAW Drive and Initialized Drive
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
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