Solved How to set up the dual boot after the installation

Hi Everyone!!
I did thing incorrectly when I installed my Freebsd on my laptop and so I can not boot W10 anymore.... I am not missing W10 but I still need it for some specific tasks.

I've read some threads, very interesting but I am a bit confused and I don't want to crash my BSD installation by doing wrong boot configurations.
Could you help me to set up a dual boot ?

I have 1 drive, some details about my system and setup:

root@bb:~ # gpart show
=> 63 500118129 ada0 MBR (238G)
63 1985 - free - (993K)
2048 1185792 1 ntfs (579M)
1187840 109807616 2 ntfs (52G)
110995456 389122736 3 freebsd [active] (186G)

=> 0 389122736 ada0s3 BSD (186G)
0 381681664 1 freebsd-ufs (182G)
381681664 7441072 2 freebsd-swap (3.5G)

root@bb:~ # uname -a
12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC amd64

Thanks for the support!!
 
I don't have a Windows installation DVD/USB, hence:
  • I have to write this instruction from top of my head.
  • I suppose:
    • You had a working windows machine
    • You installed FreeBSD.
    • Windows boot destroyed by FreeBSD instllation
    • Now, windows don't show up.
    • Thus, when you power on machine, you only have/get a FreeBSD boot menu.
  • Therefore adjust it to your situation.
INSTRUCTIONS:
  1. Boot from windows DVD
  2. Go to Repair menu
  3. Select advanced or something like that ...
  4. Select command prompt
  5. Find the drive letter of your windows Installation DVD (NOT your windows partition in hard disk), by typing different drive letters and executing DIR command, until you find it. e.g.:
    Code:
    > C:> DIR
    .
    .
    .
    > D:
    > DIR
    boot
    .
    ..

  6. Suppose, G: is your windows DVD (it contains boot dir)
    G:\boot
  7. cd to G:\boot by issuing CD G:\boot command:
    Code:
    > G:> DIR
    boot
    .
    .
    .
    > CD G:\boot

  8. Run following commands:
    bootrec /FixMbr
    bootrec /FixBoot
    bootrec /RebuildBcd
    bootsect /nt60 all /force
  9. You should not receive any error message. If so, repeat latter command again -- probably in different order (it won't happen!)
  10. Exit the Command Prompt and Reboot/Shutdown windows Installation DVD.
  11. Now you should be able to boot the windows machine.
  12. At this point, there's no dual boot menu. But you didn't lost your FreeBSD partition/installation.
  13. Login to windows, open browser, search for EasyBCD program, download, install and run it.
  14. You can review your partitions in EasyBCD.
  15. Add a FreeBSD entry:
    1. It have to be the BSD/FreeBSD type, and
    2. choose the right FreeBSD boot partition (e.g. 3rd partition).
  16. Press Save button or something similar.
  17. Setup is complete. Done.
  18. Reboot
  19. Now, you have a windows style dual boot menu (Windows/FreeBSD)
  20. Choose FreeBSD.
  21. You will be direct to FreeBSD boot menu (the default one, with Daemon logo)
  22. Done.
 
I don't have a Windows installation DVD/USB, hence:
  • I have to write this instruction from top of my head.
  • I suppose:
    • You had a working windows machine
    • You installed FreeBSD.
    • Windows boot destroyed by FreeBSD instllation
    • Now, windows don't show up.
    • Thus, when you power on machine, you only have/get a FreeBSD boot menu.
  • Therefore adjust it to your situation.
INSTRUCTIONS:
  1. Boot from windows DVD
  2. Go to Repair menu
  3. Select advanced or something like that ...
  4. Select command prompt
  5. Find the drive letter of your windows Installation DVD (NOT your windows partition in hard disk), by typing different drive letters and executing DIR command, until you find it. e.g.:
    Code:
    > C:> DIR
    .
    .
    .
    > D:
    > DIR
    boot
    .
    ..

  6. Suppose, G: is your windows DVD (it contains boot dir)
    G:\boot
  7. cd to G:\boot by issuing CD G:\boot command:
    Code:
    > G:> DIR
    boot
    .
    .
    .
    > CD G:\boot

  8. Run following commands:
    bootrec /FixMbr
    bootrec /FixBoot
    bootrec /RebuildBcd
    bootsect /nt60 all /force
  9. You should not receive any error message. If so, repeat latter command again -- probably in different order (it won't happen!)
  10. Exit the Command Prompt and Reboot/Shutdown windows Installation DVD.
  11. Now you should be able to boot the windows machine.
  12. At this point, there's no dual boot menu. But you didn't lost your FreeBSD partition/installation.
  13. Login to windows, open browser, search for EasyBCD program, download, install and run it.
  14. You can review your partitions in EasyBCD.
  15. Add a FreeBSD entry:
    1. It have to be the BSD/FreeBSD type, and
    2. choose the right FreeBSD boot partition (e.g. 3rd partition).
  16. Press Save button or something similar.
  17. Setup is complete. Done.
  18. Reboot
  19. Now, you have a windows style dual boot menu (Windows/FreeBSD)
  20. Choose FreeBSD.
  21. You will be direct to FreeBSD boot menu (the default one, with Daemon logo)
  22. Done.
Hi,
Thanks for all the detail, much appreciated.
Unfortunately I don't have a W10 device (DVD/USB). My main OS is freeBSD, and I'd to fix this boot issue using my freeBSD.
Thanks again for the info.
 
grub2-bhyve is for bhyve. I was refering to regular grub2. It looks like the port has been deleted so you will need to use another method.
Here is the deleted port:
 
Hi gnath, thanks for the advise.
I read the man and I'd like to have some guidance. I had bad memories from old days when you could damage your boot and be stuck...
Thanks,
 
If you able to boot into FreeBSD system then you can use boot0cfg -B ada0. If not then you have to use live CD. Recently I have done myself on 11.3-RELEASE. If possible make a backup of your data. If required you can reinstall FreeBSD again on same partition and install boot manager then. Good luck.
 
  • Thanks
Reactions: BB_
Great, this is working, I should have more trust in simple and standard function!!
Thanks, now I can watch Netfxxx again!!
Cheers
 
Back
Top