Cannot initialize disk in PowerShell : Initialize-Disk throws “The disk has already been initialized”What brand(s) of hard disk has the lowest failure rates?How do I Setup (Initialize, Partition, and Format) a disk using Powershell?Has NETSH been replaced by PowerShell yet (Dec 2012)GPO: Run PowerShell logon script after explorer.exe has been loadedSCOM alert: The threshold for the Logical DiskAvg. Disk sec/Transfer performance counter has been exceededWindows 2012 R2 RDS - can't change Connection Broker DNS round robin name via PowershellHow do I troubleshoot “Failed to get staged packages for package” error when attempting to remove a provisioned app from an offline Windows 8.1 image?Azurerm powershell Cannot bind parameter and Cannot convert the valueDetermine if PowerShell script has been run from the desktop or command lineHow to download an archive and extract it without saving the archive to disk using Powershell?
How to deal with an excess of white-space in a CRM UI?
Harley Davidson clattering noise from engine, backfire and failure to start
Why would a home insurer offer a discount based on credit score?
What's the difference between DHCP and NAT? Are they mutually exclusive?
Can you open the door or die? v2
Why didn't all the iron and heavier elements find their way to the center of the accretion disc in the early solar system?
Why does there seem to be an extreme lack of public trashcans in Taiwan?
Dedicated bike GPS computer over smartphone
What publication claimed that Michael Jackson died in a nuclear holocaust?
Convert GE Load Center to main breaker
Is fission/fusion to iron the most efficient way to convert mass to energy?
Are skill challenges an official option or homebrewed?
What is the theme of analysis?
Which game is this?
Placement of positioning lights on A320 winglets
Am I being scammed by a sugar daddy?
Can an open source licence be revoked if it violates employer's IP?
Is plausible to have subspecies with & without separate sexes?
How can powerful telekinesis avoid violating Newton's 3rd Law?
Is it possible to have battery technology that can't be duplicated?
Undocumented incompatibility between changes and siunitx?
When editor does not respond to the request for withdrawal
The best in flight meal option for those suffering from reflux
How can religions without a hell discourage evil-doing?
Cannot initialize disk in PowerShell : Initialize-Disk throws “The disk has already been initialized”
What brand(s) of hard disk has the lowest failure rates?How do I Setup (Initialize, Partition, and Format) a disk using Powershell?Has NETSH been replaced by PowerShell yet (Dec 2012)GPO: Run PowerShell logon script after explorer.exe has been loadedSCOM alert: The threshold for the Logical DiskAvg. Disk sec/Transfer performance counter has been exceededWindows 2012 R2 RDS - can't change Connection Broker DNS round robin name via PowershellHow do I troubleshoot “Failed to get staged packages for package” error when attempting to remove a provisioned app from an offline Windows 8.1 image?Azurerm powershell Cannot bind parameter and Cannot convert the valueDetermine if PowerShell script has been run from the desktop or command lineHow to download an archive and extract it without saving the archive to disk using Powershell?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I'm trying to change the flash drive's partition style to GPT using PowerShell, but the cmdlet throws "The disk has already been initialized" (even though I've cleaned the drive):
PS C:WINDOWSsystem32> Clear-Disk 5 -RemoveData -RemoveOEM
PS C:WINDOWSsystem32> Get-Disk 5
Number Friendly Name OperationalStatus Total Size Partition Style
------ ------------- ----------------- ---------- ---------------
5 UFD 2.0 Silicon-Power16G USB Device Online 15.14 GB MBR
PS C:WINDOWSsystem32> Initialize-Disk 5 -PartitionStyle GPT
Initialize-Disk : The disk has already been initialized.
At line:1 char:1
+ Initialize-Disk 5 -PartitionStyle GPT
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Initialize-Disk], CimException
+ FullyQualifiedErrorId : StorageWMI 41001,Initialize-Disk
How can I de-initialize the disk so that I can re-initialize it?
P.S. -PartitionStyle MBR shows the same error.
powershell partition hard-drive usb-flash-drive
add a comment |
I'm trying to change the flash drive's partition style to GPT using PowerShell, but the cmdlet throws "The disk has already been initialized" (even though I've cleaned the drive):
PS C:WINDOWSsystem32> Clear-Disk 5 -RemoveData -RemoveOEM
PS C:WINDOWSsystem32> Get-Disk 5
Number Friendly Name OperationalStatus Total Size Partition Style
------ ------------- ----------------- ---------- ---------------
5 UFD 2.0 Silicon-Power16G USB Device Online 15.14 GB MBR
PS C:WINDOWSsystem32> Initialize-Disk 5 -PartitionStyle GPT
Initialize-Disk : The disk has already been initialized.
At line:1 char:1
+ Initialize-Disk 5 -PartitionStyle GPT
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Initialize-Disk], CimException
+ FullyQualifiedErrorId : StorageWMI 41001,Initialize-Disk
How can I de-initialize the disk so that I can re-initialize it?
P.S. -PartitionStyle MBR shows the same error.
powershell partition hard-drive usb-flash-drive
It looks like the Clear-Disk cmdlet is not working as it should or the drive is not properly clearing the data as the drive should revert back to a partition style of RAW after it is run. Do you have this issue with other storage as well?
– Persistent13
Feb 27 '17 at 22:45
I see this with two different models of USB drives as well. If I try the diskpart equivalent (select disk and then clean), the drive becomes MBR instead. Wondering if USB drives can't be raw...
– aggieNick02
Dec 14 '17 at 20:39
I was running into the same issue. I searched and found this Microsoft Doc that states, "You cannot use the GPT partition style on removable media."
– Paul Mayle
Dec 29 '18 at 17:31
add a comment |
I'm trying to change the flash drive's partition style to GPT using PowerShell, but the cmdlet throws "The disk has already been initialized" (even though I've cleaned the drive):
PS C:WINDOWSsystem32> Clear-Disk 5 -RemoveData -RemoveOEM
PS C:WINDOWSsystem32> Get-Disk 5
Number Friendly Name OperationalStatus Total Size Partition Style
------ ------------- ----------------- ---------- ---------------
5 UFD 2.0 Silicon-Power16G USB Device Online 15.14 GB MBR
PS C:WINDOWSsystem32> Initialize-Disk 5 -PartitionStyle GPT
Initialize-Disk : The disk has already been initialized.
At line:1 char:1
+ Initialize-Disk 5 -PartitionStyle GPT
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Initialize-Disk], CimException
+ FullyQualifiedErrorId : StorageWMI 41001,Initialize-Disk
How can I de-initialize the disk so that I can re-initialize it?
P.S. -PartitionStyle MBR shows the same error.
powershell partition hard-drive usb-flash-drive
I'm trying to change the flash drive's partition style to GPT using PowerShell, but the cmdlet throws "The disk has already been initialized" (even though I've cleaned the drive):
PS C:WINDOWSsystem32> Clear-Disk 5 -RemoveData -RemoveOEM
PS C:WINDOWSsystem32> Get-Disk 5
Number Friendly Name OperationalStatus Total Size Partition Style
------ ------------- ----------------- ---------- ---------------
5 UFD 2.0 Silicon-Power16G USB Device Online 15.14 GB MBR
PS C:WINDOWSsystem32> Initialize-Disk 5 -PartitionStyle GPT
Initialize-Disk : The disk has already been initialized.
At line:1 char:1
+ Initialize-Disk 5 -PartitionStyle GPT
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (StorageWMI:ROOT/Microsoft/Windows/Storage/MSFT_Disk) [Initialize-Disk], CimException
+ FullyQualifiedErrorId : StorageWMI 41001,Initialize-Disk
How can I de-initialize the disk so that I can re-initialize it?
P.S. -PartitionStyle MBR shows the same error.
powershell partition hard-drive usb-flash-drive
powershell partition hard-drive usb-flash-drive
asked Mar 30 '13 at 23:51
Ark-kunArk-kun
1165
1165
It looks like the Clear-Disk cmdlet is not working as it should or the drive is not properly clearing the data as the drive should revert back to a partition style of RAW after it is run. Do you have this issue with other storage as well?
– Persistent13
Feb 27 '17 at 22:45
I see this with two different models of USB drives as well. If I try the diskpart equivalent (select disk and then clean), the drive becomes MBR instead. Wondering if USB drives can't be raw...
– aggieNick02
Dec 14 '17 at 20:39
I was running into the same issue. I searched and found this Microsoft Doc that states, "You cannot use the GPT partition style on removable media."
– Paul Mayle
Dec 29 '18 at 17:31
add a comment |
It looks like the Clear-Disk cmdlet is not working as it should or the drive is not properly clearing the data as the drive should revert back to a partition style of RAW after it is run. Do you have this issue with other storage as well?
– Persistent13
Feb 27 '17 at 22:45
I see this with two different models of USB drives as well. If I try the diskpart equivalent (select disk and then clean), the drive becomes MBR instead. Wondering if USB drives can't be raw...
– aggieNick02
Dec 14 '17 at 20:39
I was running into the same issue. I searched and found this Microsoft Doc that states, "You cannot use the GPT partition style on removable media."
– Paul Mayle
Dec 29 '18 at 17:31
It looks like the Clear-Disk cmdlet is not working as it should or the drive is not properly clearing the data as the drive should revert back to a partition style of RAW after it is run. Do you have this issue with other storage as well?
– Persistent13
Feb 27 '17 at 22:45
It looks like the Clear-Disk cmdlet is not working as it should or the drive is not properly clearing the data as the drive should revert back to a partition style of RAW after it is run. Do you have this issue with other storage as well?
– Persistent13
Feb 27 '17 at 22:45
I see this with two different models of USB drives as well. If I try the diskpart equivalent (select disk and then clean), the drive becomes MBR instead. Wondering if USB drives can't be raw...
– aggieNick02
Dec 14 '17 at 20:39
I see this with two different models of USB drives as well. If I try the diskpart equivalent (select disk and then clean), the drive becomes MBR instead. Wondering if USB drives can't be raw...
– aggieNick02
Dec 14 '17 at 20:39
I was running into the same issue. I searched and found this Microsoft Doc that states, "You cannot use the GPT partition style on removable media."
– Paul Mayle
Dec 29 '18 at 17:31
I was running into the same issue. I searched and found this Microsoft Doc that states, "You cannot use the GPT partition style on removable media."
– Paul Mayle
Dec 29 '18 at 17:31
add a comment |
1 Answer
1
active
oldest
votes
When you want to start over, start with a RESET. Then you can initialize, format, and perform other operations. Remember to put the disk in maintenance mode if it is in a cluster.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f494848%2fcannot-initialize-disk-in-powershell-initialize-disk-throws-the-disk-has-alre%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
When you want to start over, start with a RESET. Then you can initialize, format, and perform other operations. Remember to put the disk in maintenance mode if it is in a cluster.
add a comment |
When you want to start over, start with a RESET. Then you can initialize, format, and perform other operations. Remember to put the disk in maintenance mode if it is in a cluster.
add a comment |
When you want to start over, start with a RESET. Then you can initialize, format, and perform other operations. Remember to put the disk in maintenance mode if it is in a cluster.
When you want to start over, start with a RESET. Then you can initialize, format, and perform other operations. Remember to put the disk in maintenance mode if it is in a cluster.
answered Oct 24 '18 at 7:16
Rix RyskampRix Ryskamp
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f494848%2fcannot-initialize-disk-in-powershell-initialize-disk-throws-the-disk-has-alre%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It looks like the Clear-Disk cmdlet is not working as it should or the drive is not properly clearing the data as the drive should revert back to a partition style of RAW after it is run. Do you have this issue with other storage as well?
– Persistent13
Feb 27 '17 at 22:45
I see this with two different models of USB drives as well. If I try the diskpart equivalent (select disk and then clean), the drive becomes MBR instead. Wondering if USB drives can't be raw...
– aggieNick02
Dec 14 '17 at 20:39
I was running into the same issue. I searched and found this Microsoft Doc that states, "You cannot use the GPT partition style on removable media."
– Paul Mayle
Dec 29 '18 at 17:31