You are not logged in.
Pages: 1
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
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
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
From GRUB#Detecting_other_operating_systems
Then re-run grub-mkconfig
Offline
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
No this can't break your system, you simply added a custom loader without relying on os-prober detection.
Offline
Pages: 1