> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://kb.royalehosting.net/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to resize a Windows partition

## How to Extend a Windows Partition

When a Windows VPS storage is upgraded, the new space may not automatically be added to your existing C drive partition. This can happen if a hidden recovery partition is located between your C drive and the newly unallocated space. This guide provides a step-by-step process to extend your C drive by temporarily disabling and deleting the recovery partition, extending the C drive, and then recreating the recovery partition.

### Step 1: Disable the Windows Recovery Environment

1.  Open **Command Prompt** as an administrator.
2.  Type `reagentc /disable` and press Enter.

### Step 2: Delete the Recovery Partition

1.  In the same Command Prompt window, type `diskpart` and press Enter.
2.  Type `list disk` to view all your disks, then type `select disk <number>` (replace `<number>` with the disk that has the recovery partition).
3.  Type `list partition` to see all partitions. Identify the recovery partition; it is typically less than 1 GB.
4.  Type `select partition <number>` (replace `<number>` with the recovery partition's number).
5.  Type `detail partition` and copy the **Partition ID** and **Attributes**. You will need this information to recreate the partition later.
6.  Type `delete partition override` and press Enter to delete the recovery partition.

### Step 3: Extend the C Drive

1.  Open **Disk Management**. You should now see the unallocated space adjacent to your C drive.
2.  Right-click on the C drive and select "**Extend Volume**".
3.  Follow the wizard to add the unallocated space to your C drive.

### Step 4: Recreate and Configure the Recovery Partition

1.  Go back to **Disk Management**. Create a new 1 GB empty partition in the unallocated space that remains.
2.  Return to the Command Prompt and type `list partition`.
3.  Select the empty partition you just created by typing `select partition <number>`.
4.  Set the Partition ID by typing `set id=<partition_id>` using the ID you copied earlier.
5.  Set the attributes by typing `set attributes=<attributes>` using the attributes you copied earlier

### Step 5: Hide the Recovery Partition

1.  Type `list volume` to see a list of volumes.
2.  Note the drive letter of the recovery partition and then type `select volume <number>`.
3.  To hide the partition from File Explorer, type `remove letter=<drive_letter>`.
4.  Type `exit` to leave DiskPart.

### Step 6: Re-enable the Recovery Environment

1.  In the Command Prompt, type `reagentc /enable` and press Enter. The process is now complete.