You are not logged in.

#1 2022-08-24 18:45:11

adumitras
Member
Registered: 2022-08-24
Posts: 2

Grub not detecting Wndows 10 in dual boot, after installation.

Hello Arch community.

I'm having troubles creating a proper dual boot with Arch Linux and Windows 10.
I have the following partitions (AMD processor):

Device                Start              End        Sectors       Size    Type
/dev/nvme0n1p1         2048           206847         204800       100M    EFI System
/dev/nvme0n1p2       206848           239615          32768        16M    Microsoft reserved
/dev/nvme0n1p3       239616        516975244      516735629     246.4G    Microsoft basic data
/dev/nvme0n1p4    975728640        976771071        1042432       509M    Windows recovery environment
/dev/nvme0n1p5    516976640        975728639      458752000     218.8G    Linux filesystem

Until now I know that Windows 10 is installed on the nvme0n1p3 partition and that nvme0n1p1 is responsible for the Windows boot loader. I added the fifth partition to these, the vnvme0n1p5 partition, where I installed the root folders of my arch system, After formating and mounting the root partition, I executed the following commands in order to create a boot bridge between the 2 operating systems:

mkdir /boot/efi
mount /dev/nvme0n1p1 /boot/efi

Then, I installed the grub and some additional packages:

pacman -S grub efibootmgr dosfstools mtools

I edited the grub file, uncomenting the last line with the following option:

vim /etc/default/grub
GRUB_DISBLE_OS_PROBER=false

The os-prober was installed with pacman, then the following command was run:

grub-install --target=86_64-efi --bootloader-id=grub_uefi --recheck

Then this:

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

and this is my result:

Generating grub configuration file...
Found linux imge: /boot/vmlinuz-linux
Found initrd image: /boot/amd-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: amd-ucode.img initramfs-linux-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.
Adding boot menu entry for UEFI Firmware Settings...
done

The problem is that Windows is not shown in the above output and when I'm booting the PC, only the Arch Linux appears.
How can I fix this problem? (keeping in mind that I have the GRUB_DISBLE_OS_PROBER set to false inside the grub file)
I would like to have Windows 10 and Arch Linux alongside in the boot menu when turning on the PC.

Please help! smile
Thank you in advance.

Last edited by adumitras (2022-08-24 18:48:31)

Offline

#2 2022-08-24 19:19:49

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: Grub not detecting Wndows 10 in dual boot, after installation.

What happens if you run it manually?

$ sudo os-prober

Is Windows encrypted with bitlocker or similar?


sys2064

Offline

#3 2022-08-24 19:50:07

adumitras
Member
Registered: 2022-08-24
Posts: 2

Re: Grub not detecting Wndows 10 in dual boot, after installation.

Nope. I have no Bitlocker.
And I tryed with sudo op-prober.. but, no visible change.

Offline

#4 2022-08-24 22:34:49

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: Grub not detecting Wndows 10 in dual boot, after installation.

Does it boot with BIOS boot selection?
Did you mount the partition? Does it look sane?
If so, create a manual grub entry (as described in the wiki).


sys2064

Offline

Board footer

Powered by FluxBB