System migration from MBR to UEFI

Page 3 of 3 FirstFirst 123

  1. Posts : 138
    Windows 7 Ultimate x86
    Thread Starter
       #21

    Vineet Garg said:
    Greetings Vineet Garg. Thanks for the link.

    1. Were you able to get bcdboot working under W7?
    Code:
    bcdboot c:\windows /s s: /f UEFI
    A number of users commented this could not be executed under W7. Is this true?

    2. Did you get a chance to try the gptgen tool mentioned in the post? How reliable is it?
    gptgen download | SourceForge.net

    Many thanks and best regards,
      My Computer


  2. Posts : 565
    Windows 7 Ultimate x32 With Sp1 + Vista Ultimate x32 with Sp1 & Sp2 !!
       #22

    @goopy : Greets,

    1.
    Did you get a chance to try the gptgen tool mentioned in the post?
    Sorry, Can't say anything, Its just a link for me as for you.

    2.
    Were you able to get bcdboot working under W7?
    Code:
    bcdboot c:\windows /s s: /f UEFI
    (i) I assume that the Main OS Partition is already applied to the disk & It has the BCD-Template file i.e. %WINDIR%\System32\Config\BCD-Template file. For me its D:\Windows\System32\Config\BCD-Template file. Please check if its there. It seems bcdboot looks for it.

    (ii) It will definitely work. Both bcdboot c:\windows /s s: & bcdboot c:\windows /s s: /f UEFI will work.

    3. Why you want to run bcdboot ? Are you not able to boot into the OS ? or you have recreated the EFI partition & want to add boot data to it ? or you want to change the disk the boot data & entry is picked from ?

    Let me know.

    Thanks & Regards. ...
    Last edited by Vineet Garg; 17 Dec 2019 at 02:07.
      My Computer


  3. Posts : 138
    Windows 7 Ultimate x86
    Thread Starter
       #23

    Vineet Garg said:
    ....
    (ii) It will definitely work. Both bcdboot c:\windows /s s: & bcdboot c:\windows /s s: /f UEFI will work.
    ...
    Greetings Vineet Garg.
    So you managed to run bcdboot successfully in W7?
      My Computer


  4. Posts : 565
    Windows 7 Ultimate x32 With Sp1 + Vista Ultimate x32 with Sp1 & Sp2 !!
       #24

    goopy said:
    So you managed to run bcdboot successfully in W7?
    @goopy :

    1. Yes it worked for me. I booted into the Win 7 SP1 x64 UEFI+GPT Pen drive Installation Media, Launched Command Prompt ( Repair Your Computer ) from there & Ran bcdboot c:\windows /s s: ( for me : bcdboot d:\windows /s z: )

    2. I assume that you are not booted in the Win 7 disk ( where you are planning the changes ) & trying that from there!

    3.You can also do that from the Win 10 ( already installed on your system on another disk!) supplying correct Disk no., etc. ( preferably checked from Command Prompt )

    Thanks & Regards. ...
    Last edited by Vineet Garg; 24 Nov 2019 at 10:08.
      My Computer


  5. Posts : 138
    Windows 7 Ultimate x86
    Thread Starter
       #25

    Vineet Garg said:
    .....
    1.Yes it worked for me. I booted into the Win 7 SP1 x64 UEFI+GPT Pen drive Installation Media, Launched Command Prompt ( Repair Your Computer ) from there & Ran bcdboot c:\windows /s s: ( for me : bcdboot d:\windows /s z: ). ...
    Greetings Vineet Garg.
    Just run bcdboot from W7, not form installation media.
    You can make an empty EFI partition on a blank GPT disk and assign letter S:. Then run the following and see if it works.
    Code:
    bcdboot c:\windows /s s:
    Many thanks and best regards,
      My Computer


  6. Posts : 565
    Windows 7 Ultimate x32 With Sp1 + Vista Ultimate x32 with Sp1 & Sp2 !!
       #26

    @goopy: Greets,

    1.
    Just run bcdboot from W7, not from installation media.
    Anyway you run, The idea is to sit outside of the disk, you want to apply changes on! Not that booted into the same disk & trying to apply the changes on it.

    2.
    You can make an empty EFI partition on a blank GPT disk and assign letter S:
    (i) I agree you can assign S: but the thing is to make sure that EFI System Partition is assigned a drive letter. It will not matter whether you assign S: or Z:
    (ii) Once the boot data is kept on it & all is well, It should drop the drive letter on the next boot or has to be made so manually.
    (iii)but... what do you mean by blank GPT disk ? I assume that the GPT disk has the OS partition! Otherwise you will be adding boot menu to the empty GPT drive for an OS partition which is existing on some other disk!

    3.
    Then run the following and see if it works. bcdboot c:\windows /s s:
    I assume that c: has been replaced by the proper volume letter of the OS in concern. Ideally, c: would be referring to the OS, you are booted in.

    Thanks & Regards. ...
    Last edited by Vineet Garg; 24 Nov 2019 at 09:45.
      My Computer


  7. Posts : 565
    Windows 7 Ultimate x32 With Sp1 + Vista Ultimate x32 with Sp1 & Sp2 !!
       #27

    @goopy : Greets,

    It's getting very difficult to help you without Disks view from MiniTool Partition Wizard. I hope you understand.

    Thanks & Regards. ...
      My Computer


  8. Posts : 138
    Windows 7 Ultimate x86
    Thread Starter
       #28

    Greetings.

    MBR/GPT conversion: a summary

    1. In place conversion
    There are 2 tools that claim to perform in place conversion of MBR system to UEFI, mbr2gpt and gptgen. However, due to lack of endorsements from forum members, it is suggested the safer method of system migration to a new drive be used.


    2. System migration
    The idea is simple: prepare the desired partition layout on the target drive, restore the system image to the target partition, and add a boot entry.

    (2a) Here are two MS guides to help you with MBR/GPT partition layout creation on a blank drive. In this example, the target system partition is assigned the letter S, and target OS partition W.

    BIOS/MBR-based hard drive partitions | Microsoft Docs
    UEFI/GPT-based hard drive partitions | Microsoft Docs

    (2b) Use the tool of your choice to backup the source OS partition, and restore the image to the blank W partition. Remember not to enable any option to restore boot entry.

    (2c) Run the following using elevated command prompt:
    Code:
    bcdboot W:\Windows /s S:
    The W7 version of bcdboot tool is deprecated so you'll need the W10 version. It can be found in the latest 1909 ISO.

    3. DISM++
    If playing with bcdboot is not your cup of tea, DISM++ is a versatile tool that combines system image backup/restoration/boot entry creation, and more, in a single package. Highly recommended.

    4. Anything else?
    Well, there's no Recovery Environment on the new drive. SIW is the man to go to if you need to find out more. Or better still, if you know how it is done, your contribution here would be much appreciated.

    Many thanks and best regards,
      My Computer


  9. Posts : 565
    Windows 7 Ultimate x32 With Sp1 + Vista Ultimate x32 with Sp1 & Sp2 !!
       #29

    @goopy
    Greets,
    Thanks for the wonderful write up!
    Glad to know that your problems are resolved.
    I don't know how to create / write Recovery Environment to an internal disk. So, i can't help you with that.

    To All

    There are somethings to mention :

    1. The desired GPT partition layout for win 7 & 8 is mentioned here

    2. GPT partition layout for Win 7 & 8 :

    (i) The default config is :

    System migration from MBR to UEFI-gpt-default-config.png

    It is the configuration that is made / achieved by a normal installation, begun on an unallocated GPT drive.

    (ii) but the recommended is :

    System migration from MBR to UEFI-gpt-recommended-config.png

    It is supplied by OEMs & needs some extra steps to be made so.

    3. To avoid any problems, the drive letter assigned to EFI partition, is dropped automatically after Boot data is written to it. If not, it should be done so manually.

    4. If one is not easy with command line options,

    (i) he can use "DiskGenius" to make EFI, MSR & OS partitions. It can create EFI and/ or MSR partitions straight away!

    (ii) After making the partitions, one can apply the disk image of C: ( the main OS partition ) to the planned GPT OS partition. I like to use Macrium Reflect for that.

    (iii) Then he can boot into a Win 7/8/8.1 UEFI + GPT Installation / System repair disk & run Startup Repair consecutively for three times. It will automatically write the boot data to EFI partition & make the OS bootable.

    5. Well, there's no Recovery Environment on the new drive.

    Thanks for the info. I suppose you are talking about MBR's OEM Recovery Partition. It will need some extra steps.

    Thanks & Regards. ...
    Last edited by Vineet Garg; 17 Dec 2019 at 02:44.
      My Computer


 
Page 3 of 3 FirstFirst 123

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

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