Grub not finding windows

Hi,

I just installed Manjaro on the same SSD as windows. While in the grub menu before getting into the OS my windows doesn’t appear. The files are all still there, but grub can’t seem to find it. Even thinks that an other Manjaro is installed on that partition

lsblk gives this:
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 465.8G  0 disk 
└─sda1        8:1    0 465.8G  0 part /run/media/fesa/HD_02
sdb           8:16   0 465.8G  0 disk 
├─sdb1        8:17   0   101M  0 part 
└─sdb2        8:18   0 465.7G  0 part /run/media/fesa/6A2BB57E70C104F7
sdc           8:32   1   7.5G  0 disk 
├─sdc1        8:33   1   3.6G  0 part /run/media/fesa/MANJARO_KDE_212RC1
└─sdc2        8:34   1     4M  0 part /run/media/fesa/MISO_EFI
nvme0n1     259:0    0 465.8G  0 disk 
├─nvme0n1p1 259:1    0   100M  0 part /run/media/fesa/SYSTEM
├─nvme0n1p2 259:2    0 341.8G  0 part /run/media/fesa/OS
├─nvme0n1p3 259:3    0 122.9G  0 part /
└─nvme0n1p4 259:4    0  1000M  0 part /boot/efi

If anyone is able to help me that would be great. I haven’t lost any files so it’s somewhat fine but I’m getting a bit worried cause I’d still like to be able to use windows

Reactivate os-prober with the following command combination in a terminal:

echo GRUB_DISABLE_OS_PROBER=false|sudo tee -a /etc/default/grub && sudo update-grub

Reboot afterwards.

Hii,

thanks a lot for taking the time to look into this. I still didn’t get windows as a boot option. I copied the output of the command, I’ll share it here:
I don’t know how to do that fancy stuff sorry

GRUB_DISABLE_OS_PROBER=false
Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-5.15-x86_64
Found initrd image: /boot/amd-ucode.img /boot/initramfs-5.15-x86_64.img
Found initrd fallback image: /boot/initramfs-5.15-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.
error: invalid volume.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
error: invalid volume.
grub-probe: error: cannot find a GRUB drive for /dev/sda1.  Check your device.map.
Found Manjaro Linux (21.2rc1) on /dev/sdb2
Adding boot menu entry for UEFI Firmware Settings ...
Found memtest86+ image: /boot/memtest86+/memtest.bin
/usr/bin/grub-probe: warning: unknown device type nvme0n1.
done

more helpful would be output of

sudo fdisk -l

Are you sure you installed Windoze and Manjaro in UEFI mode (or both in BIOS mode)?

So far, os-prober does not find any Windoze partition.

1 Like

First output is:

Disk /dev/nvme0n1: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: Samsung SSD 980 500GB                   
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 16384 bytes / 131072 bytes
Disklabel type: dos
Disk identifier: 0x89329bd7

Device         Boot     Start       End   Sectors   Size Id Type
/dev/nvme0n1p1           2048    206847    204800   100M  7 HPFS/NTFS/exFAT
/dev/nvme0n1p2 *       206848 717006847 716800000 341.8G  7 HPFS/NTFS/exFAT
/dev/nvme0n1p3      719054848 976768064 257713217 122.9G 83 Linux
/dev/nvme0n1p4      717006848 719054847   2048000  1000M  b W95 FAT32

Partition table entries are not in disk order.
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500DM002-1BD14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xaa0d2ed6

Device     Boot Start       End   Sectors   Size Id Type
/dev/sda1          63 976771119 976771057 465.8G 42 SFS

Partition 1 does not start on physical sector boundary.
Disk /dev/sdb: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500DM002-1BD14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x2e2f149f

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1       976564224 976771071    206848   101M 27 Hidden NTFS WinRE
/dev/sdb2  *         2048 976564223 976562176 465.7G  7 HPFS/NTFS/exFAT

Partition table entries are not in disk order.
Disk /dev/sdc: 7.47 GiB, 8019509248 bytes, 15663104 sectors
Disk model: Flash Disk      
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: dos
Disk identifier: 0x5178383e

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sdc1  *        2048 15597567 15595520  7.4G  7 HPFS/NTFS/exFAT
/dev/sdc2       15597568 15663103    65536   32M ef EFI (FAT-12/16/32)

And, how would I check the latter?

All your disks are formatted in msdos, i.e. with MBR. Nevertheless, you have an ESP (/dev/sdc2).

What is output of

efibootmgr -v
test -d /sys/firmware/efi && echo efi || echo bios
BootCurrent: 0005
Timeout: 1 seconds
BootOrder: 0005,0000,0001,0006,0007
Boot0000* Manjaro       HD(4,MBR,0x89329bd7,0x2abca800,0x1f4000)/File(\EFI\MANJARO\GRUBX64.EFI)
Boot0001* Hard Drive    BBS(HD,,0x0)..GO..NO........u.S.T.5.0.0.D.M.0.0.2.-.1.B.D.1.4.2....................A........
.........................>..Gd-.;.A..MQ..L.3.Z.0.T.3.0.L.K. . . . . . . . . . . . ........BO..NO........u.S.T.5.0.0.
D.M.0.0.2.-.1.B.D.1.4.2....................A.................................>..Gd-.;.A..MQ..L.3.Z.0.T.6.Z.5.E. . .
. . . . . . . . . ........BO..NO........q.S.a.m.s.u.n.g. .S.S.D. .9.8.0. .5.0.0.G.B....................A............
...............%8..........4..Gd-.;.A..MQ..L.S.6.4.D.N.F.0.R.6.3.5.0.3.5.E........BO
Boot0005* UEFI OS       HD(4,MBR,0x89329bd7,0x2abca800,0x1f4000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0006* UEFI: USB Flash Disk 1100, Partition 2        PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/USB(6,0)/HD(2,MBR,0x5
178383e,0xee0000,0x10000)..BO
Boot0007* USB   BBS(HD,,0x0)..GO..NO........i.U.S.B. .F.l.a.s.h. .D.i.s.k. .1.1.0.0....................A............
.................6..Gd-.;.A..MQ..L.F.B.H.1.1.1.2.1.6.0.3.0.7.0.7.8........BO

Again, thank you so much for helping me

Second command is “efi”

Since you got somehow Manjaro installed in UEFI mode it won’t find Windoze which is installed in BIOS mode. If you want to keep Windoze, re-install Manjaro in BIOS mode. This is achieved by selecting the non-“UEFI” boot entry when booting the live ISO from your BIOS.

I’ll try that now. Thanks a lot. I’ll get back to you after <3

Hello,
Update
error: file ‘/boot/grub/x86_64-efi/normal.mod’ not found.
Entering rescue mode…
grub rescue>

I think something failed :frowning:
Is it possible to download that file from here or? Do I just try to reinstall Manjaro again, it did show BIOS in the installer so I think my pc just did an oopsie

Hi,

I just copied my windows installation to an hard disk and reformatted everything and reinstalled windows. Everything works fine now. Bit scared to try Linux again, so will do it on an a laptop I don’t need for now. Thanks a lot for you help <3