Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

diskpart

From Wikipedia, the free encyclopedia
Command line program
diskpart
Screenshot ofdiskpart inWindows 10
DevelopersMicrosoft, Lee Schroeder
Operating systemWindows,ReactOS
PlatformCross-platform
Predecessorfdisk
TypeCommand
LicenseWindows:Proprietarycommercial software
ReactOS:GPLv2
Websitelearn.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart
TheWindows 7diskpart command
TheReactOSdiskpart command

Incomputing,diskpart is acommand-linedisk partitioning utility included inWindows XP and laterMicrosoftoperating systems, replacing its predecessor,fdisk.[1][2] The command is also available inReactOS.[3]

Overview

[edit]

Thediskpart utility is used for partitioning internal hard drives but can also formatremovable media such asflash 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]

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

create partition logical size=2048assign letter=F

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

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

list disklist volumelist partition

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

Recovery Console

[edit]
Main article:Recovery Console

On the Recovery Console, which is included in all Windows 2000,Windows XP andWindows Server 2003, there is adiskpart 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 anactive partition.[7][8]

See also

[edit]

References

[edit]
  1. ^"DiskPart".Windows XP Command-line reference A-Z.Microsoft. Retrieved3 April 2015.
  2. ^"How to extend a data volume in Windows Server 2003, in Windows XP, in Windows 2000, and in Windows Server 2008".Support.Microsoft. 11 September 2011.
  3. ^"Reactos/Reactos".GitHub.
  4. ^"DiskPart Commands".Windows Server 2008 R2 and Windows Server 2008 Command-Line Reference.Microsoft. Retrieved3 April 2015.
  5. ^Bhardwaj, Pawan K.; Andreou, Kimon; Barber, Brian;Kleiman, Dave; Satyanarayana, Mahesh (2006).How to cheat at Windows System Administration using command line scripts. Rockland, MA: Syngress.ISBN 1-59749-105-5.
  6. ^"Reactos/Reactos".GitHub. 3 January 2022.
  7. ^"Description of the Windows XP Recovery Console for advanced users".Support.Microsoft. 11 July 2013.
  8. ^"Partition Diskpart - Create, Extend or Delete a Disk Partition". Retrieved2021-02-28.

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
Stub icon

Thiscomputer data storage-relatedsoftware article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Diskpart&oldid=1320005717"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp