Extend Volume Blocked by a Recovery Partition on Windows 10

Once I noticed that one of many check digital machines was working out of free house on system drive C:. I elevated the disk measurement within the digital machine settings and switched to the visitor OS (Windows 10) to increase the dimensions of the system partition utilizing the unallocated house. When I opened the Disk Management console (diskmgmt.msc), I seen that there have been two restoration partitions on the drive. And the unallocated house was appeared after the second restoration partition (labeled as Windows RE). On some motive the restoration partition is positioned after the primary partition (C:) and doesn’t permit to increase the first quantity by utilizing the unallocated house.

In this text we are going to take into account two other ways to delete and recreate the restoration partition for EFI and BIOS computer systems. So, previous to continuing the steps described under, discover out what structure is used on your laptop. Also it’s strongly really helpful to backup (or make a snapshot ) your crucial information earlier than making an attempt to make modifications to the partition desk.

Contents:

  • How to Move Recovery and Extend System Partition on UEFI-based Computer?
  • How to Delete the Recovery Partition and Move the BCD on BIOS-based PC?

How to Move Recovery and Extend System Partition on UEFI-based Computer?

On my digital machine, Windows 10 is put in in UEFI mode (Partition type: GPT).

check the partition table (GPT or MBR)

As you possibly can see on the screenshot under, the “Extend Volume” button is inactive (grey). You can lengthen the partition utilizing the Windows built-in instruments if it has an unallocated house to the proper of it (Windows 10 can’t lengthen major partition to the proper into unallocated house). In my case, I can’t lengthen the C: drive as a result of it’s blocked by the restoration partition (Windows RE). So, previous to extending the dimensions of the system partition, I must delete the restoration partition.

Extend Volume option is grayed out on WIndows 10

On the screenshot, you possibly can see that there are two restoration partitions (Recovery and Windows RE). To perceive, which ones is used by Windows as an lively restoration partition, it’s essential to assign the drive letters to your partitions. For instance, you possibly can assign a drive letters E: and R: utilizing the the Disk Management or Diskpart.exe: choose disk zero -> choose half 1 -> assign letter r: . To examine the lively restoration partition, run the command:

bcdedit /enum all

Please take note of the next sections:

  1. Windows Boot Manager (it signifies the partition the place the BCD bootloader is positioned). In my case, the bootloader is on the EFI partition:
    Windows Boot Manager
    --------------------
    identifier 
    machine partition=DeviceHarddiskVolume2
    path EFIMicrosoftBootbootmgfw.efi
    description Windows Boot Manager
    locale en-US
    inherit 
    default 
    resumeobject 
    displayorder 
    toolsdisplayorder 
    timeout 30

    check Windows Boot Manager configuration

  2. Now have a look at the values within the Windows Boot Loader part. The Winre.wim picture file (restoration setting) is positioned on the second partition with the Windows RE quantity label.
    Windows Boot Loader
    -------------------
    identifier 
    machine ramdisk=[E:]RecoveryWindowsREWinre.wim,
    path windowssystem32winload.efi
    description Windows RE
    locale en-us
    inherit 
    displaymessage Windows RE
    osdevice ramdisk=[E:]RecoveryWindowsREWinre.wim,
    systemroot home windows
    nx DecideIn
    bootmenupolicy Standard
    winpe Yes

To increase the dimensions of the primary Windows quantity, we must delete the restoration partition to the proper of it, lengthen the amount and recreate the restoration partition.

Instead of re-creating the restoration partition, typically it is going to be sufficient to maneuver the restoration setting recordsdata to the drive C:. Then it is possible for you to to fully refuse from utilizing a separate 500MB WinRE partition. The restoration setting file will then be saved on the partition the place Windows is put in.

To copy the Winre.wim file to the system quantity and set new the WinRE.wim file location, run these instructions:

reagentc /disable
md c:RecoveryWinRE
xcopy e:RecoveryWindowsREWinre.wim c:RecoveryWinRE /h
reagentc /setreimage /path c:RecoveryWinRE /goal C:Windows
reagentc /allow

If you attempt to delete the restoration partition from the Disk Management GUI  by clicking Delete Volume (typically the disk properties are usually not accessible in any respect), the next error will seem:

Delete recovery partition on windows 10

Virtual Disk Manager

Cannot delete a protected partition with out the drive protected parameter set.

Cannot delete a protected partition without the force protected parameter set.

You can delete such a protected partition solely utilizing the diskpart instrument. Open the elevated command immediate and run the diskpart command. Select the partition you need to delete (word the outcomes of your instructions, because the numbers of disks and partitions could range).

DISKPART> rescan
DISKPART> listing disk
DISKPART> choose disk zero
DISKPART> listing half
DISKPART> choose half 5
DISKPART> delete partition override

DiskHalf efficiently deleted the chosen partition.

DISKPART> Rescan

The override parameter permits diskpart to delete any partition no matter its kind (whether or not it’s an lively, system, or boot partition).

DISKPART> delete partition override”  />						</p>
<p>Now you possibly can open the Disk Management and lengthen the system partition (the <strong>Extend Volume</strong> choice is now accessible). If you need to recreate the restoration partition (it’s endorsed to put it aside or transfer it to the system partition as described above), depart 500MB of unallocated house on your drive. In the screenshot under, I’m extending my Windows partition by 1.5GB and leaving 500MB on the finish of the drive.</p>
<div class=If there are every other vendor restoration partitions on the disk that forestall you from extending the primary quantity, examine the article “”.

Extend Windows 10 system partition with Disk Management

After extending the primary partition, I’ve 500MB free house left for WinRE restoration partition.

unallocated space is to the right of primary windows 10 partition

Windows detects the restoration partition by the particular labels: GUID — de94bba4-06d1-4d40-a16a-bfd50179d6ac and the GPT attribute 0x8000000000000001.

Let’s create a new partition and assign these attributes to it:

DISKPART> create half major
DISKPART> format fast fs=ntfs label="WinRE"
DISKPART> assign letter="R"
DISKPART> set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"

DiskHalf efficiently set the partition ID

DISKPART> gpt attributes=0x8000000000000001

DiskHalf efficiently assigned the attributes to the chosen GPT partition.

Exit

diskpart assigning recovery partition attributes

Then copy WinRE recordsdata from the Windows 10 set up disk (picture) to your new restoration partition.

Mount the set up.wim file out of your Windows 10 set up ISO picture and extract the WinRE file (Winre.wim) from it:

md C:WinISO
md C:WinISOmount
dism /mount-wim /wimfile:F:sourcesinstall.wim /index:1 /mountdir:C:WinISOmount /readonly
md R:RecoveryWinRE
copy C:WinISOmountWindowsSystem32RecoveryWinre.wim R:RecoveryWinRE
dism /unmount-wim /mountdir:C:WinISOmount /discard

Then simply transfer the WinRE file to the restoration partition and replace the bootloader configuration:

reagentc /disable
reagentc /setreimage /path R:RecoveryWinRE /goal C:Windows
reagentc /allow

copy Winre.wim file and enable WInRE

So, we’ve recreated the restoration partition and registered a new path to the WinRE picture. If you will have any Windows boot issues, your restoration setting will boot mechanically.

How to Delete the Recovery Partition and Move the BCD on BIOS-based PC?

If your laptop relies on BIOS (not UEFI), you possibly can transfer the Windows boot supervisor (BCD) and the restoration setting recordsdata to the C: quantity previous to deleting the restoration partition as follows.

First of all, it’s a must to transfer BCD recordsdata from drive E: to drive C: (I’ve assigned this drive letter to my restoration partition):

Reg unload HKLMBCD00000000
robocopy e: c: bootmgr
robocopy e:boot c:boot /s
bcdedit /retailer c:bootbcd /set machine partition=C:
bcdedit /retailer c:bootbcd /set machine partition=C:

In case of any BCD issues, you possibly can rebuild the BCD file and Master Boot Record (MBR) as described on this .

Then transfer the restoration wim picture:

reagentc /disable
md c:RecoveryWinRE
xcopy e:RecoveryWindowsREWinre.wim c:RecoveryWinRE /h
reagentc /setreimage /path c:RecoveryWinRE /goal C:Windows
reagentc /allow

Now you possibly can take away the restoration partition utilizing diskpart (as proven above) and lengthen your system partition efficiently.

Check Also

Transferring/Seizing FSMO Roles to Another Domain Controller

In this text we’ll think about how to discover area controllers with FSMO roles in …

Leave a Reply

Your email address will not be published. Required fields are marked *