You are not logged in.

#1 2022-06-05 13:18:39

GauravGhosh
Member
Registered: 2022-06-05
Posts: 16

[SOLVED] Other OS not visible in grub menu

I recently installed arch on my pc. I had windows 10 and I installed grub boot loader on windows 10 disk that is `dev/sda` and then I had to reboot to go to my arch system but windows didn't appear in the grub bootloader and I also ran `sudo os-prober` but it gave no output and then I thought might be it doesn't show any output so I tried to run `sudo update-grub` but it showed there is no such command. Please help me to fix this!!

Last edited by GauravGhosh (2022-06-19 14:50:19)

Offline

#2 2022-06-05 13:48:38

SimonJ
Member
From: Spain
Registered: 2021-05-11
Posts: 345
Website

Re: [SOLVED] Other OS not visible in grub menu

There is no update-grub this is correct, as per the wiki

Use the grub-mkconfig tool to generate /boot/grub/grub.cfg:

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

Also in the wiki

Detecting other operating systems
GRUB_DISABLE_OS_PROBER=false

Both items are on this page https://wiki.archlinux.org/title/GRUB#Installation


Rlu: 222126

Offline

#3 2022-06-05 14:57:59

GauravGhosh
Member
Registered: 2022-06-05
Posts: 16

Re: [SOLVED] Other OS not visible in grub menu

Hmm.... I have installed the system as I mentioned above can't I changed it from there because I have already installed the grub bootloader and the wiki article you mentioned is of grub install method but since the grub is already installed I think I can't proceed with that method.

Offline

#4 2022-06-05 16:09:57

loqs
Member
Registered: 2014-03-06
Posts: 18,967

Re: [SOLVED] Other OS not visible in grub menu

From GRUB#Detecting_other_operating_systems

wiki wrote:

Then re-run grub-mkconfig

Offline

#5 2022-06-06 09:10:53

GauravGhosh
Member
Registered: 2022-06-05
Posts: 16

Re: [SOLVED] Other OS not visible in grub menu

I am not able to connect NTFS file system I used `$ sudo mount /dev/sda1` and the error is `mounted: /mnt: unknown filesystem type 'ntfs'.
Dmesg(1) may have more information after failed mount system call`

And I have added:
menuentry "Windows" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
chainloader +1
}
To /etc/grub.d/40_custom
And added `GRUB_DISABLE_OS_PROBER=false` to /etc/default/grub
And also ran `sudo grub-mkconfig -o /boot/grub/grub.cfg` but it didn't show any thing like os added or detected but when I shut down and again turn on the pc it showed windows and when I selected that it booted into windows 10. Now my question is can this break my system?

Last edited by GauravGhosh (2022-06-06 09:15:32)

Offline

#6 2022-06-06 15:23:15

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

Re: [SOLVED] Other OS not visible in grub menu

No this can't break your system, you simply added a custom loader without relying on os-prober detection.

Offline

Board footer

Powered by FluxBB