我不小心用 DISKPART 刪除了我的驅動器

我不小心用 DISKPART 刪除了我的驅動器

我試圖用 DISKPART 修復損壞的 USB 隨身碟,但我不小心刪除了我的 D 驅動器(幸運的是這不是我的系統驅動器)。

我對我所做的事情有完整的命令歷史記錄,但我正在遵循線上教程,但我不太明白我做了什麼。您能幫我撤消我剛剛所做的任何事情嗎?

謝謝。

注意:第一個列出磁碟命令是在插入 USB 驅動器之前,第二個命令是在插入 USB 驅動器之後。

C:\Windows\system32>diskpart

Microsoft DiskPart version 10.0.10586

Copyright (C) 1999-2013 Microsoft Corporation.
On computer: PC-SAAM-AMD-FX

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  1024 KB
  Disk 1    Online          223 GB      0 B

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  1024 KB
  Disk 1    Online          223 GB      0 B
  Disk 2    Online         7712 MB      0 B

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  1024 KB
  Disk 1    Online          223 GB      0 B
  Disk 2    Online         7712 MB      0 B

DISKPART> select disk 3

The disk you specified is not valid.

There is no disk selected.

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> detail disk

Corsair Flash Voyager USB Device
Disk ID: 00000000
Type   : USB
Status : Online
Path   : 0
Target : 0
LUN ID : 0
Location Path : UNAVAILABLE
Current Read-only State : No
Read-only  : No
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : No

There are no volumes.

DISKPART> format recommended override

There is no volume selected.
Please select a volume and try again.

DISKPART> select volume

There is no volume selected.

DISKPART> select volume *

The arguments specified for this command are not valid.
For more information on the command type: HELP SELECT VOLUME

There is no volume selected.

DISKPART> select volume 1

Volume 1 is the selected volume.

DISKPART> format recommended override

Virtual Disk Service error:
Format is not allowed on the current boot, system, pagefile,
crashdump or hibernation volume.


DISKPART> FORMAT FS=NTFS LABEL="Windows7" QUICK COMPRESS

Virtual Disk Service error:
Format is not allowed on the current boot, system, pagefile,
crashdump or hibernation volume.


DISKPART> clean all

Virtual Disk Service error:
Clean is not allowed on the disk containing the current boot,
system, pagefile, crashdump or hibernation volume.


DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
* Partition 1    Primary            100 MB  1024 KB
  Partition 2    Primary            931 GB   101 MB

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
* Disk 0    Online          931 GB  1024 KB
  Disk 1    Online          223 GB      0 B
  Disk 2    Online         7712 MB      0 B

DISKPART> select disk 2

Disk 2 is now the selected disk.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary           7710 MB  1024 KB

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          931 GB  1024 KB
  Disk 1    Online          223 GB      0 B
* Disk 2    Online         7712 MB      0 B

DISKPART> detail disk

Corsair Flash Voyager USB Device
Disk ID: 00000000
Type   : USB
Status : Online
Path   : 0
Target : 0
LUN ID : 0
Location Path : UNAVAILABLE
Current Read-only State : No
Read-only  : No
Boot Disk  : No
Pagefile Disk  : No
Hibernation File Disk  : No
Crashdump Disk  : No
Clustered Disk  : No

There are no volumes.

DISKPART> clean all

DiskPart has encountered an error: The device is not ready.
See the System Event Log for more information.

DISKPART>

答案1

使用磁碟上的全部清理,該磁碟機的格式化無法撤銷。

您可以嘗試使用取消刪除工具來恢復數據,但這不太可能恢復所有數據。

這裡最好的選擇是開始從備份還原。我假設你做了備份,對嗎?

答案2

為了稍微擴充一下 LPChip 的答案,微軟是這麼說的:

乾淨[全部]

從具有焦點的磁碟中刪除所有分割區或磁碟區格式。在主開機記錄 (MBR) 磁碟上,僅覆寫 MBR 分割區資訊和隱藏磁區資訊。在 GUID 分割區表 (GPT) 磁碟上,GPT 分割區資訊(包括保護性 MBR)會被覆寫;沒有隱藏的扇區資訊。

全部

指定磁碟上的每個磁區都被清除,這完全地刪除磁碟上包含的所有數據

正如 LPChip 所說,這就是為什麼其他人†每天至少對其重要資料進行一次備份。

† 事實上,令人沮喪的是,許多人並不這麼做。

答案3

所以我終於設法恢復它。我仍然不知道到底發生了什麼,但似乎只是未分配它的磁碟盤符。在「磁碟管理」中,我仍然可以看到我的磁碟具有與以前相同的可用空間,但沒有字母,因此我嘗試再次分配 D,它可以工作,並且所有資料似乎都未修改。

相關內容