How do I create boot configurations on a drive without it.


  1. Posts : 6
    Win10
       #1

    How do I create boot configurations on a drive without it.


    I need someone to either point me to a tutorial that actually works, or explain what I must do.

    I need to boot this drive with win10 already installed. I pulled the drive out of a machine with a dual boot windows 10 on both drives. The other drive is where the boot configurations are stored. So, naturally this drive does not have any boot configurations. It does not even have a boot folder.

    I tried to manually create a bcd store with bcdedit, but clearly I'm not doing this right because I keep getting system device cannot be found errors.

    In the recovery environment command line, diskpart does not list this drive as 0, nor does it list the win10 volume as 0. I don't know if that matters.

    Anyway, there has got to be a process for this. Can someone please let me know what it is?

    The BIOS is set to legacy boot, MBR, not UEFI.
    There is no boot or recovery partition on this drive, since that was handled by the other drive. If there is a way without creating them, that would be preferable.

    Thank you.

    I know a few of you will want to tell me bootrec, but it's more than just that.
    Last edited by Tenbens; 25 Jul 2021 at 07:02.
      My Computer


  2. Posts : 42,953
    Win 10 Pro (22H2) (2nd PC is 22H2)
       #2

    I suppose you could try Macrium Reflect's Fixboot utility on its boot disk (creatable from its free version).

    Boot your PC from that boot disk with only your target system disk in place, run the utility and see if it helps.

    It could help if you also posted a screenshot of what partitions are on the disk using a 3rd party partition manager.
      My Computers


  3. Posts : 4,565
    several
       #3

    It depends on the partition style. Is the disk mbr or gpt ?
      My Computer


  4. Posts : 18,432
    Windows 11 Pro
       #4

    If the disk is MBR, the easiest way is going to be to set the Windows partition as active and write the boot files to it. I can post an example this afternoon when I get home from my trip.
      My Computer


  5. Posts : 6
    Win10
    Thread Starter
       #5

    NavyLCDR said:
    If the disk is MBR, the easiest way is going to be to set the Windows partition as active and write the boot files to it. I can post an example this afternoon when I get home from my trip.
    Thanks. I haven't even used gpt yet. MBR always seems easier to find help with, so I stick with MBR.
    Last edited by Tenbens; 25 Jul 2021 at 12:43.
      My Computer


  6. Posts : 18,432
    Windows 11 Pro
       #6

    OK, @Tenbens, here we go. I have a hard drive installed in the computer that contains only the Windows OS. It is not bootable. First I boot the computer from a regular Windows 10 installation USB flash drive (I created mine with Microsoft's Media Creation Tool). At the first screen where it asks for Language, Time and Currency and Keyboard, I press Shift + F10 to open a command prompt. You may need to press Shift + Fn + F10. In the command prompt, I run:

    Code:
    diskpart
    list volume
    How do I create boot configurations on a drive without it.-capture.jpg

    This shows me that the Windows partition on my hard drive is C: and my flash drive that I booted from is D:. Change the drive letters in the following commands to match what you have. Next I am going to make the Windows partition on the hard drive active and exit diskpart:

    Code:
    select volume c
    active
    exit
    How do I create boot configurations on a drive without it.-capture.jpg

    Next, I am going to run a command in the \boot\ folder of the USB flash drive that will make sure the Windows 10 bootloader is installed in the MBR of the hard drive and Windows partition on it. Don't forget to change drive letters to match yours.

    Code:
    d:\boot\bootsect /nt60 C: /force /mbr
    How do I create boot configurations on a drive without it.-capture.jpg

    Then I am going to run the command to write a BCD to the Windows partition to make it bootable:

    Code:
    bcdboot C:\Windows /s C: /f BIOS
    How do I create boot configurations on a drive without it.-capture.jpg

    Now, pull out the USB flash drive and run the final command to reboot the computer and if your BIOS is set correctly, it should boot from the hard drive:

    Code:
    C:\Windows\System32\shutdown /r /t 00
    Again, if C: is not your Windows drive, change the drive letters above! Note, you have to type the whole command above for shutdown. Good luck!
      My Computer


  7. Posts : 6
    Win10
    Thread Starter
       #7

    NavyLCDR said:
    OK, @Tenbens, here we go. I have a hard drive installed in the computer that contains only the Windows OS. It is not bootable. First I boot the computer from a regular Windows 10 installation USB flash drive (I created mine with Microsoft's Media Creation Tool). At the first screen where it asks for Language, Time and Currency and Keyboard, I press Shift + F10 to open a command prompt. You may need to press Shift + Fn + F10. In the command prompt, I run:

    Code:
    diskpart
    list volume
    How do I create boot configurations on a drive without it.-capture.jpg

    This shows me that the Windows partition on my hard drive is C: and my flash drive that I booted from is D:. Change the drive letters in the following commands to match what you have. Next I am going to make the Windows partition on the hard drive active and exit diskpart:

    Code:
    select volume c
    active
    exit
    How do I create boot configurations on a drive without it.-capture.jpg

    Next, I am going to run a command in the \boot\ folder of the USB flash drive that will make sure the Windows 10 bootloader is installed in the MBR of the hard drive and Windows partition on it. Don't forget to change drive letters to match yours.

    Code:
    d:\boot\bootsect /nt60 C: /force /mbr
    How do I create boot configurations on a drive without it.-capture.jpg

    Then I am going to run the command to write a BCD to the Windows partition to make it bootable:

    Code:
    bcdboot C:\Windows /s C: /f BIOS
    How do I create boot configurations on a drive without it.-capture.jpg

    Now, pull out the USB flash drive and run the final command to reboot the computer and if your BIOS is set correctly, it should boot from the hard drive:

    Code:
    C:\Windows\System32\shutdown /r /t 00
    Again, if C: is not your Windows drive, change the drive letters above! Note, you have to type the whole command above for shutdown. Good luck!
    Thanks a lot, this worked. I had bitlockered it, and during the course of trying to figure it out, I had deleted Windows\Boot. I had to place the hdd back with the original drive to disable bitlocker because it wouldn't let me do it from the installation and repair USB command line because it detected boot information. But, I had also established bitlocker from that other drive's OS, and though it froze in the decryption process, it eventually finished anyway when after doing that I booted up the repair and installation USB.

    Once the partition no longer registered to the system as a bitlockered partition, all I had to do then was xcopy everything in the Windows\Boot folder of the other system to the Windows\Boot of the system that I had finally gotten decrypted.

    Then I noticed I had a tab opened still from another one of your posts that demonstrated how to shrink a bitlockered partition to create a boot partition, to which I remembered, "oh right, I wanted to try that before trying to decrypt."
      My Computer


  8. Posts : 18,432
    Windows 11 Pro
       #8

    I've never used bitlocker so have no experience of knowledge how to work with an encrypted drive.
      My Computer


  9. Posts : 6
    Win10
    Thread Starter
       #9

    NavyLCDR said:
    I've never used bitlocker so have no experience of knowledge how to work with an encrypted drive.
    Move the Boot Loader from HDD to M2 disk drive

    NavyLCDR said:
    Since BitLocker is encrypting C: drive, you will have to shrink C: drive by 100 meg to make room for a separate System Partition. I'm going to show you the easy way, but you will end up with a non-standard disk layout because the system partition will end up after C: drive and the standard is for the system partition to be in front of C: drive. Open a Command Prompt (Admin) [Run as Administrator Command Prompt] and run:

    Code:
    diskpart
    select disk 2
    select part 1
    shrink desired=100
    create part pri
    format fs=NTFS
    active
    assign letter=z
    exit
    bcdboot C:\Windows /s Z: /f BIOS
    exit
    Then reboot your computer into BIOS setup and set the disk containing C: drive as the first boot priority.

    The method to make a more standard drive layout is to use a program such as Minitool Partition Wizard free to shrink C: drive by 100 meg from the front of the partition - not the back of the partition. Then create a 100 meg primary partition, format it, mark it as active, give it a drive letter, then run the bcdboot command to make it bootable.
    I might still try this, but I'm really just glad you gave me something that worked.
      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 18:54.
Find Us




Windows 10 Forums