
To create a partition (in this scenario, with 10GB size), type the following command:ĭiskpart> create partition primary size=10240. Select a disk (in this scenario, “disk 0”) by typing the following command: diskpart> select disk 0. List all the disks connected to your server.ĭiskpart> list disk Disk # Status Size Free Dyn Gpt. At the command line, type diskpart and press Enter. Scenario: Create a new volume “data drive” with 10GB of space and mount it as “T:” Shrinking a file system requires no downtime as well. Adding extra space to an existing file system requires no downtime. Any DiskPart command will then act on that object.
List then select an object to give it focus. You can find a list of the DiskPart commands you can use in this Microsoft TechNet article. The C: drives of Alnitech servers has a 100GB default volume. You can use the rest of the space at your own discretion. Specifically, it can do a superset of actions supported by Disk Management.
In DiskPart, your commands are read from standard input/output (I/O) and directed to any disk, partition, or volume.ĭiskPart enhances the Disk Administrator graphical user interface (GUI). It is different from other command-line tools, as it does not operate in a single-line mode. The DiskPart utility enables you to configure storage from a script, a remote session, or another command prompt. (Is your server not living up to its potential? Order a server from us with promo code PACKETS for 15% off your first invoice)