Questions tagged [diskpart]
Diskpart is a scriptable Windows command-line tool which allows management of disk volumes including partitions and virtual disk (VHD/VHDX) files.
52 questions
0
votes
0
answers
431
views
Running diskpart from system in windows sever 2022 - shows no disks
I've inherited a system of VMs (AWS ec2) running on an older version of windows server. Due to software upgrades we need to also upgrade to windows server 2022.
One hang up I have is that the existing ...
0
votes
1
answer
517
views
Can Windows Server 2022 read passed through SAS drives in a JBOD configuration?
I recently bought a simple RAID controller card (LSI-9210-8i), and flashed it to IT mode. I also bought a single SAS drive of 3TB. I formatted the drive in the LSI Card's BIOS, and have checked the ...
0
votes
1
answer
2k
views
Windows 10 safely delete recovery partition
One of our processing PCs uses Windows 10 Pro, and I am the one in the unfortunate position of trying to upgrade the capacity of its C:\ drive (SSD) from 1TB to 2TB.
I created an image backup using ...
1
vote
1
answer
825
views
Mirrored volume in Windows performance - Storage Spaces vs diskpart performance
I'm currently exploring using Storage Spaces to create a mirrored volume. In benchmarking it against a mirrored volume created with diskpart, I notice that I'm getting twice the throughput on reads. I'...
0
votes
0
answers
177
views
Robocopy of folder redirection folders caused the volume to fill from ~1.5TB to the full 14T, as a result I cannot access the volume anymore
I'd appreciate some help resolving this issue. I was using robocopy to copy the contents from one iSCSI volume to another - moving folder redirection contents from the old to the new location. There ...
0
votes
0
answers
1k
views
Cannot mount Win10 virtual disk (VHD) with no volumes - DISKPART fail
I'm attempting to mount a Windows Image Backup .vhdx file and give it a drive letter so that I can retrieve a file or two out of the backup. It has worked fine in the past, but now I cannot make it ...
0
votes
2
answers
527
views
Windows Server 2019 - Disk size not maching the diskpart info
we'd like to get your opinion on this weird issue:
Environment
Windows Server 2019 VM running on top of an ESXi 7.1 Cluster
The storage subsystem is a compellent iSCSI array. The other windows VM are ...
0
votes
1
answer
3k
views
How to convert my hard disk PartitionStyle from GPT back to RAW in Windows 10
For testing purposes, I need my hard drive on Windows 10 machine to be in a RAW partition style format.
It is currently in the GPT partition style.
The hard drive is a secondary hard drive and does ...
0
votes
1
answer
2k
views
Completely remove virtual disks with diskpart (list volume still shows them)
I'm creating a lot of differencing disks for my project and deleting them after some time.
I use "detach vdisk" command, they disappear from disk management but they are not completely ...
2
votes
2
answers
2k
views
Does `diskpart clean` send a TRIM command?
If I have a full SSD and clean it with diskpart clean, will the SSD controller receive a TRIM command (assuming I'm running in AHCI mode)? This would be crucial for performance or even healthiness of ...
2
votes
2
answers
4k
views
How to create a EFI partition using PowerShell?
I would like to automate a script that creates an EFI partition.
Currently, one step is manual and requires to start DISKPART and execute these commands:
create partition efi size=100
format fs=...
2
votes
0
answers
161
views
Cannot recover from Windows Server Backup after expanded volume
I am running a Windows Server 2012 r2 instance on Hyper-v, I set up Windows Server Backup to run every night to incrementally back up a large folder. The folder sits on the same Virtual Hard Disc as ...
1
vote
1
answer
2k
views
0xC03A001B error while trying to compact VHD
What can be the reason of such error? I tried to compact both via DISKPART and Optimize-Vhd commandlet.
Via DISKPART I get following error:
DISKPART> compact vdisk
DiskPart has encountered an ...
0
votes
1
answer
1k
views
Disk volume not extending
C: volume on a virtual disk within a Server 2008 R2 virtual machine won't extend correctly.
Under Disk Management, Disk 0 is showing 119.9 GB NTFS for the C: volume, however C: under Windows Explorer ...
0
votes
2
answers
3k
views
getting variables for partition size from diskpart in batch file
Im trying to execute part of a batch file only if a specific partition is at least a certain size. I found an example of diskpart being used in a batch file here: https://stackoverflow.com/questions/...
2
votes
2
answers
5k
views
Copy EFI partition and BCD store to a second drive
I'm attempting to set up dynamic boot partition mirroring on GUID partition table (GPT) disks as part of making a bootable mirror of a Windows system drive.
I am following Microsoft's KB951985 but I ...
0
votes
1
answer
1k
views
iSCSI Volume shown as two partitions on disk manager and need to merge/extend
I've just created a LUN and Target on my NAS, the from windows server, used iSCSI initiator to mount it.
Disk appears in disk manager Disabled.
Using diskpart i remove readonly attrib and created ...
0
votes
0
answers
28
views
Windows 2008 Unable to expend the disk to single drive
I'm try to expend two disk D and E but every time I do it convert the disk into spinner array disk.
How do I allocated the unallocated space?
Why do I have two partition with same size on Disk 1 and ...
1
vote
0
answers
517
views
issue in increasing disk size in ubuntu guest vmware
Have followed link
I was trying to increase the size of my disk allocated to ubuntu guest in vmware below are the things i have already done
Increased max setting in vmware settings - Done
...
0
votes
0
answers
75
views
Proper Partition Alignment
I'm trying to follow the advice from this TechNet article about partition alignment. Our San is an EMC, the disks are in a 4 disk raid 10. This services an I/O intensive application, 60:40 write:read.
...
3
votes
0
answers
9k
views
Windows Diskpart: How to select disk based on LUN ID
I have multiple LUNs attached to my Windows 2008 server from a SAN storage controller. Each LUN has a unique ID. However, it has no correlation to the disk number in the Windows. For example in the ...
0
votes
1
answer
790
views
3TB RAID1 not detected in Hyper-V Core 2012
I'm creating a small server, but I have issues with one RAID config (RAID1-HOST-DATA).
As you can see in the image below, everything seems fine. My four physical disk are detected, and two RAID1 are ...
3
votes
2
answers
4k
views
Format disk with diskpart if not formatted
I'm trying to write a script to create and format a partition in Windows Server 2008R2.
Now, when disk 1 is selected, I need to format it, only if it is not formatted already. This is what I have ...
7
votes
2
answers
9k
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 - ...
1
vote
0
answers
820
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.
...
2
votes
1
answer
12k
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, ...
19
votes
2
answers
7k
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 set up ...
2
votes
3
answers
10k
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 ...
0
votes
2
answers
22k
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 ...
4
votes
1
answer
1k
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 ...
8
votes
2
answers
2k
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 ...
1
vote
0
answers
151
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
1
answer
2k
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
1
answer
4k
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
3
answers
5k
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:
http://...
5
votes
4
answers
12k
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
1
answer
2k
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
1
answer
2k
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
2
answers
3k
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
2
answers
8k
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 ...
0
votes
1
answer
322
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
1
answer
2k
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 ...
1
vote
1
answer
2k
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 ...
4
votes
4
answers
32k
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
2
answers
4k
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 ...
1
vote
1
answer
8k
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 ...
2
votes
3
answers
6k
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. ...
1
vote
4
answers
14k
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
1
answer
3k
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 ...
0
votes
6
answers
5k
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 ...