I have enabled os-prober in my /etc/default/conf/ however whenever I run “sudo update-grub” it tells me that “sudo: update-grub: command not found”
I have no idea what is causing this…
I have enabled os-prober in my /etc/default/conf/ however whenever I run “sudo update-grub” it tells me that “sudo: update-grub: command not found”
I have no idea what is causing this…
Welcome!
This is caused exactly as it says to you - there is no such command.
On Arch the command is:
sudo grub-mkconfig -o /boot/grub/grub.cfg
You can make alias if you want though.
When I run that it gives me this:
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /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
done
Shouldn’t it give me info about os-prober running?
Well, i haven’t used OS-prober really, but i believe it looks ok.
Just in case, you do know how to TTY?
Try this:
sudo pacman -S os-prober
Edit /etc/default/grub and set DISABLE_OS_PROBER=false
The run sudo grub-mkconfig -o /boot/grub/grub.cfg
That’s what it’s supposed to do. The command is to update grub.That’s what i is doing updating the grub configuration file. os-prober is used to detect other os and add them to the grub configuration. You don’t see os-prober. You see the output of the command. If you had a dual boot system and ran os-prober you would see that it detects the other OS as in this example here. When you run the update grub command it use os-prober if the configuration is set to do so and it is installed.
[ricklinux@eos-xfce ~]$ sudo os-prober
[sudo] password for ricklinux:
/dev/nvme0n1p2@/efi/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
[ricklinux@eos-xfce ~]$
As you can see here it detects Windows.
If you would like this to work - you need to install it from the AUR. I’m guessing you’re a Manjaro convert since this isn’t enabled by default here (I use it).
https://aur.archlinux.org/packages/update-grub/
Or as suggested by @keybreak - create your own alias.
Bruh it wasn’t installed. I don’t know why I didn’t think of that.
Yeah I am a Manjaro convert.
sudo grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found theme: /boot/grub/themes/EndeavourOS/theme.txt
Found linux image: /boot/vmlinuz-linux
Found initrd image: /boot/intel-ucode.img /boot/initramfs-linux.img
Found fallback initrd image(s) in /boot: intel-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.
Found EndeavourOS Linux (rolling) on /dev/sda2
Found EndeavourOS Linux (rolling) on /dev/sdb2
Found Windows Boot Manager on /dev/sdc1@/efi/Microsoft/Boot/bootmgfw.efi
Adding boot menu entry for UEFI Firmware Settings ...
done
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.
will show you what will be used on EOS…
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.