使用DiskPart.exe作為盤管理選擇在窗口景色, 2000年, 2003年和XP
盤管理在計算機管理之下在管理員工具是允許視窗2000、窗口2003年Windows XP和窗口景色用戶設置活動分區,變動驅動器字母和道路的GUI (圖形用戶界面)基於磁盤分區公共事業,擴大容量,收縮容量,刪除容量,并且格式化驅動。 然而,盤管理引伸在Microsoft Management Console (MMC)不適當地總運作。 問題面對由用戶包括任意變灰或失去能力擴大容量并且收縮容量選擇,因為盤管理卡扣式禁止您疏忽進行也許導致數據損失的行動。
如果您得到沮喪與盤管理,試驗DiskPart公共事業,文本方式命令行根據劇本的口譯員處理,創造,刪除并且重量尺寸對象例如盤、分開和容量在窗口景色, XP, 2003年和2000年。 默認情況下(3個操作系統以後不安裝與DiskPart.exe,因此用戶需要 手工下載并且安裝DiskPart). 因為DiskPart是命令行公共事業,用戶將必須使用各種各樣的命令指示DiskPart執行盤相關的任務。 用戶能使用 幫助 命令列出所有可利用的命令為DiskPart。 因為各種選擇為命令,添附指令名字幫助,即。 幫助[命令]或者只簡單地鍵入指令名字。 為了詳細說明和指南能使用命令,添附完全指令句法到幫助,即。 幫助[完全指令句法以選擇].
為容易的參考和得到起動指南,這您在您的硬盤和分成或者容量能執行與DiskPart的某一簡單的操作。 但,在您繼續之前,在所有失敗的情況下切記您備份重要文件和節目。
- 開始并且跑DiskPart
要跑DiskPart,鍵入 DiskPart.exe 在起動查尋在窗口景色,或者在跑的命令正文框在視窗2000, 2003年和XP完成了由輸入鍵。 一個指令提示窗口與DISKPART殼被裝載。
- 列出所有盤在系統在DiskPart
對所有您可利用的安裝的硬盤在系統,簡單地鍵入 名單盤和命中進入。
- 選擇并且設置目標磁盤到用途盤部分
要設置和選擇您要與在DiskPart一起使用的盤,使用以下命令句法:
選擇盤 <盤數字(###)>
盤數字從「名單盤」命令被檢索。
- 創造分開與DiskPart
If the hard disk is empty without any partition or still has unallocated space, a partition can be created on it with the following command syntax:
create partition <partition type> [size=<n>] [offset=<n>] [id={<byte> | <guid>}] [align=<n>] [noerr]
The partition types that are supported are primary partition (the only bootable type, but limited to four per hard disk), extended partition (also limited to four per hard disk to supplement those need more than 4 primary partitions), logical drive (to define within extended partition to allow many volumes to be created), EFI system partition and MSR (Microsoft Reserved partition). Note that not all options are available for all partition type.
Example: create partition primary size=1000 (Create a primary partition with the size of 10GB.)
- Create a volume in DiskPart
DiskPart allows user to create RAID (RAID-5) volume using three or more specified dynamic disks, simple volume or striped volume using two or more specified dynamic disks. The syntax for the command is:
create volume <volume type> [size=<n>] disk=<n>,<N>,<n>[,<n>[,...]] [align=<n>] [noerr]
Example: create volume raid size=1000 disk=1,2,3 (Create a RAID-5 array volume with 1 GB (1000MB) using disk 1, 2 and 3.)
- List all volumes in DiskPart
Use the following command to list all volumes in order to check which number is associated with the volume we want to work with:
list volume
- Select a volume to manage in DiskPart
Use the following command to select a volume in order to manage (shrink, extend, delete format) the volume:
select volume <number>
The number for the volume is retrieved from “list volume” command.
- List all partitions in DiskPart
Use the following command to list all partitions in order to check which number is associated with the partition we want to work with:
list partition
- Select a partition to manage in DiskPart
Use the following command to select a volume in order to manage (shrink, extend, delete format) the partition:
select partiton <number>
The number for the partiton is retrieved from “list partition” command.
- Shrink a volume (reduce size of partition) in DiskPart
To reduce the size of the volume with focus by the specified amount and makes free disk space available from unused space at the end of the volume, use following command syntax:
shrink [desired=<n>] [minimum=<N>] [nowait] [noerr]
Example: shrink desired=500 minimum=250 (Shrink volume by 500 MB, with 250 MB as minimum size to be freed if not possible.)
To check and determine how much is the maximum number of bytes that a volume can be reduced by (the free space that is available on the volume), use following command:
shrink querymax [noerr]
- Extends the volume or partition (increase size) in DiskPart
To extend the volume or partition with focus and its file system into free (unallocated) space which can be used to store data on a disk, use following command syntax:
extend [size=<n>] [disk=<n>] [noerr]
The above command works on when both volume or partition is selected.
Example: extend size=500 (Increase the size of current partition or volume selected by 500MB.)
- Delete partition or volume with DiskPart
Note that system, boot or any volume/partition that contains the active paging file or crash dump (memory dump) cannot be deleted. And users must select a partition or volume before start deletion operation. Dynamic disks should be removed by using “delete volume” command.
delete partition
delete volume
- Format a volume or partition in DiskPart
Simply select a partition or volume, and then type Format.
IMPORTANT: This is a machine translated page which is provided "as is" without warranty. Machine translation may be difficult to understand. Please refer to original English article whenever possible.
Share and contribute or get technical support and help at My Digital Life Forums.
Related Articles
- DiskPart.exe Free for Windows XP, 2003 and 2000 Direct Download Link
- Delete and Remove to Unlock EISA Hidden Recovery or Diagnostic Partition in Vista
- Change or Resize Partition (NTFS, FAT or FAT32) Size in Windows Vista
- Change or Modify the Drive Letter and Paths in Windows Vista
- Vista-friendly Anti-Virus Solution
- Download TrueCrypt Free (Alternative) Encryption Software for Vista
- Best and Worst Microsoft Products
- Reveal and Recover Windows NT, 2000, XP, 2003 and Longhorn Login (including Administrator) Username and Password with Login Recovery
- Restore Windows NT Backup (ntbackup) .bkf in Vista and ‘Longhorn’ Server 2008
- Download Microsoft Virtual PC 2004 for Free

































September 30th, 2007 04:27
Hi,
I have 180GB with windows vista installed, if I try to create or shrink partition for linux like:
keep 80 GB for Windows & rest for Linux.
I use the “create partition” but when i give the size=100000 or 80000 this says size is too large !
Anyhelp please
regards,
—saleem
October 24th, 2007 16:47
You can’t shrink a partition with this tool under Windows 2000, this seems to be a Vista-only feature.
March 19th, 2008 17:16
Dit is de grootste onzin die ik ooit gelezen heb!!!