I have previously had Windows 10 and Ubuntu installed with grub being able to dual boot to Windows and to Ubuntu. I have decided to reinstall Ubuntu due to reasons and unfortunately, it installed wrong grub configuration. Now I am not able to boot to Windows, it is not seen from grub (or os-prober
).
I have multiple disks, Windows is installed on one SSD (sdc) and Linux has its own HDD (sda).
I think I have tried multiple answers from askubuntu.com, however none of them have worked so far and I feel more lost regarding which configuration everything is installed in, whether legacy or uefi, especially because it was working previously.
I am attaching my boot-repair report: boot-repair report
From the report I can see that Windows is detected, when I tried using Windows Live Disk to use cmd bootrec /FixMbr
, it succeded, but nothing changed. Automatic repair did not. Also the report states that sdc1 has Boot files:
- /bootmgr
- /Boot/BCD
In GParted I can see that /sdc1 has flags boot.
Boot-repair has suggested steps which it cannot do by itself, so I tried that way. I booted from live usb and started following instructions. At one point, they wanted to manually remove grub, which I was unable to do, due to apt wanting cdrom inserted - askubuntu
I have tried to boot directly from Windows disk, then I receive error no such device, unknown filesystem: enter image description here
Do you know how I can fix this and get my proper boot configuration? I have tried changing BIOS legacy / uefi settings but I'm unsure how and what would be best configuration - bios page
I do want to keep my Windows installation, but I am fine to reinstall ubuntu once again to do it properly, with grub seeing Windows, but I don't know if reinstallation with current configuration would change anything.
bootmgfw.efi
to allow Windows to be detected byos-prober
and booted. Maybe you have installed Windows in legacy BIOS mode, but Ubuntu in EFI mode? – galexite Aug 02 '21 at 07:05mbr2gpt
. – galexite Aug 02 '21 at 07:13bootrec /FixMbr
. I would want to upgrade to Windows 11 in the future, so I may try that. Should I expectbootmgfw.efi
file to then appear? And how do I need to change BIOS configuration? I'm confused with it because there is no simple switch UEFI / Legacy which I see in different BIOSes – Rad Aug 02 '21 at 07:21sdc
, containingbootmgfw.efi
. When you reach the Command Prompt, rundiskpart
, then at the prompt, typelist disks
. Make a note of which number is your Windows installation’s disk drive. Typeexit
orquit
to exitdiskpart
, then runmbr2gpt /validate /disk:<number>
, where number is the disk you made a note of fromdiskpart
. Check the output to see if the disk is correct, and it is eligible for conversion. – galexite Aug 02 '21 at 07:29/validate
with/convert
. – galexite Aug 02 '21 at 07:37mbr2gpt
. However, to add a Windows boot entry in the boot order, you need to boot the installer in EFI mode. I can’t remember which switch onbootrec
does this (I should think/FixMBR
), but I also would recommend you do so after conversion. – galexite Aug 02 '21 at 07:45