Comment move the récupération partition on Windows 10?

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Comment move the récupération partition on Windows 10?

Message par ForumBot »

J'ai mis à jour to Windows 10 and a 450Mb Recovery partition was created on my disk.
Je voudrais extend the system partition but the Recovery partition is in the way.

Comment puis-je move the Recovery partition to the end of the disk volume without installing third party software?
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: Comment move the récupération partition on Windows 10?

Message par ForumBot »

According to MS's documentation, [capture-and-apply-windows-system-and-recovery-partitions](https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/capture-and-apply-windows-system-and-recovery-partitions), the recovery partition can be captured and applied to a new partition. J'ai made it to work on my windows 10 PC.

**Warning 1: You must know what la commande suivantes do before you execute them. Vérifiez le link above and MS's documentation for [diskpart](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/diskpart), [dism](https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-image-management-command-line-options-s14) and [reagentc](https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/reagentc-command-line-options).**

**Warning 2: Check disk numbers, partition numbers and volume letters carefully before executing commands.**

- Use `diskpart` to find current recovery partition and assign a driver letter(eg. `O`) to it:

```
DISKPART> list disk
DISKPART> select disk
DISKPART> list partition
DISKPART> select partition
DISKPART> assign letter=O

```

- Create an image file from current recovery partition:

```
Dism /Capture-Image /ImageFile:C:\recovery-partition.wim /CaptureDir:O:\ /Name:"Recovery"

```

- Apply the created image file to another partition(eg. `N`) that will become the new recovery partition:

```
Dism /Apply-Image /ImageFile:C:\recovery-partition.wim /Index:1 /ApplyDir:N:\

```

- Register the location of the recovery tools:

```
reagentc /disable
reagentc /setreimage /path N:\Recovery\WindowsRE
reagentc /enable

```

- Use `diskpart` to hide the recovery partition:

- For UEFI:

```
DISKPART> select volume N
DISKPART> set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
DISKPART> gpt attributes=0x8000000000000001
DISKPART> remove

```

- For BIOS:

```
DISKPART> select volume N
DISKPART> set id=27
DISKPART> remove

```

- Reboot the computer, now the new recovery partition should be working

- (Optional) Delete the old recovery partition:

```
DISKPART> select volume O
DISKPART> delete partition override

```

- (Optional) Vérifiez si the recovery partition is working:

- Show the current status:

```
reagentc /info

```

- Specifies that Windows RE starts automatically the next time the system starts:

```
reagentc /boottore

```

- Reboot the computer and do your stuff in Windows RE (eg. enter CMD and run some tools)
Répondre

Revenir à « Windows 10 »