因此,在深入研究现有脚本时,我注意到 Windows 列出分区和卷的方式有所不同。有人可以向我解释我所看到的吗?仅仅是diskpart和WMI之间的区别吗?linux如何看到这些?
C:\WINDOWS\system32>wmic /namespace:\\root\cimv2 path Win32_OperatingSystem get SystemDevice
SystemDevice
\Device\HarddiskVolume1
<>
DISKPART> list volume
Volume ### Ltr Label Fs Type Size Status Info
---------- --- ----------- ----- ---------- ------- --------- ------
Volume 0 E Backup NTFS Mirror 148 GB Healthy
Volume 1 D DVD-ROM 0 B No Media
Volume 2 L DVD-ROM 0 B No Media
Volume 3 C OS NTFS Partition 223 GB Healthy System
Volume 4 G Removable 0 B No Media
Volume 5 H Removable 0 B No Media
Volume 6 I Removable 0 B No Media
Volume 7 J Removable 0 B No Media
DISKPART>
谢谢!