Cloning drive and editing boot record to use new drive


  1. Posts : 45
    Windows 10 64-bit
       #1

    Cloning drive and editing boot record to use new drive


    I bought a new SSD today, my goal is to clone my current SSD to the new one and use both in my PC. (The new one is PCIe 4, it's way faster, want to use that as my boot drive and keep the old one just for general whatever else.)

    I cloned the drive using Clonezilla, I can access the files just fine, but I cannot for the life of me figure out how to actually get it to boot from the new drive. I assume the boot record on the new drive is still pointing to the old partitions, but I have no idea how to fix it to point to the new ones. I still have a working Windows installation, I can boot into my PC just fine, but telling my BIOS to boot into the new drive just loads the old drive's C: partition as the boot device rather than the new drive's partition.

    How do I update the boot record to use the new drive? I'm on Windows 10, build 19043.1466.
      My Computer


  2. Posts : 4,571
    several
       #2

    admin cmd prompt:

    bcdboot windowspartitionletter:\windows /s esp partition

    If the windows partition on the other disk is m: then the first part of the command is

    bcdboot m:\windows


    the second part can be either /s the letter of the esp partition on the other disk, or /s the device path of the esp partition on the other disk.

    you can copy the device path easily using free diskgenius then paste it into cmd prompt. Click on the esp partition to highlight it. Then rt click where it says Device Path and copy it to clipboard.

    https://www.diskgenius.com/download.php

    Cloning drive and editing boot record to use new drive-device-pathjpg.jpg

    so the full command could be adminstrator command prompt:

    bcdboot m:\windows /s \Device\HarddiskVolume6

    then press enter

    By default it will create the boot files for whatever your current boot mode is. So if you are currently booted in efi mode, it will create the efi boot files on the specified esp partition.

    If you were currently booted in bios mode and you wanted efi boot files for the specified esp partition, there is the /f switch

    bcdboot m:\windows /s \Device\HarddiskVolume6 /f uefi
    Last edited by SIW2; 18 Jan 2022 at 01:28.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 13:35.
Find Us




Windows 10 Forums