In Windows2008 how to manage the disk through the
A function of Windows Server 2008 is that quite a few elements with the running system functions could be managed by way of the command line. If we are on the pc having a GUI interface, just require to outline a RAID array, is generally reasonably hassle-free to attain, excess fat in the Disk Management console plan some mouse clicks to complete the installation.
In case you want several machines to complete the identical RAID operation, efficient way of using the script will likely be higher. Similarly, if we're conducting the Server Core set up, there is no other choice but to handle their very own from a command prompt, the disk subsystem. In this write-up, describes how to utilize the command line to accomplish the above-mentioned functions.
1, Diskpart command
Windows Server 2008 consists of a file named Diskpart.exe command line utility to manage the server's disk subsystem. To make use of this command, simply open a command prompt window and enter the DISKPART.EXE command, Windows will enter the Diskpart Shell interface. In Diskpart Shell interface, you can actually utilize the various commands to handle the disk subsystem.
two, Diskpart command syntax
Diskpart command format, in accordance with the verb - noun syntax. Verbs to inform Windows what motion to perform, the noun tells Windows to carry out the action object.
give a basic instance: List of which can be a verb, Disk is actually a noun. Once you enter this command, the operating system installed about the server list will show all of the physical disks. Figure one.
Figure 1: Listing Disk command execution outcomes
Listing Disk command displays installed to the server on all the disks. Still, there appears Diskpart Bug: the value from the figure, Diskpart returned outcomes indicate the on the market area on Disk 0 of 0 bytes. But in truth, the disk has 42 GB of free space. Note the over values, each and every disk is assigned a disk number. When we need to have on a certain disk to execute a particular operation, you may enter For example, Disk 0 to run, enter the
|