Diskpart is a command-line hard disk partitioning utility included in versions of Windows from Windows 2000 onwards

learn more… | top users | synonyms

0
votes
2answers
36 views

Remove all volumes from all connected disks - Diskpart

How can I remove all volumes from the hard drives in a WinPE environment using Diskpart through Powershell or WMIC calls? The WinPE image will be injected with the required packages using DISM ...
2
votes
0answers
13 views

DiskPart status list

I'm writing a simple script that checks the output from diskpart for certain keywords. I am running echo list volume|diskpart and then checking the output for failed or whatever bad status is listed. ...
1
vote
1answer
50 views

Can't access HDD due to partitioning problems

So I have a HDD full of my media, photos music etc. It was working fine in windows 10, but since reverting back to windows 8 (os is on an SSD) I can no longer find the drive in my computer. I've ...
1
vote
0answers
43 views

Windows 7 installation - setup was unable to create a system partition or locate an existing partition

I am trying to install Windows 7 from a bootable USB drive. I encountered the following error after selecting the partition to install Windows on: Setup was unable to create a system partition or ...
0
votes
1answer
29 views

What is the quickest way to Recover an NTFS partition?

I've ran the following on the wrong drive in the diskpart command in windows: select disk 1 clean create part pri What is the quickest way I can recover the old partition in the drive? It was an ...
0
votes
1answer
137 views

Unable to format 64gb RAW SD card Cyclic Redundancy Check error [duplicate]

I recently purchased a new, Silicon Power high-quality micro-SD card. I used it multiple times as a boot disk for my Raspberry Pi, each time I burned a 4gb disk image and installed the OS, then ...
0
votes
1answer
58 views

Batch to reassign drive letter based on volume name

I have a "WINPE" volume and I am trying to get a batch script that will assign it drive letter "Z:" Someone gave me the script below but it does not work for /f %%D in ('wmic volume get ...
2
votes
0answers
701 views

Manually install Windows 10 on a USB drive (Windows to go) [closed]

I am trying to create a USB stick with Windows 10 WTG (Windows to go) on it. I would like to use it to repair PC's and do services by booting on the WTG or other ISO's on it (using the tool EasyBCD). ...
0
votes
1answer
33 views

cannot partition the unallocated space, keep getting error

I'm trying to allocate this unallocated space and this is the error I get ... I cant delete or do anything .. this a 160 gb hard drive of mine which I'm not able to use .. can't install windows into ...
1
vote
1answer
39 views

Script for finding out disk number

I have an external hard disk with two partitions. The first one is an UDF partition and the second partition is a Veracrypt partition. Now I want to use a batch script to load the Veracrypt partition ...
0
votes
1answer
205 views

Undo Diskpart clean

This is a life-destroying moment for me. I have a 2TB External Hard drive, with 2 partitions. The first one is UDF and second one is a Veracrypt-encrypted partition. The drive was GUID -based, and the ...
1
vote
1answer
144 views

Unable to format,'The system cannot find the file specified'

I've just bought a USB drive however i had some problems with it as soon as i started using it. At fisrt all of a sudden Windows would just lose the "communication" with it, stopping any task it was ...
0
votes
1answer
251 views

Unable to remove write protection from my SD card in windows 7

My SD card is showing: The disk is write protected So I open Diskpart through the command line in Windows 7 and follow these steps: To check my disk name I type: list disk Now I select ...
0
votes
1answer
333 views

How to do a Diskpart Clean on OS X

Is there a way to perform the equivalent of (Windows') diskpart clean via MacOS X? I have to completely bomb some drives so that they can be formatted correctly in a buffalo Linkstation that I have. ...
0
votes
2answers
51 views

usb dropped from 16gb to 8gb, diskpart seems not to work

I have an 16gb usb that "dropped" to 8gb. I have tried to use diskpart but that didn't fix the problem. One reason may be that I haven't used diskpart before so I have just read a little about it ...
0
votes
0answers
24 views

Disk Cloning and Drive Partition Tags

I have cloned my single HDD to a new, larger disk but am having trouble matching the drive status tags. The C: partition on the current drive is marked with the following tags: Boot, Page File, Crash ...
2
votes
1answer
164 views

Free space vanishes after creating primary partition in DISKPART

I’m trying to partition a RAID disk with DISKPART. The format is MBR. The capacity in RAID is 6.7 TB when I’m starting out. The symptom I’m seeing is that after I create my relatively small primary ...
0
votes
1answer
889 views

installing 32-bit windows: diskpart convert mbr error

I have an efi-based 64 bit system with win 8 pre-installed. I want to downgrade to 32-bit win 7 and so I booted up a bootable win 7 usb and opened command-prompt with shift+f10. I used convert mbr ...
0
votes
2answers
369 views

batch file to remove and reassign drive letters

I have what I believe to be a unique issue. I don't do a lot of work with batch files, but I think that would be my best option. Here is the situation. I have special software that looks for a ...
2
votes
2answers
483 views

Unable to delete a large extended partition

I am trying to delete the extended partition 0 because it occupies a lot of space in my disk. I deleted all swap partition and tired again to delete it but it always shows the same error message: ...
1
vote
1answer
3k views

select partition 1 gives “No partition selected”

I'm trying to fix a USB flash drive to format to the full capacity. When I use diskpart I cannot delete the primary partition. DISKPART> list disk Disk ### Status Size Free Dyn ...
1
vote
2answers
746 views

Laptop won't boot to either the CD/DVD or to a USB Flash Drive

Update: Apparently Diskpart should display unused usb ports as well as the DVD/CD player. Mine doesn't. All I can see here is the laptop hard drive. I'm suspecting this is a more serious issue ...
-2
votes
1answer
69 views

Recover my SD Card [duplicate]

In windows disk mgr I can see this. I have no option to shrink/expand any of the partitions. Tried to delelete everything by DISKPART, but that's also not working: DISKPART> list disk Disk ...
0
votes
1answer
76 views

Recover my SD Card

In windows disk mgr I can see this. I have no option to shrink/expand any of the partitions. Tried to delelete everything by DISKPART, but that's also not working: DISKPART> list disk Disk ...
0
votes
1answer
24 views

Delete a Dynamic Partition

I want to delete my dynamic partition to install windows 7. I have 5 dynamic partitions currently on my hard disk. I don't want a single chunk of HD to be created. I just want one of the dynamic ...
1
vote
3answers
15k views

How create new partition on an unallocated space using diskpart?

I want to install windows 7 on an unallocated space made by shrinking an extended partition. the problem is that windows setup can't create new partition on unallocated space. how I can create a ...
0
votes
1answer
4k views

Not able to format HDD while installing windows

I am asking this new question after trying to recover my crashed windows data please refer below question/link How to recover data from crashed Windows laptop? -------------My query regarding HDD ...
1
vote
2answers
2k views

Diskpart will NOT open through cmd

I open up my cmd and type 'diskpart' It prompts me with the UAC box, I click yes. Everything is going good up until this point. After I click 'Yes' diskpart opens up in a separate window (At school ...
0
votes
5answers
33k views

Cannot format USB flash drive, everything claims it's write protected

I have a 4GB HP USB flash drive that I had written a Chromium OS image to with Win32DiskImager. Now I am trying to reformat it but I can't. Everything tells me the disk is write protected. Being a USB ...
0
votes
1answer
803 views

External storage doesn't show up in pc or disk manager

When I plug in my external HDD the LED on the disk lights up but i can't see it in my PC/DISKPART/DISK MANAGEMENT. I tried all the ports on my computer but it doesn't show up.Help please. HDD:- ...
0
votes
3answers
83 views

Where is the MMC CARD that I see in the my computer

There is no MMC CARD connected to my computer, But when I open MyComputer I see a MMC-Card drive there that has 487 MB of 487 MB free space! Disk Management output : And Diskpart output : ...
0
votes
1answer
2k views

If Diskpart says that a disk has no volumes, is the disk empty of data?

So I have a 64 GB SanDisk USB drive whose contents are a complete mystery. When I try to insert it into my computer (Windows 8), it does not appear in My Computer. Diskpart tells me that there are no ...
0
votes
1answer
2k views

No security tab on an external hard drive I need permission to

I have a hard drive, and it has always worked easily for me before on my windows 7 computer. I tried plugging it in to said computer and it would be visible in D&P (Devices and Printers), but not ...
0
votes
0answers
129 views

How can I make my pendrive a Removable Disc again

I created a partition primary in my pendrive to boot and install Windows 8, but now I want to undo this process... when I open My Computer, my pendrive is a Fixed Disc, not a Removable ...
4
votes
0answers
85 views

Shared NTFS logical partition unaccesible from Windows 8.1

I asked this question a while ago but it got lost, so I deleted the previous one and created this new one with updates from the comments. I just installed Windows 8.1 in a partition of my Lenovo ...
0
votes
0answers
2k views

Windows Server 2003 - DISKPART: The volume you have selected may not be extended

I'm trying to resize a disk on a Windows 2003 server. Via Disk Management I can see one drive (C) and 73.01GB of Unallocated space. This instance is running on Hyper-V. In DISKPART I selected the ...
0
votes
1answer
818 views

Can't create primary partition on windows7 using diskpart

Can't create primary partition on windows7 using diskpart. I'm trying to install ubuntu along with windows 7. When I try to create a new primary partition using diskpart it shows me error as: ...
0
votes
1answer
232 views

Windows 7 SSD hidden after Diskpart clean

I've just used the diskpart in CMD to clean my new SSD, but after this it suddenly disappeared. I can still see it in diskpart, but I cannot see it as a drive under Windoes 7 "computer" in the start ...
0
votes
1answer
3k views

Windows 8.1 - Won't boot (0xc000000f), bcdedit fails

I’m pretty much stuck at this point. So, backstory: Windows was installed on one of the SSDs currently in my tower. I bought a new SSD to install Windows (8.1 64 bit) on. Windows installation went ...
0
votes
1answer
546 views

Cannot delete free partition

I had an Ubuntu install, but it's taking up too much space and I'm getting a laptop on which I will install ubuntu, so I decided to remove the Ubuntu partition. I went into diskmgmt.msc and freed the ...
0
votes
1answer
290 views

How To Properly Get The Drive Letter of a Mounted VHD in batch script

How To Properly Get The Drive Letter of a Mounted VHD in script. Is it possible? list volume select volume <volume_number_of_attached_VHD> assign letter=v exit in this part of script it's ...
0
votes
1answer
779 views

Diskpart Clean, thus unable to boot

I booted my Dell Inspiron 1525 on a Vista Recovery DVD (not installation disk), ran the Command Prompt, and did like following: diskpart list disk select disk 0 (which was the only hard drive I ...
0
votes
1answer
309 views

Is my SONY USB flash drive dead? [duplicate]

I have a following problem: when I plug-in my USB flash drive, it isn't shown in Windows Explorer or recognized by system at all. In device properties, it is shown as: USB MEMORY BAR ...
1
vote
0answers
2k views

Pen drive has a write-protected issue

My pen drive has become write0protected. Even when I am trying to format it is giving write-protected problem. I tried many solutions I found on the internet, but all failed. Here are my pen drive ...
0
votes
2answers
448 views

Cannot see external hard drive on my computer, although it is shown in Disk Management

I cannot see external hard drive on my computer, although it is shown in Disk Management. I read in other forums that I need to assign a drive letter, however when I right-click to assign all other ...
0
votes
1answer
85 views

Partition does not have a volume

When I run DiskPart, I have a Disk 0 and a Disk 1. On Disk 0 there are 3 partitions. Partition 3 has a size of 238 GB. When I run List Volume there is not a matching volume with a size of 238 GB. ...
2
votes
2answers
243 views

diskpart multiple primary partition keys

I am trying to set up partitions on my USB drive, 1x as a boot partition, 1x as operating system data, 1x as shared with windows files. I am trying to assign the shared with windows partiton a drive ...
0
votes
1answer
261 views

Read Only/Write Protected USB pen drive is not write protected on other PCs

I want to make one of my USB drive write protected. I can make it write protected on my desktop(windows 8.1 pc) by using the command prompt "diskpart" method. Now the usb is write protected on my ...
0
votes
2answers
521 views

SSD vs HDD boot

I have a friend that has an Acer Aspire S3 laptop. After sending it for repair, the laptop came with the system (Windows 8) installed on SSD 18gb. The problem with such a small SSD is that it renders ...
0
votes
1answer
31 views

Should I delete data before deleting its partition and extending over?

I have multiple computers with the main drive split into C and D partition. D just has random data, C has the OS. I plan on copying over data from D to C then deleting D and extending C over it. Can I ...