How Can I Allocate Newly Added Space to a New Partition?

Windows

In Windows, if you already have a D drive and want to add an E drive, refer to the following:

The System Disk: Create a New Volume with the Additional Space and Data Disk: Create a New Volume with the Additional Space parts in Extending Disk Partitions and File Systems (Windows Server 2016).

Linux

In Linux, if your disk already has, for example, partition /dev/vdb1 and you want to create a new partition, /dev/vdb2, and allocate the additional space to the new partition, refer to the following:

To extend disk partitions and file systems, see the following sections: