Jump to content
  • 0
Sign in to follow this  
TechnoJunky

can't update grub

Question

I just installed Bodhi.  One of the steps that I take when installing/reinstalling Linux is to modify grub.  I've edited /etc/default/grub but when I run 'sudo update-grub2', it errors with "/usr/sbin/grub-mkconfig: 12: /etc/default/grub: to: not found".  Any idea why?

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

/usr/sbin/grub-mkconfig is the script that is executed when you issue the command update-grub (or update-grub2).

 

The error suggests that the file '/etc/default/grub' does not exist.

 

Can you check the results for 

ls -l /etc/default/ | grep grub

And post the outcome here.

What did you use to edit the file? Did you save it right?

 

Enjoy,

Charles

Share this post


Link to post
Share on other sites
  • 0

I get the following output when running the suggested command:

-rw-r--r-- 1 root root 1275 Feb  7 13:26 grub
-rw-r--r-- 1 root root 1343 Dec  5 14:24 grub.bodhi
-rw-r--r-- 1 root root 1237 Jan 26  2017 grub.ucf-dist
-rw-r--r-- 1 root root 1343 Feb  7 12:56 grub.ucf-old
 

I used epad, and yes I saved it right, the change is still present in the file.  FYI, I disable IPv6 due to a limitation with my VPN provider, and also force the menu to show during boot.

I normally use Kate with KDE, but since I'm trying Bodhi, I didn't install Kate or other KDE packages.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×