You are not logged in.

#1 2022-12-21 17:50:05

jcr
Member
Registered: 2022-12-21
Posts: 19

Can't detect Windows bootloader with os-prober

Hello,

I'm trying to install a dual boot arch / windows on a fresh new SSD.
Windows was just installed earlier today, in UEFI mode.
I'm about to finish my arch install, but I'm stuck while trying to install my bootloader : it won't detect Windows.

I chose GRUB since it's the one I've always used, and followed the wiki religiously (at least I tried). (for reference : https://wiki.archlinux.org/title/GRUB)

I installed grub, my ESP partition was already mounted on /boot, ran

grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB

I then ran

grub-mkconfig -o /boot/grub/grub.cfg

which worked fine, not detecting my windows as expected.

I then went over to the "Detecting other operating systems" section of the wiki, installed os-prober, ran it (got no output - I didn't think I was supposed to at the time), re-ran

grub-mkconfig

got the warning so uncommented

GRUB_DISABLE_OS_PROBER=false

in

/etc/default/grub

ran it again, everything looked fine. I check

/boot/grub/grub.cfg

but there is no windows entry.

I tried installing ntfs-3g and doing it all over again, not much luck there.

After a bit of investigation :
- it seems to be os-prober that doesn't detect my windows. I ran os-prober on my desktop (which dual boots both OSs for several years) and got an output
- I can find the windows bootmgfw.efi in

/boot/EFI/Microsoft/Boot

just fine. Which means that my partition is mounted (most other similar problems I've seen revolved around that)
- Some posts I've found recommended trying rEFInd in place of GRUB, which I did. It didn't seem to find my windows either (though I'm new to rEFInd - maybe I wasn't looking in the right place).

Any idea where to look next ?

Thanks

Last edited by jcr (2022-12-21 17:55:48)

Offline

#2 2022-12-21 17:58:49

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Can't detect Windows bootloader with os-prober

Can we see the output of

find /boot
parted --list
os-prober

Nice OP btw. Better than most.

Offline

#3 2022-12-21 18:14:46

jcr
Member
Registered: 2022-12-21
Posts: 19

Re: Can't detect Windows bootloader with os-prober

/boot
/boot/EFI
/boot/EFI/Microsoft
/boot/EFI/Microsoft/Boot
/boot/EFI/Microsoft/Boot/BCD
/boot/EFI/Microsoft/Boot/BCD.LOG
/boot/EFI/Microsoft/Boot/bg-BG
/boot/EFI/Microsoft/Boot/bg-BG/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/bg-BG/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/boot.stl
/boot/EFI/Microsoft/Boot/bootmgfw.efi
/boot/EFI/Microsoft/Boot/bootmgr.efi
/boot/EFI/Microsoft/Boot/cs-CZ
/boot/EFI/Microsoft/Boot/cs-CZ/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/cs-CZ/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/cs-CZ/memtest.efi.mui
/boot/EFI/Microsoft/Boot/da-DK
/boot/EFI/Microsoft/Boot/da-DK/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/da-DK/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/da-DK/memtest.efi.mui
/boot/EFI/Microsoft/Boot/de-DE
/boot/EFI/Microsoft/Boot/de-DE/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/de-DE/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/de-DE/memtest.efi.mui
/boot/EFI/Microsoft/Boot/el-GR
/boot/EFI/Microsoft/Boot/el-GR/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/el-GR/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/el-GR/memtest.efi.mui
/boot/EFI/Microsoft/Boot/en-GB
/boot/EFI/Microsoft/Boot/en-GB/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/en-GB/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/en-US
/boot/EFI/Microsoft/Boot/en-US/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/en-US/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/en-US/memtest.efi.mui
/boot/EFI/Microsoft/Boot/es-ES
/boot/EFI/Microsoft/Boot/es-ES/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/es-ES/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/es-ES/memtest.efi.mui
/boot/EFI/Microsoft/Boot/es-MX
/boot/EFI/Microsoft/Boot/es-MX/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/es-MX/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/et-EE
/boot/EFI/Microsoft/Boot/et-EE/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/et-EE/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/fi-FI
/boot/EFI/Microsoft/Boot/fi-FI/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/fi-FI/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/fi-FI/memtest.efi.mui
/boot/EFI/Microsoft/Boot/fr-CA
/boot/EFI/Microsoft/Boot/fr-CA/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/fr-CA/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/fr-FR
/boot/EFI/Microsoft/Boot/fr-FR/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/fr-FR/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/fr-FR/memtest.efi.mui
/boot/EFI/Microsoft/Boot/hr-HR
/boot/EFI/Microsoft/Boot/hr-HR/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/hr-HR/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/hu-HU
/boot/EFI/Microsoft/Boot/hu-HU/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/hu-HU/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/hu-HU/memtest.efi.mui
/boot/EFI/Microsoft/Boot/it-IT
/boot/EFI/Microsoft/Boot/it-IT/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/it-IT/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/it-IT/memtest.efi.mui
/boot/EFI/Microsoft/Boot/ja-JP
/boot/EFI/Microsoft/Boot/ja-JP/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/ja-JP/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/ja-JP/memtest.efi.mui
/boot/EFI/Microsoft/Boot/kdnet_uart16550.dll
/boot/EFI/Microsoft/Boot/kdstub.dll
/boot/EFI/Microsoft/Boot/kd_02_10df.dll
/boot/EFI/Microsoft/Boot/kd_02_10ec.dll
/boot/EFI/Microsoft/Boot/kd_02_1137.dll
/boot/EFI/Microsoft/Boot/kd_02_14e4.dll
/boot/EFI/Microsoft/Boot/kd_02_15b3.dll
/boot/EFI/Microsoft/Boot/kd_02_1969.dll
/boot/EFI/Microsoft/Boot/kd_02_19a2.dll
/boot/EFI/Microsoft/Boot/kd_02_1af4.dll
/boot/EFI/Microsoft/Boot/kd_02_8086.dll
/boot/EFI/Microsoft/Boot/kd_07_1415.dll
/boot/EFI/Microsoft/Boot/kd_0C_8086.dll
/boot/EFI/Microsoft/Boot/ko-KR
/boot/EFI/Microsoft/Boot/ko-KR/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/ko-KR/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/ko-KR/memtest.efi.mui
/boot/EFI/Microsoft/Boot/lt-LT
/boot/EFI/Microsoft/Boot/lt-LT/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/lt-LT/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/lv-LV
/boot/EFI/Microsoft/Boot/lv-LV/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/lv-LV/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/memtest.efi
/boot/EFI/Microsoft/Boot/nb-NO
/boot/EFI/Microsoft/Boot/nb-NO/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/nb-NO/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/nb-NO/memtest.efi.mui
/boot/EFI/Microsoft/Boot/nl-NL
/boot/EFI/Microsoft/Boot/nl-NL/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/nl-NL/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/nl-NL/memtest.efi.mui
/boot/EFI/Microsoft/Boot/pl-PL
/boot/EFI/Microsoft/Boot/pl-PL/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/pl-PL/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/pl-PL/memtest.efi.mui
/boot/EFI/Microsoft/Boot/pt-BR
/boot/EFI/Microsoft/Boot/pt-BR/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/pt-BR/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/pt-BR/memtest.efi.mui
/boot/EFI/Microsoft/Boot/pt-PT
/boot/EFI/Microsoft/Boot/pt-PT/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/pt-PT/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/pt-PT/memtest.efi.mui
/boot/EFI/Microsoft/Boot/qps-ploc
/boot/EFI/Microsoft/Boot/qps-ploc/memtest.efi.mui
/boot/EFI/Microsoft/Boot/ro-RO
/boot/EFI/Microsoft/Boot/ro-RO/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/ro-RO/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/ru-RU
/boot/EFI/Microsoft/Boot/ru-RU/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/ru-RU/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/ru-RU/memtest.efi.mui
/boot/EFI/Microsoft/Boot/sk-SK
/boot/EFI/Microsoft/Boot/sk-SK/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/sk-SK/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/sl-SI
/boot/EFI/Microsoft/Boot/sl-SI/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/sl-SI/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/sr-Latn-RS
/boot/EFI/Microsoft/Boot/sr-Latn-RS/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/sr-Latn-RS/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/sv-SE
/boot/EFI/Microsoft/Boot/sv-SE/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/sv-SE/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/sv-SE/memtest.efi.mui
/boot/EFI/Microsoft/Boot/tr-TR
/boot/EFI/Microsoft/Boot/tr-TR/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/tr-TR/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/tr-TR/memtest.efi.mui
/boot/EFI/Microsoft/Boot/uk-UA
/boot/EFI/Microsoft/Boot/uk-UA/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/uk-UA/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/winsipolicy.p7b
/boot/EFI/Microsoft/Boot/zh-CN
/boot/EFI/Microsoft/Boot/zh-CN/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/zh-CN/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/zh-CN/memtest.efi.mui
/boot/EFI/Microsoft/Boot/zh-TW
/boot/EFI/Microsoft/Boot/zh-TW/bootmgfw.efi.mui
/boot/EFI/Microsoft/Boot/zh-TW/bootmgr.efi.mui
/boot/EFI/Microsoft/Boot/zh-TW/memtest.efi.mui
/boot/EFI/Microsoft/Boot/BOOTSTAT.DAT
/boot/EFI/Microsoft/Boot/Fonts
/boot/EFI/Microsoft/Boot/Fonts/chs_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/cht_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/jpn_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/kor_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/malgunn_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/malgun_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/meiryon_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/meiryo_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/msjhn_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/msjh_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/msyhn_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/msyh_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/segmono_boot.ttf
/boot/EFI/Microsoft/Boot/Fonts/segoen_slboot.ttf
/boot/EFI/Microsoft/Boot/Fonts/segoe_slboot.ttf
/boot/EFI/Microsoft/Boot/Fonts/wgl4_boot.ttf
/boot/EFI/Microsoft/Boot/Resources
/boot/EFI/Microsoft/Boot/Resources/bootres.dll
/boot/EFI/Microsoft/Boot/Resources/en-US
/boot/EFI/Microsoft/Boot/Resources/en-US/bootres.dll.mui
/boot/EFI/Microsoft/Boot/BCD.LOG1
/boot/EFI/Microsoft/Boot/BCD.LOG2
/boot/EFI/Microsoft/Recovery
/boot/EFI/Microsoft/Recovery/BCD
/boot/EFI/Microsoft/Recovery/BCD.LOG
/boot/EFI/Microsoft/Recovery/BCD.LOG1
/boot/EFI/Microsoft/Recovery/BCD.LOG2
/boot/EFI/Boot
/boot/EFI/Boot/bootx64.efi
/boot/EFI/GRUB
/boot/EFI/GRUB/grubx64.efi
/boot/EFI/tools
/boot/System Volume Information
/boot/vmlinuz-linux
/boot/initramfs-linux.img
/boot/initramfs-linux-fallback.img
/boot/grub
/boot/grub/x86_64-efi
/boot/grub/x86_64-efi/wrmsr.mod
/boot/grub/x86_64-efi/play.mod
/boot/grub/x86_64-efi/gfxterm_background.mod
/boot/grub/x86_64-efi/functional_test.mod
/boot/grub/x86_64-efi/setjmp.mod
/boot/grub/x86_64-efi/datetime.mod
/boot/grub/x86_64-efi/setjmp_test.mod
/boot/grub/x86_64-efi/macho.mod
/boot/grub/x86_64-efi/multiboot.mod
/boot/grub/x86_64-efi/echo.mod
/boot/grub/x86_64-efi/minix2_be.mod
/boot/grub/x86_64-efi/videoinfo.mod
/boot/grub/x86_64-efi/gcry_whirlpool.mod
/boot/grub/x86_64-efi/net.mod
/boot/grub/x86_64-efi/gcry_arcfour.mod
/boot/grub/x86_64-efi/video_cirrus.mod
/boot/grub/x86_64-efi/nilfs2.mod
/boot/grub/x86_64-efi/disk.mod
/boot/grub/x86_64-efi/boot.mod
/boot/grub/x86_64-efi/btrfs.mod
/boot/grub/x86_64-efi/normal.mod
/boot/grub/x86_64-efi/geli.mod
/boot/grub/x86_64-efi/regexp.mod
/boot/grub/x86_64-efi/gcry_sha512.mod
/boot/grub/x86_64-efi/part_apple.mod
/boot/grub/x86_64-efi/file.mod
/boot/grub/x86_64-efi/pcidump.mod
/boot/grub/x86_64-efi/gettext.mod
/boot/grub/x86_64-efi/rdmsr.mod
/boot/grub/x86_64-efi/luks.mod
/boot/grub/x86_64-efi/odc.mod
/boot/grub/x86_64-efi/ntfs.mod
/boot/grub/x86_64-efi/lvm.mod
/boot/grub/x86_64-efi/part_sun.mod
/boot/grub/x86_64-efi/procfs.mod
/boot/grub/x86_64-efi/time.mod
/boot/grub/x86_64-efi/div.mod
/boot/grub/x86_64-efi/lssal.mod
/boot/grub/x86_64-efi/minix3.mod
/boot/grub/x86_64-efi/keylayouts.mod
/boot/grub/x86_64-efi/smbios.mod
/boot/grub/x86_64-efi/gcry_rsa.mod
/boot/grub/x86_64-efi/gfxterm_menu.mod
/boot/grub/x86_64-efi/gcry_camellia.mod
/boot/grub/x86_64-efi/tftp.mod
/boot/grub/x86_64-efi/luks2.mod
/boot/grub/x86_64-efi/gcry_idea.mod
/boot/grub/x86_64-efi/parttool.mod
/boot/grub/x86_64-efi/f2fs.mod
/boot/grub/x86_64-efi/xnu.mod
/boot/grub/x86_64-efi/div_test.mod
/boot/grub/x86_64-efi/usbserial_usbdebug.mod
/boot/grub/x86_64-efi/cbtime.mod
/boot/grub/x86_64-efi/cbmemc.mod
/boot/grub/x86_64-efi/eval.mod
/boot/grub/x86_64-efi/zfsinfo.mod
/boot/grub/x86_64-efi/cmp_test.mod
/boot/grub/x86_64-efi/affs.mod
/boot/grub/x86_64-efi/efinet.mod
/boot/grub/x86_64-efi/lspci.mod
/boot/grub/x86_64-efi/spkmodem.mod
/boot/grub/x86_64-efi/hfs.mod
/boot/grub/x86_64-efi/hello.mod
/boot/grub/x86_64-efi/videotest_checksum.mod
/boot/grub/x86_64-efi/appleldr.mod
/boot/grub/x86_64-efi/gcry_crc.mod
/boot/grub/x86_64-efi/afs.mod
/boot/grub/x86_64-efi/elf.mod
/boot/grub/x86_64-efi/nativedisk.mod
/boot/grub/x86_64-efi/backtrace.mod
/boot/grub/x86_64-efi/part_dvh.mod
/boot/grub/x86_64-efi/usb.mod
/boot/grub/x86_64-efi/strtoull_test.mod
/boot/grub/x86_64-efi/cpio_be.mod
/boot/grub/x86_64-efi/search_label.mod
/boot/grub/x86_64-efi/blocklist.mod
/boot/grub/x86_64-efi/minicmd.mod
/boot/grub/x86_64-efi/dm_nv.mod
/boot/grub/x86_64-efi/pbkdf2_test.mod
/boot/grub/x86_64-efi/gcry_rmd160.mod
/boot/grub/x86_64-efi/hexdump.mod
/boot/grub/x86_64-efi/ufs1.mod
/boot/grub/x86_64-efi/mdraid1x.mod
/boot/grub/x86_64-efi/relocator.mod
/boot/grub/x86_64-efi/gcry_sha1.mod
/boot/grub/x86_64-efi/priority_queue.mod
/boot/grub/x86_64-efi/gfxmenu.mod
/boot/grub/x86_64-efi/search_fs_file.mod
/boot/grub/x86_64-efi/iorw.mod
/boot/grub/x86_64-efi/bswap_test.mod
/boot/grub/x86_64-efi/aout.mod
/boot/grub/x86_64-efi/ehci.mod
/boot/grub/x86_64-efi/exfat.mod
/boot/grub/x86_64-efi/acpi.mod
/boot/grub/x86_64-efi/keystatus.mod
/boot/grub/x86_64-efi/gcry_rfc2268.mod
/boot/grub/x86_64-efi/gcry_serpent.mod
/boot/grub/x86_64-efi/legacycfg.mod
/boot/grub/x86_64-efi/usbserial_common.mod
/boot/grub/x86_64-efi/zfs.mod
/boot/grub/x86_64-efi/sleep.mod
/boot/grub/x86_64-efi/xnu_uuid_test.mod
/boot/grub/x86_64-efi/mpi.mod
/boot/grub/x86_64-efi/efifwsetup.mod
/boot/grub/x86_64-efi/cbls.mod
/boot/grub/x86_64-efi/squash4.mod
/boot/grub/x86_64-efi/bfs.mod
/boot/grub/x86_64-efi/gcry_des.mod
/boot/grub/x86_64-efi/video_fb.mod
/boot/grub/x86_64-efi/tga.mod
/boot/grub/x86_64-efi/test.mod
/boot/grub/x86_64-efi/gcry_dsa.mod
/boot/grub/x86_64-efi/png.mod
/boot/grub/x86_64-efi/part_plan.mod
/boot/grub/x86_64-efi/hfsplus.mod
/boot/grub/x86_64-efi/ext2.mod
/boot/grub/x86_64-efi/zfscrypt.mod
/boot/grub/x86_64-efi/sfs.mod
/boot/grub/x86_64-efi/ata.mod
/boot/grub/x86_64-efi/minix3_be.mod
/boot/grub/x86_64-efi/gcry_seed.mod
/boot/grub/x86_64-efi/gptsync.mod
/boot/grub/x86_64-efi/part_msdos.mod
/boot/grub/x86_64-efi/scsi.mod
/boot/grub/x86_64-efi/lsefi.mod
/boot/grub/x86_64-efi/fixvideo.mod
/boot/grub/x86_64-efi/iso9660.mod
/boot/grub/x86_64-efi/loadenv.mod
/boot/grub/x86_64-efi/lsacpi.mod
/boot/grub/x86_64-efi/ls.mod
/boot/grub/x86_64-efi/date.mod
/boot/grub/x86_64-efi/ufs2.mod
/boot/grub/x86_64-efi/boottime.mod
/boot/grub/x86_64-efi/tar.mod
/boot/grub/x86_64-efi/videotest.mod
/boot/grub/x86_64-efi/fat.mod
/boot/grub/x86_64-efi/crc64.mod
/boot/grub/x86_64-efi/cpio.mod
/boot/grub/x86_64-efi/part_bsd.mod
/boot/grub/x86_64-efi/lzopio.mod
/boot/grub/x86_64-efi/password_pbkdf2.mod
/boot/grub/x86_64-efi/msdospart.mod
/boot/grub/x86_64-efi/bufio.mod
/boot/grub/x86_64-efi/xfs.mod
/boot/grub/x86_64-efi/usbtest.mod
/boot/grub/x86_64-efi/efi_uga.mod
/boot/grub/x86_64-efi/bsd.mod
/boot/grub/x86_64-efi/gcry_cast5.mod
/boot/grub/x86_64-efi/loadbios.mod
/boot/grub/x86_64-efi/raid5rec.mod
/boot/grub/x86_64-efi/search.mod
/boot/grub/x86_64-efi/exfctest.mod
/boot/grub/x86_64-efi/help.mod
/boot/grub/x86_64-efi/xnu_uuid.mod
/boot/grub/x86_64-efi/ufs1_be.mod
/boot/grub/x86_64-efi/ctz_test.mod
/boot/grub/x86_64-efi/cpuid.mod
/boot/grub/x86_64-efi/video.mod
/boot/grub/x86_64-efi/crypto.mod
/boot/grub/x86_64-efi/font.mod
/boot/grub/x86_64-efi/multiboot2.mod
/boot/grub/x86_64-efi/usbserial_pl2303.mod
/boot/grub/x86_64-efi/signature_test.mod
/boot/grub/x86_64-efi/cmdline_cat_test.mod
/boot/grub/x86_64-efi/cs5536.mod
/boot/grub/x86_64-efi/cmp.mod
/boot/grub/x86_64-efi/afsplitter.mod
/boot/grub/x86_64-efi/test_blockarg.mod
/boot/grub/x86_64-efi/terminal.mod
/boot/grub/x86_64-efi/memdisk.mod
/boot/grub/x86_64-efi/serial.mod
/boot/grub/x86_64-efi/gcry_sha256.mod
/boot/grub/x86_64-efi/testload.mod
/boot/grub/x86_64-efi/probe.mod
/boot/grub/x86_64-efi/cbfs.mod
/boot/grub/x86_64-efi/testspeed.mod
/boot/grub/x86_64-efi/ldm.mod
/boot/grub/x86_64-efi/usbms.mod
/boot/grub/x86_64-efi/minix_be.mod
/boot/grub/x86_64-efi/gzio.mod
/boot/grub/x86_64-efi/efitextmode.mod
/boot/grub/x86_64-efi/jpeg.mod
/boot/grub/x86_64-efi/part_amiga.mod
/boot/grub/x86_64-efi/raid6rec.mod
/boot/grub/x86_64-efi/pbkdf2.mod
/boot/grub/x86_64-efi/efi_gop.mod
/boot/grub/x86_64-efi/progress.mod
/boot/grub/x86_64-efi/lsefimmap.mod
/boot/grub/x86_64-efi/ohci.mod
/boot/grub/x86_64-efi/jfs.mod
/boot/grub/x86_64-efi/chain.mod
/boot/grub/x86_64-efi/newc.mod
/boot/grub/x86_64-efi/archelp.mod
/boot/grub/x86_64-efi/reiserfs.mod
/boot/grub/x86_64-efi/cryptodisk.mod
/boot/grub/x86_64-efi/search_fs_uuid.mod
/boot/grub/x86_64-efi/cacheinfo.mod
/boot/grub/x86_64-efi/macbless.mod
/boot/grub/x86_64-efi/bitmap_scale.mod
/boot/grub/x86_64-efi/linux.mod
/boot/grub/x86_64-efi/tr.mod
/boot/grub/x86_64-efi/read.mod
/boot/grub/x86_64-efi/halt.mod
/boot/grub/x86_64-efi/bitmap.mod
/boot/grub/x86_64-efi/loopback.mod
/boot/grub/x86_64-efi/trig.mod
/boot/grub/x86_64-efi/hdparm.mod
/boot/grub/x86_64-efi/mmap.mod
/boot/grub/x86_64-efi/lsefisystab.mod
/boot/grub/x86_64-efi/uhci.mod
/boot/grub/x86_64-efi/ntfscomp.mod
/boot/grub/x86_64-efi/configfile.mod
/boot/grub/x86_64-efi/hfspluscomp.mod
/boot/grub/x86_64-efi/syslinuxcfg.mod
/boot/grub/x86_64-efi/minix2.mod
/boot/grub/x86_64-efi/part_gpt.mod
/boot/grub/x86_64-efi/hashsum.mod
/boot/grub/x86_64-efi/zstd.mod
/boot/grub/x86_64-efi/usbserial_ftdi.mod
/boot/grub/x86_64-efi/http.mod
/boot/grub/x86_64-efi/usb_keyboard.mod
/boot/grub/x86_64-efi/gcry_twofish.mod
/boot/grub/x86_64-efi/gcry_blowfish.mod
/boot/grub/x86_64-efi/minix.mod
/boot/grub/x86_64-efi/gcry_tiger.mod
/boot/grub/x86_64-efi/cbtable.mod
/boot/grub/x86_64-efi/json.mod
/boot/grub/x86_64-efi/xzio.mod
/boot/grub/x86_64-efi/pgp.mod
/boot/grub/x86_64-efi/gcry_md5.mod
/boot/grub/x86_64-efi/gcry_rijndael.mod
/boot/grub/x86_64-efi/all_video.mod
/boot/grub/x86_64-efi/diskfilter.mod
/boot/grub/x86_64-efi/part_sunpc.mod
/boot/grub/x86_64-efi/mul_test.mod
/boot/grub/x86_64-efi/cat.mod
/boot/grub/x86_64-efi/offsetio.mod
/boot/grub/x86_64-efi/random.mod
/boot/grub/x86_64-efi/video_colors.mod
/boot/grub/x86_64-efi/datehook.mod
/boot/grub/x86_64-efi/terminfo.mod
/boot/grub/x86_64-efi/part_dfly.mod
/boot/grub/x86_64-efi/mdraid09_be.mod
/boot/grub/x86_64-efi/setpci.mod
/boot/grub/x86_64-efi/adler32.mod
/boot/grub/x86_64-efi/reboot.mod
/boot/grub/x86_64-efi/fshelp.mod
/boot/grub/x86_64-efi/legacy_password_test.mod
/boot/grub/x86_64-efi/tpm.mod
/boot/grub/x86_64-efi/udf.mod
/boot/grub/x86_64-efi/shift_test.mod
/boot/grub/x86_64-efi/gfxterm.mod
/boot/grub/x86_64-efi/part_acorn.mod
/boot/grub/x86_64-efi/extcmd.mod
/boot/grub/x86_64-efi/sleep_test.mod
/boot/grub/x86_64-efi/ahci.mod
/boot/grub/x86_64-efi/morse.mod
/boot/grub/x86_64-efi/at_keyboard.mod
/boot/grub/x86_64-efi/memrw.mod
/boot/grub/x86_64-efi/true.mod
/boot/grub/x86_64-efi/mdraid09.mod
/boot/grub/x86_64-efi/lsmmap.mod
/boot/grub/x86_64-efi/video_bochs.mod
/boot/grub/x86_64-efi/gcry_md4.mod
/boot/grub/x86_64-efi/password.mod
/boot/grub/x86_64-efi/pata.mod
/boot/grub/x86_64-efi/romfs.mod
/boot/grub/x86_64-efi/linux16.mod
/boot/grub/x86_64-efi/moddep.lst
/boot/grub/x86_64-efi/command.lst
/boot/grub/x86_64-efi/fs.lst
/boot/grub/x86_64-efi/partmap.lst
/boot/grub/x86_64-efi/parttool.lst
/boot/grub/x86_64-efi/video.lst
/boot/grub/x86_64-efi/crypto.lst
/boot/grub/x86_64-efi/terminal.lst
/boot/grub/x86_64-efi/modinfo.sh
/boot/grub/x86_64-efi/core.efi
/boot/grub/x86_64-efi/grub.efi
/boot/grub/locale
/boot/grub/locale/fi.mo
/boot/grub/locale/zh_TW.mo
/boot/grub/locale/sl.mo
/boot/grub/locale/uk.mo
/boot/grub/locale/en@greek.mo
/boot/grub/locale/vi.mo
/boot/grub/locale/es.mo
/boot/grub/locale/nb.mo
/boot/grub/locale/hr.mo
/boot/grub/locale/ast.mo
/boot/grub/locale/eo.mo
/boot/grub/locale/pa.mo
/boot/grub/locale/sr.mo
/boot/grub/locale/de.mo
/boot/grub/locale/ja.mo
/boot/grub/locale/ko.mo
/boot/grub/locale/ca.mo
/boot/grub/locale/en@cyrillic.mo
/boot/grub/locale/ru.mo
/boot/grub/locale/en@arabic.mo
/boot/grub/locale/it.mo
/boot/grub/locale/de_CH.mo
/boot/grub/locale/zh_CN.mo
/boot/grub/locale/fr.mo
/boot/grub/locale/en@hebrew.mo
/boot/grub/locale/tr.mo
/boot/grub/locale/en@quot.mo
/boot/grub/locale/pl.mo
/boot/grub/locale/lg.mo
/boot/grub/locale/en@piglatin.mo
/boot/grub/locale/ro.mo
/boot/grub/locale/pt_BR.mo
/boot/grub/locale/lt.mo
/boot/grub/locale/id.mo
/boot/grub/locale/sv.mo
/boot/grub/locale/ka.mo
/boot/grub/locale/hu.mo
/boot/grub/locale/gl.mo
/boot/grub/locale/nl.mo
/boot/grub/locale/de@hebrew.mo
/boot/grub/locale/pt.mo
/boot/grub/locale/da.mo
/boot/grub/themes
/boot/grub/themes/starfield
/boot/grub/themes/starfield/terminal_box_n.png
/boot/grub/themes/starfield/boot_menu_ne.png
/boot/grub/themes/starfield/slider_c.png
/boot/grub/themes/starfield/terminal_box_ne.png
/boot/grub/themes/starfield/terminal_box_s.png
/boot/grub/themes/starfield/theme.txt
/boot/grub/themes/starfield/terminal_box_e.png
/boot/grub/themes/starfield/COPYING.CC-BY-SA-3.0
/boot/grub/themes/starfield/boot_menu_sw.png
/boot/grub/themes/starfield/slider_n.png
/boot/grub/themes/starfield/boot_menu_nw.png
/boot/grub/themes/starfield/boot_menu_n.png
/boot/grub/themes/starfield/dejavu_16.pf2
/boot/grub/themes/starfield/dejavu_bold_14.pf2
/boot/grub/themes/starfield/slider_s.png
/boot/grub/themes/starfield/dejavu_10.pf2
/boot/grub/themes/starfield/blob_w.png
/boot/grub/themes/starfield/dejavu_12.pf2
/boot/grub/themes/starfield/terminal_box_c.png
/boot/grub/themes/starfield/terminal_box_nw.png
/boot/grub/themes/starfield/dejavu_14.pf2
/boot/grub/themes/starfield/terminal_box_sw.png
/boot/grub/themes/starfield/boot_menu_e.png
/boot/grub/themes/starfield/terminal_box_w.png
/boot/grub/themes/starfield/boot_menu_w.png
/boot/grub/themes/starfield/README
/boot/grub/themes/starfield/starfield.png
/boot/grub/themes/starfield/boot_menu_s.png
/boot/grub/themes/starfield/boot_menu_se.png
/boot/grub/themes/starfield/boot_menu_c.png
/boot/grub/themes/starfield/terminal_box_se.png
/boot/grub/fonts
/boot/grub/fonts/unicode.pf2
/boot/grub/grubenv
/boot/grub/grub.cfg
Model: ATA WD Blue SA510 M. (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                          Flags
 1      1049kB  578MB   577MB   fat32           EFI system partition          boot, esp
 2      578MB   595MB   16.8MB                  Microsoft reserved partition  msftres
 3      595MB   498GB   497GB   ntfs            Basic data partition          msftdata
 4      498GB   499GB   556MB   ntfs                                          hidden, diag
 5      499GB   507GB   8590MB  linux-swap(v1)                                swap
 6      507GB   1000GB  493GB   ext4


Model: Corsair Survivor 3.0 (scsi)
Disk /dev/sdb: 31.0GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name                 Flags
 1      1049kB  31.0GB  31.0GB  fat32        Main Data Partition  msftdata

os-prober outputs nothing.

Offline

#4 2022-12-21 18:31:40

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Can't detect Windows bootloader with os-prober

That is confusing. I was thinking that perhaps you've encountered https://bugs.debian.org/cgi-bin/bugrepo … bug=995063 but clearly not.

Does a manual stanza in /boot/grub/custom.cfg get Windows booting?

For example (replace $uuid with the actual filesystem UUID of the EFI system partition):

menuentry 'Windows' {
   search.fs_uuid $uuid
   chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

Offline

#5 2022-12-22 02:34:53

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,131

Re: Can't detect Windows bootloader with os-prober

For what it's worth, I'm not sure installing rEFInd would report finding Windows. I've never used the install script but it isn't like grub. Grub searches for OSes when you create the configuration file. rEFInd searches when you boot. (Unless you configure it not to do its thing automatically.) So not finding Windows at install time may be fine. It probably didn't look yet.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#6 2022-12-22 07:57:51

jcr
Member
Registered: 2022-12-21
Posts: 19

Re: Can't detect Windows bootloader with os-prober

Head_on_a_Stick wrote:

That is confusing. I was thinking that perhaps you've encountered https://bugs.debian.org/cgi-bin/bugrepo … bug=995063 but clearly not.

Does a manual stanza in /boot/grub/custom.cfg get Windows booting?

For example (replace $uuid with the actual filesystem UUID of the EFI system partition):

menuentry 'Windows' {
   search.fs_uuid $uuid
   chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}

This works and gets windows booting no problem. I get this is not a permanent solution though ? Any update on grub would get it to generate a now config file that would erase that entry ?

cfr wrote:

For what it's worth, I'm not sure installing rEFInd would report finding Windows. I've never used the install script but it isn't like grub. Grub searches for OSes when you create the configuration file. rEFInd searches when you boot. (Unless you configure it not to do its thing automatically.) So not finding Windows at install time may be fine. It probably didn't look yet.

Thanks for the info. The install script did generate some kind of config file on the boot partition, and that's what I looked at, but not knowing anything about it I guess that might be completely irrelevant.

Last edited by jcr (2022-12-22 07:58:15)

Offline

#7 2022-12-22 15:55:15

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Can't detect Windows bootloader with os-prober

jcr wrote:

This works and gets windows booting no problem. I get this is not a permanent solution though ? Any update on grub would get it to generate a now config file that would erase that entry ?

Actually it is permanent — /boot/grub/custom.cfg is sourced as part of the grub.cfg created by grub-mkconfig so the menuentry will remain even if grub.cfg is re-generated.

But os-prober should work so perhaps a bug report is called for here. It is provided by the debian-installer team:

https://wiki.debian.org/DebianInstaller/Bugs

Offline

#8 2022-12-22 17:01:09

jcr
Member
Registered: 2022-12-21
Posts: 19

Re: Can't detect Windows bootloader with os-prober

Ok. Thanks a lot for your help. I'll report that tomorrow in the hope I can help some people out.

Offline

#9 2022-12-23 19:33:34

GrimBandito
Member
Registered: 2016-12-04
Posts: 41

Re: Can't detect Windows bootloader with os-prober

Hi, did you remember to install the filesystem - namely ntfs3g? Otherwise Arch and GRUB will be unable to detect a Windows installation.

Happy Christmas.

Offline

#10 2022-12-23 22:36:54

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Can't detect Windows bootloader with os-prober

GrimBandito wrote:

did you remember to install the filesystem - namely ntfs3g? Otherwise Arch and GRUB will be unable to detect a Windows installation

The OP's Windows installation is UEFI so the bootloader is on a FAT filesystem.

Offline

#11 2022-12-26 13:24:33

blurm
Member
Registered: 2022-12-26
Posts: 1

Re: Can't detect Windows bootloader with os-prober

Reboot your system after 'grub-mkconfig'
Then:
mkdir /mnt2
# sdc2 is windows' efi partition
mount /dev/sdc2 /mnt2
# here os-prober should find the windows entry
grub-mkconfig -o  /boot/grub/grub.cfg

I tried mount the windows' efi at the first place but no luck, since I'm kind of noob of linux, have no idea why reboot fix it.
It's not a perfect solution but should do the job

Offline

#12 2022-12-26 13:27:53

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,680
Website

Re: Can't detect Windows bootloader with os-prober

@blurm: the OP ensured that the Windows ESP was mounted, they even checked for bootmgfw.efi, and that file was bootable from a custom menuentry. Please actually *read* the thread before adding noise.

Offline

#13 2023-01-13 20:43:45

c_alzate
Member
Registered: 2023-01-13
Posts: 3

Re: Can't detect Windows bootloader with os-prober

Maybe it can help.

I was configuring my grub some time ago. I booted from a live USB and I mounted the disks to work with them. When I mounted the EFI partition I didn't mounted simply with

 mount /dev/sda1 /mnt/boot 

Instead of that, I used

 mount /dev/sda1 /mnt/boot/efi 

According what I see, you probably can use

 mount /dev/sda1 /mnt/boot/EFI 

And then you can run

 grub-install --target=x86_64-efi --efi-directory=/boot/EFI --bootloader-id=GRUB
 

Finally, type the last commands, and tell us if it works

I was inspired in this post https://kirukiru.es/como-reinstalar-grub-en-arch-linux/

Offline

#14 2023-01-14 00:45:54

HalosGhost
Forum Moderator
From: Twin Cities, MN
Registered: 2012-06-22
Posts: 2,089
Website

Re: Can't detect Windows bootloader with os-prober

c_alzate,

This appears to be a bug encountered by the OP, and they've already received some help troubleshooting which has suggested as much. In addition, while external resources are welcome when helpful, it's almost always a better idea to link to the Arch Wiki where possible.

All the best,

-HG

Offline

Board footer

Powered by FluxBB