Windows2008R2新添加的硬盘无法识别  VM虚拟机

以前创建虚拟机是给了50G,现在发现有些小,就给虚拟机增加了一块硬盘25G,重启机器后发现无法识别新的磁盘。

系统磁盘管理提示:this disk is offline because of the policy set by administrator

最后发现可以通过DISKPART命令行工具解决

DiskPart successfully changed the SAN policy for the current operating system.
DISKPART> LIST DISK

Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 40 GB 0 B
Disk 1 Offline 10 GB 1024 KB
DISKPART>select disk 1

Disk 1 is now the selected disk.

DISKPART> ATTRIBUTES DISK CLEAR READONLY
Disk attributes cleared successfully.

DISKPART> attributes disk
Current Read-only State : No
Read-only : No
Boot Disk : No
Pagefile Disk : No
Hibernation File Disk : No
Crashdump Disk : No
Clustered Disk : No

DISKPART> ONLINE DISK
DiskPart successfully onlined the selected disk.
Restart OS.
= = = = = = = = = = = = = = = = = =

重启机器,新的磁盘自动加载了




Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐