C drive deleted thru Diskpart Clean

manrexmer

Reputable
Feb 19, 2014
13
1
4,510
I without knowledge clean the c drive using Diskpart. Now i want to create c drive again can anyone help please as it is urgent
 

jr9

Estimable
The diskpart clean command is the same as erase. You should never use disk management management cmd commands unless you know how to use them. They are very dangerous if used wrong. You can't easily undo this and I hope you have a backup. If you can still boot into Windows I would use Disk Management to create a new partition and format it for use. If you can't get into Windows anymore you are looking at booting from a Windows install disk to create a new partition/format it and reinstalling your OS.

If you don't have a backup and the data was important I would recommend stop using the device and try 3rd party data recovery software or seek data recovery services.
 

manrexmer

Reputable
Feb 19, 2014
13
1
4,510


 

manrexmer

Reputable
Feb 19, 2014
13
1
4,510
Thank you for solution. But data is not at all important and i deleted using "clean all" in Diskpart, i don't need data recovery or windows recovery. Now i Have boot usb drive to install OS in the C drive but it shows only X drive and shows "disk 0" & it has no partition. My question is how to create C drive partition from here onwards.
 

USAFRet

Titan
Moderator


The drive letter C will be created as you install the OS on Disk 0.
 

manrexmer

Reputable
Feb 19, 2014
13
1
4,510


 

jr9

Estimable


I would just delete all partitions on the drive with the partition manager that is part of the Windows installer program if there are any. Create a new partition, format it, and then install Windows onto the partition. The Windows installer will take care of everything else that diskpart does including making sure the disk boots properly. Windows installer will also label the new drive C automatically.
 

manrexmer

Reputable
Feb 19, 2014
13
1
4,510
I Know that solution but this is tablet PC installation is different. it is showing as below when i try to install OS:
disk 0 is now selected disk
Diskpart is succeeded in cleaning the disk

Virtual disk Service error: the object is not found

the system cannot find the drive specifiec
Error: 3
The system cannot find the path specified
 

jr9

Estimable
Never heard of it. Well if it has standard USB ports then the standard Windows installation using a USB drive should work. It's still a PC just smaller with less stuff. I've never used diskpart to prep a disk for Windows installation because it's unnecessary as the Windows installer gives you this tool. The MBR on the drive sounds like a complete mess and you really should consider starting over with new partitions.

If you can get into the Windows installer then you can reinstall your OS and fix the screwed up partitions. If you cant boot to USB then you are basically screwed if you made a mistake with diskpart and can't even boot safe mode or anything external to fix the problem.

If you find a diskpart or cmd command that enables you to boot again please post it.
 

manrexmer

Reputable
Feb 19, 2014
13
1
4,510
yes the datamini is local model but they use in office. but it is standard , has USB, boots from USB but since harddisk space shows half(before diskpart clean all it was 14GB after it is 7GB) i could not able to create partition using diskpart or install OS using OS usb boot drive. I just want to create whole disk as on drive pleas help
 

manrexmer

Reputable
Feb 19, 2014
13
1
4,510
yes the datamini is local model but they use in office. but it is standard , has USB, boots from USB but since harddisk space shows half(before diskpart clean all it was 14GB after it is 7GB) i could not able to create partition using diskpart or install OS using OS usb boot drive. I just want to create whole disk as on drive pleas help