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

0
votes
2answers
2k views

Windows 2008 R2: can't extend C drive, mystery partitions

I have a Windows 2008 R2 server running under VMware ESX 4.0.0. I have reallocated disk space to it in order to extend the C drive, but Disk Management has "Extend Volume" greyed out. DISKPART shows ...
3
votes
1answer
109 views

setting the 'hidden' attribute on a partion from Linux (parted) isnt respected by Windows?

when I set the 'hidden' flag on a GPT partition it's not respected by Windows 8.1 (Windows attempts to mound, throws UI, etc). However if I set the 'hidden' flag from diskpart.exe it is respected - ...
4
votes
1answer
486 views

Diskpart breaking drive letters after powershell script is run

I built a script that mounts (attach) a VHD using Diskpart, cleans out some system files and then unmounts (detach) it. It uses a foreach loop and is suppose to clean multiple VHD using the same drive ...
1
vote
3answers
553 views

what's the difference between a Volume and a Partition in Windows 7 diskpart [closed]

I was trying to follow the Intel guide for setting up iRST (Intel Rapid Start Technology) on my new laptop. The Intel manual says you need to create a *Volume that is as big or bigger than your ...
1
vote
1answer
491 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
99 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. ...
9
votes
1answer
636 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 ...
8
votes
2answers
522 views

Using Diskpart in a PowerShell script won't allow script to reuse drive letter

I built a script that mounts (attach) a VHD using Diskpart, cleans out some system files and then unmounts (detach) it. It uses a foreach loop and is suppose to clean multiple VHD using the same ...
0
votes
1answer
1k views

Is it possible to convert a basic disk to dynamic disk without losing data in Server 2008?

I am not able to extend partition in windows server 2008. We have two different partitions which we want to join and make one partition. I came to know that basic disks have limitation of 2 TB each ...
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 ...
2
votes
1answer
615 views

Server 2008 R2 - Boot disk RAID 1 - migrate to larger disk

My group inherited several 2008 R2 servers with single 70GB RAID 1 boot/system disks. No other disks in the servers. We need larger boot / system disk. Plan is : to replace one disk with new 500 ...
1
vote
1answer
1k views

Cannot reactivate RAID-5 volume: The size of the plex member is invalid

We had a 3-drive Windows Server 2008 R2 RAID-5 fail (operating in redundancy mode): WDC 1 TB WDC 1 TB WDC 1 TB We removed the failed hard drive, and put a WDC 1 TB drive (that we had standing by) ...
1
vote
3answers
1k views

Resizing a System Partition Windows Server 2003 VM (Getting GParted Error)

I am getting an error while trying to resize System Partition for Windows 2003 Server (this is a VM on a Hyper-v Windows Server 2008) using GParted Live CD ISO. Followed this tutorial: ...
4
votes
3answers
1k views

command line for getting information about status of disk?

Here is the scenario, I have Windows Server 2003 and 2008 which is connected LUNs. I wanted to get status of the disk if disks are online or offline using command line. I'm trying to execute ...
1
vote
1answer
3k views

disk management/diskpart on windows server 2008 hangs

I am having an issue on my Windows Server 2008 "Sql Server". When I access Disk Management, the UI hangs on "Loading disk configuration information" When I run diskpart it does nothing after showing ...
1
vote
1answer
671 views

How to increase partition size for FAT32 volume on VHD?

I have VHD file attached as a disk (Disk 2 on screenshot below). It has only 1 partition formatted in FAT32 (so Linux clients can write something there). It got full, so I want to extend it. I used ...
0
votes
1answer
351 views

What's difference between online/offline mounting/unmounting a disk?

Can someone explain the difference between: online and mount offline and unmount I know mount and unmount are not windows commands btw, I just wanna know the difference. Is mounting/dismounting a ...
1
vote
1answer
1k views

Dell MD3000 - Resizing a virtual disk

I've replaced some drives to our MD3000 with bigger ones. These currently store database files used in a SQL Server 2005 cluster running on Windows Server 2003. Now, we replaced the smaller hard ...
1
vote
3answers
183 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 ...
1
vote
1answer
818 views

WinPE diskpart can't attach vdisk

I created WinPE 3.0 and didn't modify it in any way. I want to attach a vdisk (.vhd file) while running WinPE but I can't attach it, no error is shown, no indication that diskpart didn't attach it, it ...
0
votes
1answer
248 views

FreeBSD disk parts with no mounting. How does this work?

I'm using a VPS service. I installed FreeBSD 8.1, and now configuring. And today, I found really wired thing. This is my disklabel editor screen from sysinstall. FreeBSD ...
0
votes
1answer
1k views

Recover NTFS filesystem after DISKPART CLEAN

I managed to run the CLEAN command in DISKPART on the wrong disk (disk 1 instead of disk 3 in LIST DISK). Now it shows up as a "Healthy (Primary Partition)". If I assign a drive letter to the ...
2
votes
2answers
3k views

How to create dynamic volume in stripe configuration, aligned to 1024?

I am trying to create a software stripe setup with two physical disks (underneath they are 128K stripe, RAID5 for each). I've read that one can use diskpart, but I am unable to come up with a command ...
2
votes
2answers
1k views

How long should diskpart take?

I am using diskpart to extend a drive that is actually a VHD. I've already extended the VHD. It's on Windows 2003 and the C drive doesn't contain the swap file and the available space is contiguous. ...
2
votes
1answer
3k views

Resizing volume with DiskPart unsuccessful, while there's enough free space

I have a physical disk with two partitions, an old OS partition (with MBR) of 296GB and a RECOVERY partition of 2048MB (a default DELL recovery partition), both are not in use. I have successfully ...
0
votes
2answers
1k views

Merge differencing and parent vhd into new vhd

Using DISKPART and the "VDISK MERGE" option, is it possible to specify that you want to keep the existing child/parent disks and do a merge into a new vhd file? That is; I still want to keep my ...
0
votes
6answers
2k views

Resizing Partitions/Volumes on Dynamic Disks (Windows Server 2003)

What is the best way to resize partitions on a server with a Dynamic Disk? I have 4 volumes in what appears to be 2 partitions. I have ghosted each of these volumes to separate image files. I will ...
1
vote
3answers
6k views

GUI version of diskpart.exe or equivalent on Windows 2003 Server

I have a 95% OS X server shop..and just a handful of Windows servers I occasionally have to mess with... I need to resize some disks on a Windows 2003 box, and am looking for the equivalent of OS X's ...
1
vote
4answers
2k views

Extend disk with diskpart or Disk Management

I have a Win 2008 Server that won't let me extend a disk. I have used both the computer management and the diskpart tool and both tell me that I have less than 1MB free and can't extend. I show that ...
1
vote
1answer
1k views

remove volume on missing dynamic disk

I had 2 drives in my Server 2003 PDC 1 of the drives went bad and was replaced. Now i show the working drive, the new drive and a missing disk. I am trying to delete the missing disk but am not able ...