如何在 Windows 10 中將硬碟 PartitionStyle 從 GPT 轉換回 RAW

如何在 Windows 10 中將硬碟 PartitionStyle 從 GPT 轉換回 RAW

出於測試目的,我需要 Windows 10 電腦上的硬碟採用 RAW 分割區樣式格式。目前是GPT分區樣式。

該硬碟是輔助硬碟,不包含任何系統檔案或啟動文件,完全是空白的。

我嘗試在磁碟管理工具中刪除分割區diskmgmt.msc,但它仍然顯示為 GPT。

如何將硬碟恢復到未初始化狀態?

答案1

RAW 不是 MBR 或 GPT 那樣的分割區類型。

當 Windows 將您的 HDD 分割區顯示為 RAW 時,這不是它所說的分割區樣式。它是該分割區上安裝的檔案系統的狀態。

它真正的意思是 Windows不能理解它是什麼檔案系統 - 不是有一個名為 RAW 的可識別系統。

如果您仍想將分割區轉換為 RAW:

  • 開啟運行視窗(Win + R)
  • 輸入CMD並按 Enter 鍵
  • 輸入diskpart並按 Enter 鍵
  • 輸入list disk並按 Enter 鍵
  • 輸入select disk x,其中 x 是您要存取的磁碟編號...可能是 0 或 1,然後按 Enter
  • 您現在應該準備好要清理的 RAW 磁碟
  • 警告:以下命令將刪除磁碟上的所有資料!如果您需要該分割區上的數據,請勿執行此操作!
  • 輸入clean並按 Enter 鍵
  • 該磁碟現在是 RAW。

執行 Windows 10 的 Azure VM 上的範例會話:

C:\> diskpart

Microsoft DiskPart version 10.0.19041.610

Copyright (C) Microsoft Corporation.
On computer: test-vm

DISKPART> list

Microsoft DiskPart version 10.0.19041.610

DISK        - Display a list of disks. For example, LIST DISK.
PARTITION   - Display a list of partitions on the selected disk.
              For example, LIST PARTITION.
VOLUME      - Display a list of volumes. For example, LIST VOLUME.
VDISK       - Displays a list of virtual disks.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          127 GB  2048 KB
  Disk 1    Online           64 GB      0 B
  Disk 2    Online         1024 GB  1023 GB        *

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> clean

DiskPart succeeded in cleaning the disk.

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          127 GB  2048 KB
  Disk 1    Online           64 GB      0 B
* Disk 2    Online         1024 GB  1024 GB

DISKPART> exit

Leaving DiskPart...

您可以透過執行以下 Powershell 命令來驗證分割區樣式:

PS> Get-Disk

Number Friendly Name Serial Number                    HealthStatus         OperationalStatus      Total Size Partition
                                                                                                             Style
------ ------------- -------------                    ------------         -----------------      ---------- ----------
0      Virtual HD                                     Healthy              Online                     127 GB MBR
1      Virtual HD                                     Healthy              Online                      64 GB MBR
2      Msft Virtu...                                  Healthy              Online                       1 TB RAW

免責聲明:我重新發布該線程的摘要以保留知識並使其更易於發現: https://forums.tomshardware.com/threads/how-to-i-convert-my-hard-disk-partitionstyle-from-gpt-to-raw-with-either-cmd-powershell-or-disk-management。 1720971/

感謝 iprodigyxx、Paperdoc、peleg1960 和其他貢獻者。

相關內容