Shrink disk or drive with diskpart

  Manage hard drives, partitions, and volumes

diskpart
Copied!

  Select drives or disk

list disk 
select disk <number>
Copied!

  Select the partition to shrink

list partition 
select partition <number>
Copied!

  Shrink by 10 GB (=10,240 MB)

shrink desired=10240
Copied!

  Create new partition in unallocated space

create partition primary size=10240
Copied!

  Format new partition as NTFS with label

format fs=ntfs label="DATA" quick
Copied!

  Assign drive letter to new volume

assign letter=Y
Copied!