How to extend system partition in Windows 2000 VM

以下的測試是利用Windows 2000 Server VM.

PS.我建議調整system partition前,必須在沒有做snapshot的情況下.

1. 修改Windows 2000 Server系統磁碟的虛擬磁碟,選擇Edit.

clip_image001

2. 選擇Expand

clip_image002

3. 原本Disk的上限是20GB,給新的Disk上限值,虛擬磁碟最大上限是2TB.

clip_image003

4. 確認後按下Finish

clip_image004

5. Windows 2000系統開機後,打開磁碟管理員,可以看到新增的未配置的5GB磁碟空間

clip_image005

6. 下載並安裝DiskPart.exe for Windows 2000

https://www.microsoft.com/downloads/details.aspx?FamilyID=0fd9788a-5d64-4f57-949f-ef62de7ab1ae&displaylang=en

以下是Extend partition的範例.

C:\Program Files\Resource Kit>diskpart.exe

DISKPART> list disk

Disk ### Status Size Free Dyn Gpt

-------- ---------- ------- ------- --- ---

Disk 0 Online 25 GB 5130 MB

DISKPART> select disk 0

Disk 0 is now the selected disk.

DISKPART> list partition

Partition ### Type Size Offset

------------- ---------------- ------- -------

Partition 1 Primary 20 GB 32 KB

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> extend

DiskPart successfully extended the volume.

· PS: When the right disk and partition were selected, execute the "EXTEND" command. If you don't specify the size to extend by, then the command will extend the partition by using all of the contiguous space available on that disk.

7. 完成後,磁碟管理員發現System partition空間變大了.

image