Kovalevy

How to mirror Boot Hard Drive for UEFI on Windows 10

How to mirror Boot Hard Drive for UEFI on Windows 10

This guide walks you through steps which will help you mirror Boot Hard drive on Windows (Legacy or UEFI). It is useful when the primary hard drive fails and will help you boot from the secondary drive. Just before we go ahead, and talk about the steps, a few conditions should be fulfilled.

Minimum requirement to mirror Boot Hard Drive on Windows 10

Mirror Boot Hard Drive for UEFI partition

Assuming you are clear with the type of drive, let's understand how to identify if you own a Legacy or UEFI based system. While the Legacy system uses MBR Partition Style, a UEFI system uses GPT Partition style.

Find Partition Style - MBR or GPT

Type diskmgmt.msc in Start search box and hit the Enter key to launch Disk Management.

Right-click on Disk 0 and select Properties.

Switch to Volumes tab, and note the partition style

In Volumes tab, check the Partition Style of the volume.

If the secondary disk has not been set up, connect it, and then initialize the hard drive. Make sure to use MBR as partition style when initializing it. It will make sure both the disk are consistent. Also, also create allocated disk, and assign space which is the same or more than the C drive of Disk 0.

If you cannot initialize the hard drive, check on how you can do it for standard disk and for USB 3.0 drives.

Next, follow the part of tutorial based on your Partition Style.

Mirror Windows 10 Boot Drive on UEFI or GPT Partition Style

To mirror Windows 10 Boot drive which is on a UEFI system, it takes three steps.  You need first to mirror the recovery partition, then the EFI system partition, and then the operating system partition. Make sure you completely understand the disk management commands before we go ahead.

Open Command Prompt, and then type diskpart command, and hit Enter. Diskpart will open in a new prompt for the rest of the operation.

There are two assumptions here.

Follow these steps to mirror the Recovery Partition.

1] Find the TYPE id and the size of the partition of Disk 0

Run the following command in an elevated Command Prompt, one after the other until you see the partition details.

select disk 0 select partition 1 detail partition

2] Convert the Secondary disk or DISK 1 to GPT  & Copy content.

Here we have to make sure to convert the drive into GPT partition style, create Recovery Partition of the same size, and then copy the content of Disk 0 partition to Disk 1.

Create a primary recovery partition size-

select disk 1 convert gpt select partition 1 delete partition override create the same size=100

Format and Set ID for Disk 1 primary recovery partition-

format fs=ntfs quick label=Recovery select partition 1 set id=DE94BBA4-06D1-4D40-A16A-BFD50179D6AC

The size and ID should be the same as the DISK 0

Assign the letter for the primary recovery partition-

select disk 0 select partition 1 assign letter=q select disk 1 select partition 1 assign letter=z

Exit after the operation is complete.

Lastly, you need to copy the content of the primary recovery partition of Disk 0 to the primary recovery partition on disk 1. Use the following command-

robocopy.exe q:\ z:\ * /e /copyall /dcopy:t /xd "System Volume Information"

Assuming Q is the letter of active partition on Disk 1, and Z is on Disk 2.

Steps to mirror the EFI System Partition

1] Find the size of System & Reserved Partition in Disk 0

In the dispart prompt, type select disk 0, and then type list partition. It will show all the partition along with the size. Note down the size of both System, and the Reserved Partition.

Let's assume the System or EFI size is 99 MB and the reserved partition size as 16 MB

2] Create the System and Reserved partition on Disk 1

select disk 1 create partition EFI size=99 format fs=fat32 quick assign letter= Y create partition MSR size=16

3] Copy file from DISK 0 to Disk 1

Since we need to copy the file from System and Reserved partition of Disk 0 to Disk 1, we will have to assign the letters on Disk 0 as well. First, use select disk 0,  select partition 2, and then assign letter=S command in the CMD. Next, use the robocopy command.

robocopy.exe S:\ Y:\ * /e /copyall /dcopy:t /xf BCD.* /xd "System Volume Information"

Steps to Mirror the OS  Partition on Windows 10

Now since both the partition are the same in all parameters, its time to open the Disk Management UI, and perform the final mirror.

  1. Right click on the Disk 0, and select Convert to Dynamic Disk.
  2. It will open the converter, and here you can choose both Disk 0 and Disk 1. Click ok.
  3. Finally right click at C drive/volume on Disk 0 and select Add Mirror
  4. Select Disk 0, and then decide on the space you want to allocate. It has to be equal to the size of the C drive.
  5. Follow the wizard until its complete.

When it comes to GPT, mirroring is rather complicated compared to how it is on Legacy Based Device which comes next.

Mirror Windows 10 Boot Drive on Legacy Based Systems or MBR Partition Style

This post will show you how you can create mirrored Windows 10 Boot Drive on Legacy Based Systems. During the process, if notice that the Add Mirror option is greyed out, it means that the unallocated space on the secondary drive is smaller than the boot drive. You can shrink the size to make it equal.

Do remember that mirroring makes sure that your system keeps running if your first partition fails. It is not a backup solution.

Parhaat Linux-peliohjaimen kartoitussovellukset
Jos haluat pelata pelejä Linuxissa peliohjaimella tyypillisen näppäimistön ja hiiren syöttöjärjestelmän sijaan, on sinulle hyödyllisiä sovelluksia. Mo...
Hyödyllisiä työkaluja Linux-pelaajille
Jos haluat pelata pelejä Linuxissa, on todennäköistä, että olet käyttänyt sovelluksia ja apuohjelmia, kuten Wine, Lutris ja OBS Studio, pelikokemuksen...
HD Remastered Games for Linux that Never had a Linux Release Earlier
Many game developers and publishers are coming up with HD remaster of old games to extend the life of franchise, please fans requesting compatibility ...