Skip to content

Instantly share code, notes, and snippets.

@ImagoTrigger
Created August 27, 2013 19:49
Show Gist options
  • Save ImagoTrigger/6358219 to your computer and use it in GitHub Desktop.
Save ImagoTrigger/6358219 to your computer and use it in GitHub Desktop.
Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. All rights reserved.
C:\Users\Administrator>diskpart
Microsoft DiskPart version 6.2.9200
Copyright (C) 1999-2012 Microsoft Corporation.
On computer: WINDOWS-PH2IJLC
DISKPART> SAN
SAN Policy : Offline Shared
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 80 GB 1024 KB
Disk 1 Offline 240 GB 240 GB
DISKPART> san policy=OnlineAll
DiskPart successfully changed the SAN policy for the current operating system.
DISKPART> select disk 1
Disk 1 is now the selected disk.
DISKPART> attributes disk clear readonly
Disk attributes cleared successfully.
DISKPART> online disk
DiskPart successfully onlined the selected disk.
DISKPART> attributes disk clear readonly
Disk attributes cleared successfully.
DISKPART> list disks
Microsoft DiskPart version 6.2.9200
DISK - Display a list of disks. For example, LIST DISK.
PARTITION - Display a list of partitions on the selected disk.
For example, LIST PARTITION.
VOLUME - Display a list of volumes. For example, LIST VOLUME.
VDISK - Displays a list of virtual disks.
DISKPART> list disk
Disk ### Status Size Free Dyn Gpt
-------- ------------- ------- ------- --- ---
Disk 0 Online 80 GB 1024 KB
* Disk 1 Online 240 GB 240 GB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment