如何解決 VboxManage 運行時錯誤?

如何解決 VboxManage 運行時錯誤?

VirtualBox 6.1.18,主機作業系統 Windows 10 Pro,來賓作業系統 Windows 10 Pro。

意圖:產生 VDI 檔案系統檔案的 VMDK 版本。

命令:

vboxmanage clonehd --format VMDK W10MyDisk.vdi W10MyDisk.vmdk

幾分鐘後,回覆:

0%...10%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage.exe: error: Failed to clone medium
VBoxManage.exe: error: Could not create the clone medium 'E:\Users\Alex\VirtualBox\W10Doutorado\W10Doutorado.vmdk' (VERR_IO_CRC)
VBoxManage.exe: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component MediumWrap, interface IMedium
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleCloneMedium(struct HandlerArg *)" at line 1071 of file VBoxManageDisk.cpp

如何解決該問題並完成克隆過程?

答案1

磁碟上有 CRC 錯誤,這表示磁碟發生故障。保存資料並取得另一張磁碟,希望有備份。

如果您確實需要恢復數據,也許可以在磁碟冷卻後重試。您也可以試試看是否是舊的 Roadkil 勢不可擋的影印機 在 Windows 10 中仍然有效。 文件 了解更多。

如果上述方法都不適合您,且遺失的資料非常重要,那麼專業的恢復服務確實存在,但成本高昂。

答案2

VERR_IO_CRC與磁碟問題有關。

我運行了以下命令:

chkdsk /f /r d:

/f    Fixes errors on the disk
/r    Locates bad sectors and recovers readable information

之後vboxmanage命令運作良好。

如果驅動器損壞特別嚴重,我發現以下方法通常會有所幫助:

啟動 Linux 並運行:

badblocks -nsv /dev/device -o badblocks.txt

-n    non-destructive read-write mode
-s    show progress
-v    verbpse

這會寫入磁碟機上的每個位元組(不會遺失資料),這通常會迫使磁碟機意識到存在錯誤。

如果您在現代硬碟或 SSD 上看到壞塊,通常表示該驅動器可能發生故障。雖然驅動器確實有備用塊,當它們檢測到某個塊損壞時,它們可以重新映射到(自動),但當您看到它們時,這意味著這些備用塊可能已耗盡。

相關內容