Questions tagged [diskpart]

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

Filter by
Sorted by
Tagged with
58 votes
10 answers
289k views

Unable to format disk: 'The system cannot find the file specified'

I have a USB flash drive, which I may have mucked up, so I used DISKPART's CLEAN to clean it up. I created a simple volume, and tried to format it. (This is all using Windows' disk management.) I was ...
ACarter's user avatar
  • 1,404
19 votes
8 answers
142k views

Recovering a Partially Formatted USB Thumb Drive

I have a USB Thumb Drive that I was going to use to install Windows 7 with. While formatting the drive with the Windows 7 USB/DVD download tool it failed leaving my USB drive in an unusable state. I ...
Mark Tomlin's user avatar
  • 1,299
116 votes
5 answers
176k views

How to move the recovery partition on Windows 10?

I upgraded to Windows 10 and a 450Mb Recovery partition was created on my disk. I would like to extend the system partition but the Recovery partition is in the way. How can I move the Recovery ...
pharsfalvi's user avatar
  • 1,261
62 votes
1 answer
64k views

How to mount an NTFS partition read-only in Windows?

I feel like this is a really simple and fundamental function that Windows should have, but so far Google has been telling me it isn't possible. How can I mount an NTFS partition read-only in Windows?
netvope's user avatar
  • 5,325
14 votes
7 answers
257k 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 ...
Sega dude's user avatar
  • 258
1 vote
4 answers
2k views

Not able to partition C:\ Drive as per needs in Windows 7

I am trying to partition my c drive into 2 drives. My c drive has 412 GB free of 450 GB. I wish to participate as 30 GB: 382 GB. But when i try to shrink volume (by going through My Computer --> ...
xorpower's user avatar
  • 1,719
0 votes
1 answer
1k 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 http://...
NonTechSavvy's user avatar
24 votes
7 answers
123k views

List every \Device\Harddiskvolume.?

I've tried Diskpart commands like "list" "volume" (no it's not that at all), "disk" and "partition"; but it still don't work. \Device\Harddiskvolume0 seems to not be used, since \Device\...
X.LINK's user avatar
  • 2,370
4 votes
6 answers
2k views

Are there any Windows programs to resize partitions?

Are there some applications that are embedded in Windows (such as diskpart) to resize partitions?
Diogo's user avatar
  • 30.5k
3 votes
2 answers
27k views

How to recover data and partition after diskpart clean

While installing Windows 10 from the Repair Tools command prompt, I ran clean command by mistake on the whole disk, so it becomes a single 465GB partition. Previously, it contained four partitions. ...
KSK's user avatar
  • 33
3 votes
1 answer
1k views

Extend volume where unallocated space lies ahead of it

I want to extend my volume. However the unallocated space lies ahead of the volume. Is it possible to extend this volume without converting it to a dynamic volume? Large Image I tried to use ...
T3rm1's user avatar
  • 133
0 votes
1 answer
133 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 ### ...
fishmong3r's user avatar
0 votes
1 answer
2k 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 ...
Mycroft Holmes's user avatar
15 votes
3 answers
225k 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 ...
Hadi's user avatar
  • 175
8 votes
1 answer
57k views

Can't format USB disk because volume is offline

I have a USB disk that has gotten bollixed up and for the life of me, I can not reformat it and get back to square one. I attempted to create an Acronis Survival Kit using a WD Elements 2TB USB disk....
Darryl's user avatar
  • 245
5 votes
4 answers
52k views

Format USB Disk Using DiskPart Yields "No volume selected" Error

I use the following diskpart.exe sequence. I want to specify the disk number and then format the disk. C:\>diskpart Microsoft DiskPart version 10.0.18362.1 Copyright (C) Microsoft Corporation. ...
Sarah Weinberger's user avatar
4 votes
2 answers
11k views

Get ID of partition in Diskpart

In diskpart, the setid command can "change the partition type". How can I check what ID was set with setid? There is no command called getid.
root's user avatar
  • 1,366
3 votes
3 answers
8k views

How to undo "remove all dismount" in Diskpart?

I made a boo boo! I executed the following commands in cmd: diskpart list volume select volume 13 remove all dismount exit I have one of those dual-slot card readers with one slot for SD and one ...
Samir's user avatar
  • 20.8k
2 votes
1 answer
3k 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. ...
Vaccano's user avatar
  • 6,696
2 votes
1 answer
3k views

Resizing Windows 7 bootcamp partition

I've installed Windows 7 on my Mac using bootcamp but stupidly only allocated it 25gb which isn't enough once I've installed Visual Studio and other stuff. I was able to shrink the Mac partition ...
Charlie's user avatar
  • 535
2 votes
1 answer
6k 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 ...
minusatwelfth's user avatar
1 vote
1 answer
2k views

Windows 7 migration led to crashdump and hibernate problems

Note: I'm using a Samsung 830 SSD (migrated OS from defunct PC) and other than these two (interrelated?) problems it's working fine. Surprisingly well actually. Motherboard is a ASUS P8Z77-V Deluxe. ...
MartyMacGyver's user avatar
1 vote
3 answers
2k views

Where disk read-only attribute is stored on Windows?

When you set read only attribute on disk or partition with diskpart, is it stored on the disk itself? Some answers here say yes but in my experience it is not saved on the disk. I marked removable USB ...
ddbug's user avatar
  • 231
1 vote
1 answer
35k 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 ...
VGP's user avatar
  • 13
1 vote
3 answers
3k views

W7x86 USB Reinstall; "Setup was unable to create a new system partition" issue

I am running an Acer AspireOne AOD250. Doing a clean reinstall of W7x64 Ultimate. My problem is very similar to this one, except that I am installing from a USB as the Acer AspireOne does not have a ...
M98Ranger's user avatar
1 vote
1 answer
6k views

windows no EFI partition

I installed windows 10 using USB in UEFI mode USB (MBR) installation target (GPT) the USB installation media (created on Ubuntu) dual boots Ubuntu and Windows 10 using grub. menuentry "Windows 10&...
Mr. Doge's user avatar
  • 221
0 votes
1 answer
3k views

Remove EFI System Partition & Wipe Drive 0?

Some time ago, installed a bigger SSD (1 TB M.2) to act as my OS boot disk, cloning the original OS-sporting HD (256 GB) onto it and it works fine. Recently, I wanted to try out Linux and installed ...
Fedor Alexander Steeman's user avatar
0 votes
2 answers
890 views

Can't boot in Windows 10 2004: black screen after dell logo

Yesterday everything was fine and I haven't change anything in the mean time, but this morning, my computer can't boot anymore. When booting, the dell logo is displayed and the dell line is loading, ...
JinSnow's user avatar
  • 824
0 votes
1 answer
1k views

Can a disk with bad sectors be trusted after the bad sectors are fixed?

I had a Seagate Expansion 2TB(1,862.64514923095703125GiB) external HDD, about a week and half ago my computer freezes at random intervals, it becomes completely irresponsive to keyboard and mouse ...
Ξένη Γήινος's user avatar
0 votes
1 answer
167 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 ...
MorsKxx's user avatar
  • 11
0 votes
1 answer
5k 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 ...
user avatar
0 votes
3 answers
364 views

USB flash drive not recognisable and causing strange behaviour

I have a USB flash drive (16GB Kingston DataTraveller 100 G3) that stopped working a few months ago. As far as I can remember, all I did was pull it out of the USB port without "safely removing" it. ...
Hashim Aziz's user avatar
  • 12.7k
-2 votes
1 answer
120 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 ### ...
fishmong3r's user avatar