top ad article

You can actually shrink and create volume partition using Cmd on Windows. Many are used to just going to disk management and doing the same. Well, at times it is good to try out other options that are available to further expand your knowledge on the various ways and skills you can use on your system to achieve something.

Shrink and Create Volume Partition using Cmd

To create a partition, you need to unallocated space to utilize. If you do not have this space, you can actually create it from the command prompt by shrinking the drive with the largest capacity, the following process and commands will help with;

Step 1. Open Command Prompt & type diskpart command

Step 2. Type list volume command and it will show you the available volumes, where you can choose the one to shrink

Step 3. Select the volume you want to shrink by specifying which one. For our case select volume 0

Step 4. Shrink the selected volume by either typing shrink or if you want to specify the size to shrink, you can type, shrink desired= 10000,20000, 40000 units are in mb etc. For our case, we used 1000.

C:\Windows\system32>diskpart

Microsoft DiskPart version 10.0.18362.1171

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-17AI25Q

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
  Volume 0     C                NTFS   Partition    159 GB  Healthy    Boot
  Volume 1                      NTFS   Partition    450 MB  Healthy    Hidden
  Volume 2                      FAT32  Partition    100 MB  Healthy    System

DISKPART> select volume 0

Volume 0 is the selected volume.

DISKPART> shrink desired=10000

DiskPart successfully shrunk the volume by:    9 GB

DISKPART> list volume

  Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
  ----------  ---  -----------  -----  ----------  -------  ---------  --------
* Volume 0     C                NTFS   Partition    150 GB  Healthy    Boot
  Volume 1                      NTFS   Partition    450 MB  Healthy    Hidden
  Volume 2                      FAT32  Partition    100 MB  Healthy    System

Create Volume Partition from the Command Prompt

Create volume partition using cmd, as follows;

Step 1. Open Command Prompt and type diskpart

Step 2. Type list disk and hit Enter, this will list the disks available

Step 3. Select the disk that has got unallocated space, i.e for our case sel disk 0

Step 4. Type create partition primary size=z command, where z is the size not exceeding the size of the unallocated space

Step 5. A partition will be created, it could be partition 4,3,2 depending on the number of partitions you had before creating this one. Select the partition you just created by typing select partition 5, an example of our case below, then hit Enter

Step 6. Do a quick format on the disk using the command format fs=ntfs quick

Step 7. Assign drive letter by typing the command assign

Step 8. Type active then, hit Enter to make the partition ready for use

The whole process of creating the volume partition is as shown;

C:\Windows\system32>diskpart

Microsoft DiskPart version 10.0.18362.1171

Copyright (C) Microsoft Corporation.
On computer: DESKTOP-17AI25Q

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          238 GB    87 GB        *

DISKPART> sel disk 0

Disk 0 is now the selected disk.

DISKPART> create partition primary size=10000

DiskPart succeeded in creating the specified partition.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Recovery           450 MB  1024 KB
  Partition 2    System             100 MB   451 MB
  Partition 3    Reserved            16 MB   551 MB
  Partition 4    Primary            150 GB   567 MB
* Partition 5    Primary              9 GB   150 GB

DISKPART> select partition 5

Partition 5 is now the selected partition.

DISKPART> format fs=ntfs quick

  100 percent completed

DiskPart successfully formatted the volume.

DISKPART> assign

DiskPart successfully assigned the drive letter or mount point.

As shown above is is quite easy to shrink and create volume partitions using the command prompt. You just have to follow the steps above and you are good to go.

Other Posts

Previous articleDelete a Drive Partition Easily on Windows 10
Next articleThe Virtual Memory in Windows 10
Valentine is eager to learn new things, technology and life issues. She is curious enough to write about them. And, she uses her platform to educate others regarding the many sectors in life and most importantly technology.

LEAVE A REPLY

Please enter your comment!
Please enter your name here