LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [Solved] Attempting to update grub results in error "no such file or directory" (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bsolved%5D-attempting-to-update-grub-results-in-error-no-such-file-or-directory-4175598744/)

Blixtrande 02-01-2017 01:34 PM

[Solved] Attempting to update grub results in error "no such file or directory"
 
Relatively new to linux, using a fresh install of Solus 1.2.1.

Edited /etc/default/grub, saved it using ctrl+O, and exited using ctrl+X.

I was then going to reboot after using "sudo update-grub", but when I press enter, i get the following error:

"/usr/sbin/grub-mkconfig: line 232: /boot/grub/grub.cfg.new: No such file or directory"

I have no idea why I'm getting this error. Any help would be appreciated.

Edit: Got around this by creating a new directory /boot/grub which didn't exist. update-grub worked after this.

Ztcoracat 02-02-2017 11:23 PM

Just out of curiosity what did you add to the /etc/default/grub file?

If you installed a newer kernel the /boot/grub/grub.cfg will be overwritten and you will loose your changes.


All times are GMT -5. The time now is 10:20 PM.