Diskpart is a scriptable Windows command-line tool which allows management of disk volumes including partitions and virtual disk (VHD/VHDX) files.

learn more… | top users | synonyms

1
vote
3answers
187 views

Rebuilding partition tables

Being the silly person I am, I accidentally used clean command in DISKPART on the wrong HDD (external via USB). I know all the data is still there as I didn't use the all parameter, and I even ...
10
votes
1answer
766 views

Is there any way to fix a corrupted LDM database?

TL;DR: Are there any tools/approaches to diagnosing and fixing LDM (Logical Disk Manager) metadata structures without recreating from scratch? Full description: I have two SSD drives ...
1
vote
1answer
626 views

Resizing partition with DiskPart using desired and minimum options is unsuccessful

I have a few systems I want to shrink the primary (and only) partition to about half of the disk and then create a new partition in the newly available space. The disks are 500GB. I want to script it, ...
1
vote
0answers
118 views

Windows Server 2008 R2 server not booting

It's a Hyper-V machine that runs the DC for my lab environment. Had a power failure that shut down my server and all other machines come up fine except this lone DC. It boots up straight to Recovery. ...
1
vote
0answers
101 views

Device imaging process Won't work first time

I'm having an issue regarding a disk imaging process. To get the machine into it's initial state, I first run a simple DISKPART CLEAN, and then restart the machine. . Diskpart sel disk 0 ...