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;








3















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.










share|improve this question






















  • 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

















3















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.










share|improve this question






















  • 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













3












3








3








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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










1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer























    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    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.






    share|improve this answer



























      0














      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.






      share|improve this answer

























        0












        0








        0







        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.






        share|improve this answer













        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.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 24 '18 at 7:16









        Rix RyskampRix Ryskamp

        1




        1



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

            What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

            Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos