diskpart

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
diskpart
DevelopersMicrosoft, Lee Schroeder
Repository
  • {{URL|example.com|optional display text}}Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
Engine
    Lua error in Module:EditAtWikidata at line 29: attempt to index field 'wikibase' (a nil value).
    Operating systemWindows, ReactOS
    PlatformCross-platform
    Predecessorfdisk
    TypeCommand
    LicenseWindows: Proprietary commercial software
    ReactOS: GPLv2
    Websitelearn.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart
    The Windows 7 diskpart command
    The ReactOS diskpart command

    In computing, diskpart is a command-line disk partitioning utility included in Windows XP and later Microsoft operating systems, replacing its predecessor, fdisk.[1][2] The command is also available in ReactOS.[3]

    Overview

    [edit | edit source]

    The diskpart utility is used for partitioning internal hard drives but can also format removable media such as flash drives.[4]

    It has long been possible, theoretically, to partition removable drives – such as flash drives or memory cards – from within Windows NT 4.0 / 2000 / XP; e.g., during system installation. In reality, however, it was not possible to create, for instance, a recovery console, for such a device. A message would appear: 'Cannot format removable disk'. Microsoft noticed this error and responded by disabling the functionalities of creating and viewing partitions on the device from within Windows, beginning with Vista up to[clarification needed] Windows 10.[citation needed]

    With diskpart, scripts are supported to facilitate such functions. For example, the code below would create a new partition:

    create partition logical size=2048
    assign letter=F
    

    Specifically, the above will create a 2 GB logical partition, provided that adequate space is available, and assign it the drive letter 'F:'.[5]

    The installed disks and their associated volumes and/or partitions can be viewed using these commands:

    list disk
    list volume
    list partition
    

    The sel command will select them. The command clean will perform a "quick" disk wipe, and clean all zeroes out the entire partition/disk. The ReactOS version was developed by Lee Schroeder and is licensed under the GPLv2.[6]

    Recovery Console

    [edit | edit source]

    On the Recovery Console, which is included in all Windows 2000, Windows XP and Windows Server 2003, there is a diskpart command which is significantly different from the one included in the actual operating system. It only provides functionality for adding and deleting partitions, but not for setting an active partition.[7][8]

    See also

    [edit | edit source]

    References

    [edit | edit source]
    1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    4. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    7. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    8. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

    Further reading

    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    [edit | edit source]
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
    • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).