How do I restore w10 bootloader? dual boot with ubuntu on separate hdd Solved

Page 1 of 3 123 LastLast

  1. Posts : 20
    Windows 10 64 bit Pro
       28 Dec 2016 #1

    How do I restore w10 bootloader? dual boot with ubuntu on separate hdd

    So I am looking to REMOVE ubuntu, but right now, my system uses Grub to boot into windows or ubuntu.

    Ubuntu is installed on a hdd, w10 installed on a ssd. I BELIEVE that they are both efi installs (cannot remember which way I did it) because both disks are GPT format. On the other hand, if I select UEFI only for boot options in my bios, only "ubuntu" boot device is available on the F12 screen.

    I've tried the w10 repair usb, it was not able to auto repair it, I've also tried:
    bootrec /FixMbr
    bootrec /FixBoot
    bootrec /ScanOs
    bootrec /RebuildBcd

    And the scanOS returns with "0 windows installations found" and rebuildBCD fails bc of this.

    I've also tried easyBCD and clicked "write MBR" but all it did was create duplicate "ubuntu" boot devices in the f12 screen.

    The only way my ssd shows up as a boot device is if I have legacy mode on in the bios, then it shows up as: "P0 samsung 840..." and fails to boot into windows, can't remember the error code but I've seen it a lot for this issue on forums.

    I have two other threads started on r/ubuntu and r/techsupport I've also attached an image below of my disk manager in w10 if it's of any help:

    Click image for larger version. 

Name:	rTjefeu.jpg 
Views:	81 
Size:	109.8 KB 
ID:	115040
      My ComputerSystem Spec

  2.    28 Dec 2016 #2

    Will Windows 10 boot up correctly, if you disable disk 0 (remove the data cable or disable it in the bios)

    If not, then:

    - boot the computer using the Windows 10 installation media
    - press SHIFT+F10 to bring up the command prompt
    - run the following command

    bcdboot c:\windows

    bcdboot <source>

    source - Specifies the location of the Windows directory to use as the source for copying boot files.

    UEFI mode: BCDBoot copies the boot files from the Windows 10 partition to the EFI System partition and creates the Boot Configuration Data (BCD) store in the same partition.

    EDIT: Look at post #24
    Last edited by Avocado; 04 Jan 2017 at 02:52.
      My ComputerSystem Spec

  3. Posts : 20
    Windows 10 64 bit Pro
    Thread Starter
       28 Dec 2016 #3

    I have unplugged that drive and the "ubuntu" boot device is still the only one that will show up. When I try to boot from that, it brings up a black screen with white text saying something about limited input to grub. And that's as far as I can get.

    I will try your suggestion tonight and see if it works.

    Side note, I'm looking to do a VFIO passthrough in linux. Basically I will install linux then create a VM within that and run win10 on that which I will use for playing games. my question to you is, if I were to resolve the problem at hand and create a system image of that ssd that has only windows on it, could I wipe that ssd in the future if need be and restore my windows 10 state with that sys image, with all documents and programs, and bootloader intact?
      My ComputerSystem Spec

  4. Posts : 20
    Windows 10 64 bit Pro
    Thread Starter
       28 Dec 2016 #4

    Avocado said: View Post
    bcdboot <source> (Specifies the location of the Windows directory to use as the source for copying boot files.)

    Will this still work even though when I run bootsec /scanOS the cmd prompt says "0 windows installations detected" ?
      My ComputerSystem Spec

  5.    28 Dec 2016 #5

    More info:

    bootrec /fixmbr (writes a MBR to the system partition but does not overwrite the existing partition table)
    bootrec /fixboot (writes a new boot sector to the system partition)

    Note that bootrec /fixmbr and bootrec /fixboot commands are not needed at all, if the hard drive has a GPT partition style. UEFI mode do not use boot sectors on the hard drive and do not require active partition to be set.

    bootrec /rebuildbcd

    The bootrec /rebuildbcd command will search for Windows installations not included in the Boot Configuration Data (BCD) and then ask you if you'd like to add one or more to it.

    BCDBoot Command-Line Options

    "Repair the system partition. If the system partition has been corrupted, you can use BCDBoot to recreate the system partition files by using new copies of these files from the Windows partition."
      My ComputerSystem Spec

  6.    28 Dec 2016 #6

    EDIT: Look at post #24
    Last edited by Avocado; 03 Jan 2017 at 06:42.
      My ComputerSystem Spec

  7. Posts : 20
    Windows 10 64 bit Pro
    Thread Starter
       28 Dec 2016 #7

    Thank you very much Avodcado. I will try all of this tonight after work.
      My ComputerSystem Spec

  8. Posts : 20
    Windows 10 64 bit Pro
    Thread Starter
       28 Dec 2016 #8

    Avocado said: View Post

    Type in:

    list disk
    select disk 0 #(zero) Yours maybe different
    list volume #look for the EFI SYSTEM partition FAT32 hidden usually 100MB (mine is Volume 3)
    select volume 3 #whatever number yours is, maybe different change accordingly
    format fs=fat32 quick label=System
    list volume #look to see which Volume is Windows (mine is drive C) Remember it!

    At the command prompt type in bcdboot C:\Windows #Where your Windows drive was.

    Type exit again.

    Click on Turn off computer, remove USB and restart.
    Did this and after the bcdboot command I got "failure when attempting to copy boot files"
      My ComputerSystem Spec

  9.    28 Dec 2016 #9

    Computer wouldn't boot after cloning to SSD

    See the above thread. I'm thinking you don't have the partition type for what you think is the EFI System Partition set correctly. Under partition type or volume info you should see listed as System, not Hidden:

    My EFI System Partition is Volume #4 which is Partition #2 on my Drive #0:

    Microsoft Windows [Version 10.0.14393]
    (c) 2016 Microsoft Corporation. All rights reserved.
    Microsoft DiskPart version 10.0.14393.0
    Copyright (C) 1999-2013 Microsoft Corporation.
    On computer: MAIN-DESKTOP
    DISKPART> select disk 0
    Disk 0 is now the selected disk.
    DISKPART> list volume
      Volume ###  Ltr  Label        Fs     Type        Size     Status     Info
      ----------  ---  -----------  -----  ----------  -------  ---------  --------
      Volume 0     E                       DVD-ROM         0 B  No Media
      Volume 1     F                       DVD-ROM         0 B  No Media
      Volume 2     C   WIN10PRO     NTFS   Partition    111 GB  Healthy    Boot
      Volume 3         Recovery     NTFS   Partition    450 MB  Healthy    Hidden
      Volume 4                      FAT32  Partition    100 MB  Healthy    System
      Volume 5     D   Storage      NTFS   Partition    926 GB  Healthy
      Volume 6         RECOVERY     FAT32  Partition   5128 MB  Healthy
    DISKPART> list part
      Partition ###  Type              Size     Offset
      -------------  ----------------  -------  -------
      Partition 1    Recovery           450 MB  1024 KB
      Partition 2    System             100 MB   451 MB
      Partition 3    Reserved            16 MB   551 MB
      Partition 4    Primary            111 GB   567 MB
      My ComputerSystem Spec

  10. Posts : 20
    Windows 10 64 bit Pro
    Thread Starter
       28 Dec 2016 #10

    Did as instructed in that link. When I boot up it shows a black screen with "reboot and select proper boot device or insert boost media in selected boot device and press a key

    Any ideas?
      My ComputerSystem Spec

Page 1 of 3 123 LastLast

Related Threads
I used to use Windows for my work and It used to boot very fast. However, after dual boot with Ubuntu, my windows boot time became very long, it was annoying. I deleted Ubuntu, FORMATED ALL DRIVE, devided partitions, reinstalled Windows but it is...
Ubuntu Dual Boot in Installation and Upgrade
I am using the non-metro Windows 10 boot loader to manage a dual boot setup (legacy BIOS) with Ubuntu. Generally, everything works fine. However, sometimes when I perform an update in Ubuntu, grub overwrites the Windows MBR. Then I have to use...
Dual boot Windows 10 and Ubuntu 16.04? in Installation and Upgrade
Is it possible?
Recently I played around with dual booting Linux Mint on my system. I decided that I would delete it for the present as I have other things to focus on. However, after deleting partitions and fixing my MBR to only boot windows my UEFI BIOS still...
I set up Ubuntu in dual boot with Win 10 and tried to replace it with Mint, which failed at installation. I then had a "grub rescue" prompt regardless of what I tried. I fixed the mbr by booting from Win 7 .iso and running Bootrec /fixmbr. I...
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 06:19.
Find Us