Grub not detecting Windows

Hi, I just installed Manjaro and I’m having problems with grub not detecting Windows. I can boot into both systems by changing the boot order in BIOS but grub only recognizes Manjaro.

inxi -Fxxxza

System:
  Kernel: 6.1.12-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=46206673-fd06-408a-96c2-d175e799ee3e rw quiet splash apparmor=1
    security=apparmor udev.log_priority=3
  Desktop: GNOME v: 43.3 tk: GTK v: 3.24.36 wm: gnome-shell dm: GDM v: 43.0
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME B550M-A v: Rev X.0x
    serial: <superuser required> BIOS: American Megatrends v: 2803
    date: 04/28/2022
CPU:
  Info: model: AMD Ryzen 7 5700X bits: 64 type: MT MCP arch: Zen 3+ gen: 4
    level: v3 note: check built: 2022 process: TSMC n6 (7nm) family: 0x19 (25)
    model-id: 0x21 (33) stepping: 2 microcode: 0xA20120A
  Topology: cpus: 1x cores: 8 tpc: 2 threads: 16 smt: enabled cache:
    L1: 512 KiB desc: d-8x32 KiB; i-8x32 KiB L2: 4 MiB desc: 8x512 KiB
    L3: 32 MiB desc: 1x32 MiB
  Speed (MHz): avg: 2616 high: 3598 min/max: 2200/4662 boost: enabled
    scaling: driver: acpi-cpufreq governor: schedutil cores: 1: 2200 2: 2879
    3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2879 9: 3598 10: 2879 11: 2877
    12: 2879 13: 3400 14: 2880 15: 2200 16: 2200 bogomips: 108846
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities:
  Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: mmio_stale_data status: Not affected
  Type: retbleed status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: Retpolines, IBPB: conditional, IBRS_FW,
    STIBP: always-on, RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA TU116 [GeForce GTX 1660 Ti] vendor: Micro-Star MSI
    driver: nouveau v: kernel non-free: 525.xx+ status: current (as of 2023-02)
    arch: Turing code: TUxxx process: TSMC 12nm FF built: 2018-22 pcie: gen: 1
    speed: 2.5 GT/s lanes: 16 link-max: gen: 3 speed: 8 GT/s ports:
    active: DP-3,HDMI-A-1 empty: DP-1,DP-2 bus-ID: 0a:00.0 chip-ID: 10de:2182
    class-ID: 0300 temp: 25.0 C
  Device-2: Jieli USB PHY 2.0 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-2:3 chip-ID: 1224:2a25 class-ID: 0102
  Display: x11 server: X.org v: 1.21.1.7 with: Xwayland v: 22.1.8
    compositor: gnome-shell driver: X: loaded: modesetting alternate: fbdev,vesa
    dri: nouveau gpu: nouveau display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-size: <missing: xdpyinfo>
  Monitor-1: DP-3 pos: left model: Samsung S24D300 serial: <filter>
    built: 2014 res: 1920x1080 hz: 60 dpi: 92 gamma: 1.2
    size: 531x299mm (20.91x11.77") diag: 609mm (24") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: HDMI-A-1 mapped: HDMI-1 pos: primary,right
    model: Samsung LC24RG50 serial: <filter> built: 2021 res: 1920x1080 hz: 60
    dpi: 92 gamma: 1.2 size: 532x304mm (20.94x11.97") diag: 613mm (24.1")
    ratio: 16:9 modes: max: 1920x1080 min: 720x400
  API: OpenGL v: 4.3 Mesa 22.3.5 renderer: NV168 direct-render: Yes
Audio:
  Device-1: NVIDIA TU116 High Definition Audio vendor: Micro-Star MSI
    driver: snd_hda_intel bus-ID: 1-1:2 v: kernel chip-ID: 03f0:098d pcie:
    class-ID: 0a00 gen: 1 serial: <filter> speed: 2.5 GT/s lanes: 16 link-max:
    gen: 3 speed: 8 GT/s bus-ID: 0a:00.1 chip-ID: 10de:1aeb class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel pcie: gen: 4 speed: 16 GT/s lanes: 16
    bus-ID: 0c:00.4 chip-ID: 1022:1487 class-ID: 0403
  Device-3: HP HyperX Cloud Alpha Wireless type: USB
    driver: cdc_acm,hid-generic,snd-usb-audio,usbhid
  Device-4: Jieli USB PHY 2.0 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-2:3 chip-ID: 1224:2a25 class-ID: 0102
  Sound API: ALSA v: k6.1.12-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.22 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: ASUSTeK PRIME B450M-A driver: r8169 v: kernel pcie: gen: 1
    speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 09:00.0 chip-ID: 10ec:8168
    class-ID: 0200
  IF: enp9s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 1.86 TiB used: 13.07 GiB (0.7%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/sda maj-min: 8:0 vendor: Patriot model: P200 2TB MX
    size: 1.86 TiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 117K scheme: GPT
Partition:
  ID-1: / raw-size: 292.97 GiB size: 287.31 GiB (98.07%)
    used: 13.07 GiB (4.5%) fs: ext4 dev: /dev/sda5 maj-min: 8:5
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 39.1 C mobo: N/A gpu: nouveau temp: 25.0 C
  Fan Speeds (RPM): N/A gpu: nouveau fan: 1403
Info:
  Processes: 373 Uptime: 30m wakeups: 0 Memory: 31.23 GiB
  used: 3.67 GiB (11.8%) Init: systemd v: 252 default: graphical
  tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
  pkgs: 1201 libs: 311 tools: gnome-software,pamac,yay pm: flatpak pkgs: 0
  Shell: Zsh v: 5.9 running-in: gnome-terminal inxi: 3.3.25

lsblk -f

NAME   FSTYPE FSVER LABEL UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
sda                                                                           
├─sda1 vfat   FAT32       D03F-8A08                                           
├─sda2                                                                        
├─sda3 ntfs               123A44483A442B55                                    
├─sda4 ntfs               8CFCEDE7FCEDCC10                                    
└─sda5 ext4   1.0         46206673-fd06-408a-96c2-d175e799ee3e  259,5G     5% /

sudo update-grub

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Warning: 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.
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi

Thank you.

Manjaro is installed in BIOS/legacy mode and Windows in UEFI mode? Both have to be installed in the same mode, so that os-prober can find Windows.

Thank you! You were right, I just needed to reinstall it in the same mode, now everything works perfectly.

1 Like

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