延伸基本磁碟區Extend a basic volume

適用於:Windows 10、Windows 8.1、Windows Server (半年度管道)、Windows Server 2016、Windows Server 2012 R2、Windows Server 2012Applies To: Windows 10, Windows 8.1, Windows Server (Semi-Annual Channel), Windows Server 2016, Windows Server 2012 R2, Windows Server 2012

您可以藉由將現有的主要磁碟分割及邏輯磁碟機延伸到相同磁碟上相鄰未配置的空間,將更多空間新增至這些磁碟區。You can add more space to existing primary partitions and logical drives by extending them into adjacent unallocated space on the same disk. 若要延伸基本磁碟區,此磁碟區必須是未經處理 (未透過檔案系統格式化) 或是已格式化為 NTFS 檔案系統。To extend a basic volume, it must be raw (not formatted with a file system) or formatted with the NTFS file system. 您可以在包含邏輯磁碟機之延伸磁碟分割的連續可用空間內延伸該磁碟機。You can extend a logical drive within contiguous free space in the extended partition that contains it. 如果您延伸邏輯磁碟機超出延伸磁碟分割中提供的可用空間,延伸磁碟分割會擴大來包含邏輯磁碟機。If you extend a logical drive beyond the free space available in the extended partition, the extended partition grows to contain the logical drive.

延伸邏輯磁碟機以及開機或系統磁碟區時,您只能將磁碟區延伸到連續空間,而且僅限可以升級為動態磁碟的磁碟。For logical drives, and boot or system volumes, you can extend the volume only into contiguous space and only if the disk can be upgraded to a dynamic disk. 其他磁碟區則可以延伸至非連續空間中,但系統會提示您將磁碟轉換成動態磁碟。For other volumes, you can extend the volume into non-contiguous space, but you will be prompted to convert the disk to dynamic.

延伸基本磁碟區Extending a basic volume

若要使用 Windows 介面延伸基本磁碟區To extend a basic volume using the Windows interface

  1. 在 [磁碟管理員] 中,以滑鼠右鍵按一下您想要延伸的基本磁碟區。In Disk Manager, right-click the basic volume you want to extend.

  2. 按一下 [延伸磁碟區]Click Extend Volume.

  3. 依照畫面上的指示操作。Follow the on-screen instructions.

若要使用命令列延伸基本磁碟區To extend a basic volume using a command line

  1. 開啟命令提示字元,然後輸入 diskpartOpen a command prompt and type diskpart.

  2. DISKPART 提示中輸入 list volumeAt the DISKPART prompt, type list volume. 記下您要延伸的基本磁碟區。Make note of the basic volume you want to extend.

  3. DISKPART 提示中輸入 select volume <volumenumber>At the DISKPART prompt, type select volume <volumenumber>. 這樣就會選取您要延伸至相同磁碟中連續空白空間的基本磁碟區 volumenumberThis selects the basic volume volumenumber that you want to extend into contiguous, empty space on the same disk.

  4. DISKPART 提示中輸入 extend [size=<size>]At the DISKPART prompt, type extend [size=<size>]. 這樣就會以大小單位為 MB 的幅度延伸選取的磁碟區。This extends the selected volume by size in megabytes (MB).


Value 描述Description

list volumelist volume

顯示所有磁碟上的基本和動態磁碟區。Displays a list of basic and dynamic volumes on all disks.

select volumeselect volume

選取指定的磁碟區 (其中 volumenumber 是磁碟區編號),並讓它成為焦點。Selects the specified volume, where volumenumber is the volume number, and gives it focus. 如果沒有指定磁碟區,select 會命令列出焦點所在的目前磁碟區。If no volume is specified, the select command lists the current volume with focus. 您可以用編號、磁碟機代號或掛接點路徑來指定磁碟區。You can specify the volume by number, drive letter, or mount point path. 在基本磁碟上,選取磁碟區也會讓對應的磁碟分割成為焦點。On a basic disk, selecting a volume also gives the corresponding partition focus.

extendextend

  • 將焦點所在磁碟區延伸到下一個連續未配置的空間。Extends the volume with focus into next contiguous unallocated space. 延伸基本磁碟區時,未配置的空間必須同在一個磁碟上,並且必須跟隨在具有焦點的磁碟分割之後 (磁區位移較高)。For basic volumes, the unallocated space must be on the same disk as, and must follow (be of higher sector offset than) the partition with focus. 動態的簡單磁碟區或合併磁碟區可以延伸到任何動態磁碟區上的任何空白空間。A dynamic simple or spanned volume can be extended to any empty space on any dynamic disk. 您可以使用這個命令,將現有的磁碟區延伸到新建立的空間。Using this command, you can extend an existing volume into newly-created space.

  • 如果先前已透過 NTFS 檔案系統將磁碟分割格式化,檔案系統會自動進行延伸以佔用更大的磁碟分割。If the partition was previously formatted with the NTFS file system, the file system is automatically extended to occupy the larger partition. 不會有任何資料遺失。No data loss occurs. 如果磁碟分割先前是使用 NTFS 以外的任何檔案系統格式來格式化,命令會失敗,但不會變更磁碟分割。If the partition was previously formatted with any file system format other than NTFS, the command fails with no change to the partition.

size= sizesize= size

要新增至目前磁碟分割的空間數量,以 MB 為單位。The amount of space, in megabytes (MB), to add to the current partition. 如果未指定大小,則會將磁碟延伸到佔用所有的連續未配置空間。If you do not specify a size, the disk is extended to take up all the contiguous unallocated space.

其他考量Additional considerations

  • 如果磁碟沒有包含開機或系統磁碟分割,就可以將磁碟區延伸到其他非開機或非系統磁碟,但該磁碟將會轉換成動態磁碟 (若磁碟可升級)。If the disk does not contain boot or system partitions, you can extend the volume into other non-boot or non-system disks, but the disk will be converted to a dynamic disk (if it can be upgraded).

另請參閱See Also