Created
February 2, 2017 18:29
-
-
Save joeypiccola/02dd1daa1b528c209a71be6bb351ebad to your computer and use it in GitHub Desktop.
Use diskpart to online, initialize, and format disks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diskpart | |
select disk 1 | |
attributes disk clear readonly | |
online disk | |
select disk 1 | |
clean | |
convert gpt | |
create partition primary | |
format quick fs=ntfs label="data" unit=64k | |
assign letter=“E" |
ive been looking for this too long. thank you
Kudos, my Data disk has been giving me fits and I don't want to keep rebooting. Hopefully, this is the cleaning it needs.
Thank you. This helped me to refer when I was cloning a disk using Acronis and needed to initialize it in recovery first.
This helped me recover my disk - step 3 was the key
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks much; i am about to use this script right now...