參考 這篇文章
如果要擴容的 partition 上面有磁碟分頁檔,先關掉,然後重開機
打開 cmd.exe 執行 diskpart.exe
指令: list volume
DISKPART> list volume Volume ### Ltr Label Fs Type Size Status Info ---------- --- ----------- ----- ---------- ------- --------- -------- Volume 0 D CD-ROM 0 B Volume 1 C NTFS Partition 30 GB Healthy System Volume 2 E NTFS Partition 10 GB Healthy
指令: select Volume <The Volume Number>
DISKPART> select Volume 2 Volume 2 is the selected volume.
指令: extend
DISKPART> extend DiskPart successfully extended the volume. DISKPART> exit Leaving DiskPart...