Home
Initialising a new disk with DISKPART Print E-mail
If you’ve been using Windows Server 2008 Server Core you’ll notice that some of the mundane, simple tasks that you take for granted are no longer quite so simple. One such example is the way that the disk management snap-in automatically discovers a new disk and runs a wizard that allows you to initialise the disk. Without disk management initialising this disk isn’t quite as straight forward. There's no INITIALIZE command in DISKPART that’s for sure!

So, how then, do we initialise a new disk so that we can create a partition (or volume) on it? We mark it as read/write (it defaults to read only) using the ATTRIBUTES context. Like so:
DISKPART> attributes disk clear readonly

Before we can do this we need to select a disk, which we do with the SELECT DISK command after viewing the available disks using the LIST DISK command, like so:
DISKPART> list disk

Disk ### Status Size Free Dyn Gpt
-------- ---------- ------- ------- --- ---
Disk 0 Online 93 GB 0 B
Disk 1 Online 3900 MB 0 B
Disk 2 Online 149 GB 0 B

DISKPART> select disk 2

Disk 2 is now the selected disk.
DISKPART> attributes disk clear readonly

Disk attributes cleared successfully.

Hope this helps! If you’d rather use the disk management UI (MMC snap-in), see this post for information on how to configure that to work.




Del.icio.us!Technorati!StumbleUpon!Furl!
 
< Prev   Next >