I’ve installed EOS last week and decided that I wanted to change the default boot order. I can’t update grub as per Arch wiki instructions. My efforts are shown below:
sudo grub-mkconfig -o /boot/grub/grub.cfg
gives me
zsh: no such file or directory: sudo grub-mkconfig -o /boot/grub/grub.cfg
also
bash: sudo grub-mkconfig -o /boot/grub/grub.cfg: No such file or directory
On a different distro, this would happen if “grub-mkconfig” were in a directory not indicated in “PATH” environment variable. But the error message is strange, it’s indicating the entire line that you typed including “sudo”. It’s something that frustrated me because I still don’t know how to acquire “grub-install” and “grub-mkconfig” if they’re not available. This stumped me in Slackware in particular.
That gave me food for thought. Instead of pasting the command, I typed it out. I have a new error now. Some unwanted characters must’ve come along for the ride.
New error:
/usr/bin/grub-mkconfig: line 265: /boot/grub/grub.cfg.new: No such file or directory
Can you run ls -l /boot? Does the grub directory exist inside /boot?
Also, you said you installed EOS last week. Did you choose grub as your preferred bootloader during the installation? If you installed using the latest ISO, the default bootloader is systemdboot unless you explicitly select grub during installation.