Operating system
Windows 2008r2
Problem description
A hard drive that increases when you buy.
Tip: The disk is offline because of the policy set by the administrator.
Solution
To run the DiskPart command to release related policies
The order is as follows:
DISKPART
Diskpart> San
Diskpart> San Policy=onlineall
Diskpart> list Disk
Diskpart> Select disk 1
Diskpart> attributes disk Clear readonly
diskpart> Online disk
The following is a successful picture. Note that when you select a disk number
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\users\administrator>diskpart
Microsoft DiskPart version 6.1.7601
Copyright (C) 1999-2008 Microsoft Corporation.
On the computer: 10_237_136_176
Diskpart> San
SAN policy: Making shared disks offline
Diskpart> San Policy=onlineall
DiskPart has successfully changed the SAN policy for the current operating system.
Diskpart> list Disk
Disk ### state size available Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online GB MB
Disk 1 offline GB
Diskpart> Select disk 1
Disk 1 is now the selected disk.
Diskpart> attributes disk Clear readonly
The disk properties have been purged successfully.
diskpart> Online disk
DiskPart successfully brought the selected disk online.
Diskpart>
The following figure is the cmd command run diagram
After the operation is successful, it is generally shown as the following figure. We format the associated disk to complete.
Since speaking of DiskPart command, the following article. I'll give you a detailed description of the common specifications of the DiskPart command.