LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Update grub command not working (https://www.linuxquestions.org/questions/linux-newbie-8/update-grub-command-not-working-4175535357/)

Higgsboson 02-28-2015 06:40 AM

Update grub command not working
 
I have made a change to GRUB2 bootloader in etc/default/grub.
Now I need to run 'update grub' for the change to take effect.
However, the 'update grub' command on the terminal is giving this error message:
Code:

root@debian:/# update grub
bash: update: command not found

Can someone please explain why this command is no longer working?

I've had to make a change to grub because I tried to install a new distro which meant I had to alter grub.
The install wasn't successful so I deleted the grub file and then re-installed it.
The re-installed grub needs a change so I can get sound on my pc.
However, I can't add these changes because the 'update grub' command doesn't work.

I've checked the grub file with another debian distro and they are both the same.
So now I don't know if I need to check if a different grub file is the problem or anything else.
Can someone help?

syg00 02-28-2015 07:00 AM

Type in update and hit the <Tab> key twice (quickly).
See what the command should have been.

Head_on_a_Stick 02-28-2015 07:37 AM

Code:

# update-grub

Higgsboson 02-28-2015 07:57 AM

Quote:

Originally Posted by syg00 (Post 5324657)
Type in update and hit the <Tab> key twice (quickly).
See what the command should have been.

That's a nice tool. I'll have to try and remember it. Thank you.

The correct option on the long list hasn't appeared unfortunately.

Higgsboson 02-28-2015 08:06 AM

Quote:

Originally Posted by Head_on_a_Stick (Post 5324678)
# update-grub

Thank you, this has sorted me out!
It's not
Code:

update grub
it's
Code:

update-grub
The guy who created grub doesn't seem to have followed the linux syntax rules for new commands.
That's just great.

Head_on_a_Stick 02-28-2015 08:14 AM

Quote:

Originally Posted by Higgsboson (Post 5324687)
Thank you, this has sorted me out!
It's not
Code:

update grub
it's
Code:

update-grub
The guy who created grub doesn't seem to have followed the linux syntax rules for new commands.
That's just great.

You're welcome :)

The `update-grub` command is actually just a script which executes `grub-mkconfig -o /boot/grub/grub.cfg` (`grub-mkconfig` is also a script).

syg00 02-28-2015 07:51 PM

Quote:

Originally Posted by Higgsboson (Post 5324687)
The guy who created grub doesn't seem to have followed the linux syntax rules for new commands.

Blame the Debian/Ubuntu devs - this is not part of grub.

Higgsboson 03-01-2015 07:01 AM

Quote:

Originally Posted by syg00 (Post 5324917)
Blame the Debian/Ubuntu devs - this is not part of grub.

Thanks, that's good to know.

The problem with these linux developers is they don't follow convention - they like to do their own thing and make everything complicated.

Then private companies come in, make something like Ubuntu and run away with all the customers!

All Microsoft has to do is make a Debian-clone, make it simple and get people to pay for it!
It will sell like hot cakes!


All times are GMT -5. The time now is 08:54 AM.