Can't get to display grub to access Windows

[nicola@nicola-pc ~]$ efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0001,0002,0004,0000
Boot0000* ubuntu        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0001* Windows Boot Manager  HD(1,GPT,d2240e1b-c6b3-45bc-bf6b-18132a61a0f7,0x1000,0x96000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...o................
Boot0002* Hard Drive    BBS(HD,,0x0)..GO..NO........u.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .E.V.O. .1.2.0.G.B....................A.................................>..Gd-.;.A..MQ..L.1.S.5.D.S.N.F.B.1.2.5.0.8.1. .K. . . . ........BO..NO........a.S.a.b.r.e.n.t....................A..........................dy.*.C30.....$..Gd-.;.A..MQ..L.S.a.b.r.e.n.t........BO..NO........o.S.T.3.7.5.0.5.2.8.A.S....................A...........................>..Gd-.;.A..MQ..L.V.5.2.P.7.R.3.H. . . . . . . . . . . . ........BO..NO........u.S.T.2.0.0.0.D.M.0.0.6.-.2.D.M.1.6.4....................A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.7.Z.7.W.1.N........BO
Boot0003* manjaro       HD(1,GPT,d2240e1b-c6b3-45bc-bf6b-18132a61a0f7,0x1000,0x96000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0004* UEFI OS       HD(1,GPT,d2240e1b-c6b3-45bc-bf6b-18132a61a0f7,0x1000,0x96000)/File(\EFI\BOOT\BOOTX64.EFI)..BO

[nicola@nicola-pc ~]$ sudo blkid
/dev/nvme1n1p1: UUID="8AC4-CBE4" TYPE="vfat" PARTUUID="d2240e1b-c6b3-45bc-bf6b-18132a61a0f7"
/dev/nvme1n1p2: UUID="2ebcf950-b9b3-4b42-9d47-f06feb778b0d" TYPE="ext4" PARTUUID="34328bf1-2c3a-4850-a93f-6c6ab5564b25"
/dev/nvme1n1p3: UUID="b302aee1-60a4-4445-a3b7-2f1e0daaf019" TYPE="swap" PARTUUID="2b331521-8982-4d4e-8b68-faf9a3562ab1"
/dev/nvme0n1p1: PARTLABEL="Microsoft reserved partition" PARTUUID="bbe1d965-4867-4440-ad42-c4bdae530a1e"
/dev/nvme0n1p2: UUID="2E349DF6349DC0EF" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="9b6c2f7f-0b56-4575-9156-104c880d45e1"
/dev/sda1: LABEL="Volume" UUID="C01AD4851AD479BC" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="11a5a844-0f52-47e0-8ed4-467101528c36"
/dev/sdb1: UUID="B628709E28705EF5" TYPE="ntfs" PARTUUID="b3b406a4-01"
/dev/sdc1: LABEL="Volume" UUID="CEA6ED54A6ED3E19" TYPE="ntfs" PARTUUID="b2c96e0b-01"

[nicola@nicola-pc ~]$ findmnt -s
TARGET    SOURCE                                    FSTYPE OPTIONS
/boot/efi UUID=8AC4-CBE4                            vfat   umask=0077
/         UUID=2ebcf950-b9b3-4b42-9d47-f06feb778b0d ext4   defaults,noatime
swap      UUID=b302aee1-60a4-4445-a3b7-2f1e0daaf019 swap   defaults,noatime

[nicola@nicola-pc ~]$ findmnt /boot/efi
TARGET    SOURCE         FSTYPE OPTIONS
/boot/efi /dev/nvme1n1p1 vfat   rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro

Here are the outputs of the commands

Mhh, i have windows 10 installed, in my motherboard system setup the "Operating System" options is set to Windows 10 and other options says UEFI

You're running a mixed-mode BIOS/EFI system: grub will not be able to pick up Windows. I agree with @marte and you should use the BIOS to pick which OS to run...

As I'm migrating away from Ubuntu I have a triple boot system too, but I'm running W10, Ubuntu and Manjaro all in EFI mode:

$ sudo parted --list
[sudo] password for fab-root: 
Model: ATA Micron_1100_MTFD (scsi)
Disk /dev/sda: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  106MB   105MB   fat32           EFI system partition          boot, esp
 2      106MB   123MB   16.8MB                  Microsoft reserved partition  msftres
 3      123MB   51.7GB  51.5GB  ntfs            Basic data partition          msftdata
 4      51.7GB  52.7GB  1074MB  ntfs            Basic data partition          hidden, diag
 5      52.7GB  104GB   51.5GB  ext4
 6      104GB   212GB   107GB   ext4
 7      235GB   256GB   21.5GB  linux-swap(v1)                                swap


Model: ATA Micron_1100_MTFD (scsi)
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 2      106MB   51.1GB  50.9GB  ext4
 3      51.1GB  219GB   168GB   ext4


Model: ATA TOSHIBA MQ01ABD1 (scsi)
Disk /dev/sdd: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  1000GB  1000GB  ntfs               msftdata
1 Like

I think I will re-install windows, it was about time...

 efibootmgr -v
BootCurrent: 0003
Timeout: 1 seconds
BootOrder: 0003,0001,0002,0004,0000
Boot0000* ubuntu        VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)
Boot0001* Windows Boot Manager  HD(1,GPT,d2240e1b-c6b3-45bc-bf6b-18132a61a0f7,0x1000,0x96000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}...o................
Boot0002* Hard Drive    BBS(HD,,0x0)..GO..NO........u.S.a.m.s.u.n.g. .S.S.D. .8.4.0. .E.V.O. .1.2.0.G.B....................A.................................>..Gd-.;.A..MQ..L.1.S.5.D.S.N.F.B.1.2.5.0.8.1. .K. . . . ........BO..NO........a.S.a.b.r.e.n.t....................A..........................dy.*.C30.....$..Gd-.;.A..MQ..L.S.a.b.r.e.n.t........BO..NO........o.S.T.3.7.5.0.5.2.8.A.S....................A...........................>..Gd-.;.A..MQ..L.V.5.2.P.7.R.3.H. . . . . . . . . . . . ........BO..NO........u.S.T.2.0.0.0.D.M.0.0.6.-.2.D.M.1.6.4....................A.................................>..Gd-.;.A..MQ..L. . . . . . . . . . . . .4.Z.7.Z.7.W.1.N........BO
Boot0003* manjaro       HD(1,GPT,d2240e1b-c6b3-45bc-bf6b-18132a61a0f7,0x1000,0x96000)/File(\EFI\MANJARO\GRUBX64.EFI)

I'm puzzled. Where does this:

Boot0001* Windows Boot Manager HD(1,GPT,d2240e1b-c6b3-45bc-bf6b-18132a61a0f7,0x1000,0x96000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.

come from?

That's still in the NVRAM and is ignored as that partition probably does not exist any more... (Haven't double-checked the UUID)

The best @gallu can do is indeed re-install W10 in EFI mode on a GPT disk but then he'll need to do a boot-repair for his Ubuntu and Manjaro as Windows will erase all other boot managers from the NVRAM.

1 Like

So, at one point Windows had been installed in UEFI mode and now it's gone. That's explains it. Thanks!

1 Like

@gallu

At /etc/default/grub, change following lines to..

GRUB_CMDLINE_LINUX_DEFAULT="nvme_core.multipath=0"
GRUB_TIMEOUT=10
GRUB_TIMEOUT_STYLE=menu

Then do sudo update-grub.
Tell us if windows entry appears when doing 'update-grub'

If windows does not appear, when reboot, go to grub prompt (grub> ) by pressing 'c' when grub menu appears, let us know if windows boot.

grub> chainloader /EFI/Microsoft/Boot/bootmgfw.efi
grub> boot
1 Like

I'm trying that now, before re installing, thanks

Edit: after sudo update-grub no windows entry appears in the terminal

Edit 2: no luck with grub. At least now it appears and it's not hidden, I think thanks to that GRUB_TIMEOUT_STYLE=menuflag

Try the manual way as @gohlip suggested.

I just tried that, I was going to edit the answer. Grub cannot find that file

Just checking to be very sure
When rebooted into manjaro, do again 'sudo update-grub'
If windows entry is not in the output,
check at terminal

ls /boot/efi/efi/

Any microsoft directory listed?
If there is , check

ls /boot/efi/efi/microsoft/boot/

any efi file there?

If you don't have microsoft directory nor efi file in it, you will have to reinstall microsoft bootloader.
Just the bootloader, not the whole OS. And make sure you install microsoft bootloader in uefi.
And a warning, that will remove manjaro bootloader but we can fix it back for you.
But I cannot help in fixing windows bootloader, please find out yourself how.

Good luck.

2 Likes

Then look manually for the folder and file at grub prompt.
As a tip, at grub prompt, use command ls to list current folder, use tab key for auto-complete.
If current folder is on esp, you should find Windows folder. If not, use search to find manjaro efi (study the tutorial) and set it as root.
You might look for it from a GUI file manager for existence, as well. Unless it's deleted?

Further to AgentS.
at grub prompt, to find any windows efi file
grub> search.file /efi/Microsoft/Boot/bootmgfw.efi
If there is an output, you have that windows boot file

1 Like

Hey all, i did re-install windows and after an os-prober, windows does show up in the list!
Apparently the problem with the uefi/legacy mode is that I enabled compatibility mode (CSM in gigabyte's bios), and while flashing the windows iso from rufus, i selected UEFI (non-CSM), so mistakes were made.
From here i can simply do a update-grub to update the grub menu and then fix the boot order to have manjaro on top, right?

1 Like

From Manjaro: sudo update-grub should normally put Manjaro at the top of Grub boot menu.
EDIT:

Ah, you mean if it boots automatically into Windows? Then you would need to change boot priorities in the bios to have Manjaro on top, you are right.

1 Like

To move things around in EFI itself, you need efibootmgr:

E.G. on my system:

sudo efibootmgr

gives:

BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0000,0002,2001,2002,2003
Boot0000* rEFInd
Boot0001* Unknown Device: 
Boot0002* Windows Boot Manager
Boot0003* Unknown Device: 
Boot0004* ubuntu
Boot0005* Manjaro
Boot2001* EFI USB Device
Boot2002* EFI DVD/CDROM
Boot2003* EFI Network

If I would want Manjaro on top I'd:

sudo efibootmgr --bootorder 0005,0000,0002,2001,2002,2003
2 Likes

What a journey, thanks a lot for the patience while helping me! I will flag this thread as solved now, thank you again to everyone who contributed! :slight_smile:

1 Like

That was a pleasure, a great collective effort!
Glad you got to your destination!

:champagne:

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by