GRUB does not detect UEFI Windows, even does not appear

Hi,

I had installed several months ago Arch Linux along with Windows 10 in my laptop. It has a SSD and I added a second SSD to it. It was running without problems.

Some weeks ago, after a kernel update that does not ended correctly, I had my Arch Linux unusable. I was trying to fix but finally I decided to move to a more stable distribution and choose Manjaro. Before I play with EndeavourOS but finally I prefer a Arch Linux based distribution.

The problem was at installation… It seems I didn’t clean at all my previous installation and, I do not how, I ended with a strange (for me) configuration…

When I boot, grub menu does not appear… If I want to boot in Windows, I have to choose it from the BIOS or through the efibootmgr command…

sudo os-prober does not return anything…

Any help will be welcome

Here you have info from my system:

    ~  sudo efibootmgr -v                                                                                                                                                                   ✔  11s  
BootCurrent: 0003
Timeout: 5 seconds
BootOrder: 0003,0001,2001,2002,2003
Boot0001* Windows Boot Manager  HD(1,GPT,0ceaa01c-00c9-4570-b6ad-fdc5b1f46efa,0x28,0x64000)/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.}...M................
Boot0003* Manjaro       HD(1,GPT,0ceaa01c-00c9-4570-b6ad-fdc5b1f46efa,0x28,0x64000)/File(\EFI\Manjaro\grubx64.efi)
Boot2001* EFI USB Device        RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network   RC

sudo fdisk -l                                                                                                                                                                                ✔ 
Disk /dev/nvme0n1: 238,47 GiB, 256060514304 bytes, 500118192 sectors
Disk model: SAMSUNG MZVLW256HEHP-00000              
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: CD161E81-1698-456E-98D3-EBB419AF6AF8

Dispositiu         Start     Final   Sectors   Size Tipus
/dev/nvme0n1p1        40    409639    409600   200M BIOS boot
/dev/nvme0n1p2    411648    444415     32768    16M Microsoft reserved
/dev/nvme0n1p3    444416 165445631 165001216  78,7G Linux filesystem
/dev/nvme0n1p4 165445632 499095831 333650200 159,1G Microsoft basic data


Disk /dev/sda: 465,76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC  WDS500G2B0B
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 1DDFB5F4-5664-43B3-A731-4701F15695AB

Dispositiu     Start     Final   Sectors   Size Tipus
/dev/sda1         34     32767     32734    16M Microsoft reserved
/dev/sda2      32768 567171071 567138304 270,4G Microsoft basic data
/dev/sda3  567171072 632709119  65538048  31,3G Intercanvi Linux
/dev/sda4  632709120 976773134 344064015 164,1G Linux filesystem
sudo parted -l                                                                                                                                                                               ✔ 
Model: ATA WDC WDS500G2B0B (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system     Name                          Flags
 1      17,4kB  16,8MB  16,8MB                  Microsoft reserved partition  msftres
 2      16,8MB  290GB   290GB   ntfs            Basic data partition          msftdata
 3      290GB   324GB   33,6GB  linux-swap(v1)                                swap
 4      324GB   500GB   176GB   ext4


Model: SAMSUNG MZVLW256HEHP-00000 (nvme)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags: 

Number  Start   End     Size    File system  Name                          Flags
 1      20,5kB  210MB   210MB   fat32        EFI System Partition          bios_grub
 2      211MB   228MB   16,8MB               Microsoft reserved partition  msftres
 3      228MB   84,7GB  84,5GB  ext4
 4      84,7GB  256GB   171GB   ntfs                                       msftdata

    ~  sudo update-grub                                                                                                                                                                             ✔ 
Es genera un fitxer de configuració...
S'ha trobat el tema :/usr/share/grub/themes/manjaro/theme.txt
S'ha trobat una imatge de linux: /boot/vmlinuz-5.15-x86_64
S'ha trobat una imatge de initrd: /boot/intel-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-x86_64-fallback.img
Avís: os-prober will be executed to detect other bootable partitions.
Its output will be used to detect bootable binaries on them and create new boot entries.
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: avís: el tipus de dispositiu nvme0n1 és desconegut.
fet

lsblk -f | grep efi                                                                                                                                                                ✔  1m 8s  
├─nvme0n1p1 vfat   FAT32 NO_LABEL 67E3-17ED                             133,7M    32% /boot/efi

 cat /etc/fstab | grep efi                                                                                                                                                                    ✔ 
UUID=67E3-17ED                            /boot/efi      vfat    umask=0077 0 2

su -c "ls -l /boot/efi/EFI/"                                                                                                                                                          ✔  4s  
total 7
drwx------ 3 root root  512 29 d’abr.    2018 APPLE
drwx------ 2 root root  512 29 d’abr.    2018 BOOT
drwx------ 7 root root 1536 27 de maig   2018 CLOVER
-rwx------ 1 root root 1906 14 d’abr.    2018 Clover_Install_Log.txt
drwx------ 3 root root  512  5 de maig   2019 EFI
drwx------ 2 root root  512  4 de maig   2019 GRUB
drwx------ 2 root root  512 18 d’oct.   00:59 Manjaro
drwx------ 4 root root  512 27 de maig   2018 Microsoft
su -c "ls -l /boot/efi/EFI/Microsoft/Boot/*.efi"                                                                                                                                            
-rwx------ 1 root root 1558864  6 d’oct.   00:16 /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
-rwx------ 1 root root 1542992  6 d’oct.   00:16 /boot/efi/EFI/Microsoft/Boot/bootmgr.efi
-rwx------ 1 root root 1348920 17 de set.  00:10 /boot/efi/EFI/Microsoft/Boot/memtest.efi

I tried to add the Windows entry in /etc/grub.d/40_custom but grub does not appear

menuentry ‘Windows 10’ --class windows --class os --id windows-custom {
search --fs-uuid --no-floppy --set=root 67E3-17ED
chainloader (${root})/EFI/Microsoft/Boot/bootmgfw.efi
}

Can you post /etc/fstab ?

1 Like

Here you have:

cat /etc/fstab                                                                                                                                                                               ✔ 
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a device; this may
# be used with UUID= as a more robust way to name devices that works even if
# disks are added and removed. See fstab(5).
#
# <file system>             <mount point>  <type>  <options>  <dump>  <pass>
UUID=67E3-17ED                            /boot/efi      vfat    umask=0077 0 2
UUID=63974761-1f36-4d4e-877d-1e29170b531c /              ext4    defaults,noatime 0 1
UUID=9205d538-9e70-4207-897c-36b79c252edf /home          ext4    defaults,noatime 0 2

Hi,

GRUB_DISABLE_OS_PROBER was set already to false…

I have changed GRUB_TIMEOUT_STYLE from hidden to menu. Thanks!

see this for menu Grub

an this for seeing windows boot

but but very careful with version Grub2.06 and more ( also with os-prober )
==> see about Grub vulnerabilities 2021 and results

see chancelog
https://git.savannah.gnu.org/cgit/grub.git/?h=grub-2.06

Changing from hidden to menu do the trick… Now I can see the grub menu… Thanks @freggel.doe and @stephane

What I can not understand at all is why grub does not detect automatically windows and I have to added manually… anyway… now it’s working…

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