You are not logged in.

#1 2022-03-31 13:52:33

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

[SOLVED`] Adding windows 10 to the grub menu

Hello,
I am having issues with adding Windows 10 option to my grub menu on boot.
I followed this tutorial which involves mounting a the System volume partition and then regenerating the grub config: https://linux.afnom.net/post-install/os-prober.html

I checked it with "os-prober" and the windows partition is successfully found:

❯ sudo os-prober    
/dev/nvme0n1p1:Windows 10:Windows:chain

Regenerating also passed without errors but after rebooting I could not see a menu entry for windows...

Here is the output of lsblk --fs:

NAME        FSTYPE FSVER LABEL           UUID                                 FSAVAIL FSUSE% MOUNTPOINTS
mmcblk0                                                                                      
└─mmcblk0p1 ntfs                         687E8FEA7E8FAEFE                                    
nvme1n1                                                                                      
└─nvme1n1p1 ext4   1.0                   a264c5a0-23e3-4127-97ba-db852d76d3c5  356.9G    17% /
nvme0n1                                                                                      
├─nvme0n1p1 ntfs         System Reserved EC4E21194E20DE58                                    
└─nvme0n1p2 ntfs                         E0662330662306BE                         

I am running both windows and linux on BIOS, they are installed on differen drives while linux was installed first. By default, system boots to linux.
Any help would be gladly appreciated

Last edited by othersamo_ (2022-04-02 13:55:18)


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#2 2022-03-31 14:12:19

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,484
Website

Re: [SOLVED`] Adding windows 10 to the grub menu

You followed an unsupported guide for dual booting Windows 10 with Manjaro ... so why are you asking here?  If you are running Manjaro, then this is definitely the wrong place.  If you are using arch linux you should follow our wiki, or otherwise pose your question to the author of the tutorial you are following.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-03-31 14:29:18

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED`] Adding windows 10 to the grub menu

Trilby wrote:

You followed an unsupported guide for dual booting Windows 10 with Manjaro ... so why are you asking here?  If you are running Manjaro, then this is definitely the wrong place.  If you are using arch linux you should follow our wiki, or otherwise pose your question to the author of the tutorial you are following.

I am running arch linux, If I did not, I would not ask there.

I also checked the official wiki, I am told to add the following to the /boot/grub/grub.cfg:

if [ "${grub_platform}" == "pc" ]; then
	menuentry "Microsoft Windows Vista/7/8/8.1/10 BIOS/MBR" {
		insmod part_msdos
		insmod ntfs
		insmod ntldr
		search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 XXXXXXXXXXXXXXXX
		ntldr /bootmgr
	}
fi

Does it matter where is it put? my grub configuration file is listed here: https://pastebin.com/E4eDymxT
I am also a bit worried because at the beginning it is explicitly told not to modify that file...

Thank you


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

#4 2022-03-31 21:10:46

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,285

Re: [SOLVED`] Adding windows 10 to the grub menu

It's told to not modify the file because it has been generated with grub-mkconfig, as long as you don't rerun mkconfig you can edit that file however you want. However if you wanted to use that make sure to replace the placeholders with actual information from your real system.

FWIW regarding the original issue did you run grub-mkconfig blindly or actually read it's output? os-probing with mkconfig will be disabled unless you enable it in your /etc/default/grub and it will tell you so during config generation on your terminal.

Last edited by V1del (2022-03-31 21:11:24)

Offline

#5 2022-04-02 13:54:56

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED`] Adding windows 10 to the grub menu

Eventually I managed to solve it but enabling OS-PROBER  in config of grub, running os-prober and then running grub-mkconfig. Thank you for assistance!


"Why join the navy if you can be a pirate?"
- Steve Jobs

Offline

Board footer

Powered by FluxBB