我正在尝试安装 Windows 映像备份 .vhdx 文件并为其指定驱动器号,以便我可以从备份中检索一两个文件。它过去运行良好,但现在我无法让它与来自两个不同系统的两个备份中的任何一个一起工作。
过去,我只是使用 Win10 的磁盘管理控制台来连接 VHD 并分配驱动器号。如果磁盘管理在任何地方失败,我必须使用 DISKPART 在命令行上执行此操作。有很多指南,包括这个: https://www.ubackup.com/articles/mount-windows-image-backup-vhd-4125.html
但是现在,即使 DISKPART 也无法为该 VHD 分配驱动器号,因为据报道它没有定义卷,而选择卷似乎是一项要求。
DISKPART> select vdisk file="\\rackstation\WindowsImageBackup\Jim-XPS\Backup 2021-05-18 205737\75a7e1c1-db22-4315-9afe-3852852949c8.vhdx"
DiskPart successfully selected the virtual disk file.
DISKPART> detail vdisk
Device type ID: 0 (Unknown)
Vendor ID: {00000000-0000-0000-0000-000000000000} (Unknown)
State: Attached not open
Virtual size: 1889 GB
Physical size: 598 GB
Filename: \\rackstation\WindowsImageBackup\Jim-XPS\Backup 2021-05-18 205737\75a7e1c1-db22-4315-9afe-3852852949c8.vhdx
Is Child: No
Parent Filename:
Associated disk#: 1
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 1907 GB 11 MB *
* Disk 1 Online 1889 GB 131 MB *
DISKPART> detail disk
Microsoft Virtual Disk
Disk ID: {ABA28F86-D470-4402-9F03-9D1AA051BC33}
Type : File Backed Virtual
Status : Online
Path : 0
Target : 0
LUN ID : 1
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. **[ <== WTH?! ]**
DISKPART> list vdisk
VDisk ### Disk ### State Type File
--------- -------- -------------------- --------- ----
[redacted list of other VDisks (#0 and #1) that are no longer attached, showing state of "Added", and lacking the asterisk you see below, left of "VDisk 2", denoting that it is "selected"]
* VDisk 2 Disk 1 Attached not open Expandable \\rackstation\WindowsImageBackup\Jim-XPS\Backup 2021-05-18 205737\75a7e1c1-db22-4315-9afe-3852852949c8.vhdx
DISKPART> assign letter M
There is no volume specified.
Please select a volume and try again.
请注意,“列出卷”返回的是磁盘 0 上的卷列表,而不是所选的磁盘 1(= VDisk 2),而“选择卷 [#]”会选择所选卷,然后将所选磁盘更改为磁盘 0!见下文:
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 1907 GB 11 MB *
* Disk 1 Online 1889 GB 131 MB *
DISKPART> list volume **[in spite of Disk 1 being selected, this will list volumes of Disk 0 because Disk 1 has no volumes]**
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- --------
Volume 0 C OS NTFS Partition 1888 GB Healthy Boot
Volume 1 ESP FAT32 Partition 190 MB Healthy System
Volume 2 WINRETOOLS NTFS Partition 990 MB Healthy Hidden
Volume 3 Image NTFS Partition 16 GB Healthy Hidden
Volume 4 DELLSUPPORT NTFS Partition 1392 MB Healthy Hidden
DISKPART> select volume 0
Volume 0 is the selected volume.
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
* Disk 0 Online 1907 GB 11 MB *
Disk 1 Online 1889 GB 131 MB *
那么,到底是怎么回事?我们现在如何安装 Windows Image Backup 创建的 VHD 文件?这是 DISKPART 的一个已知错误吗?我知道,如果您对“选定”的磁盘进行破坏性操作,这种对选定磁盘的静默切换可能会造成严重后果。