LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2015, 07:40 AM   #1
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 49
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?
 
Old 02-28-2015, 08:00 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Type in update and hit the <Tab> key twice (quickly).
See what the command should have been.
 
1 members found this post helpful.
Old 02-28-2015, 08:37 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Code:
# update-grub
 
1 members found this post helpful.
Old 02-28-2015, 08:57 AM   #4
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by syg00 View Post
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.
 
Old 02-28-2015, 09:06 AM   #5
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by Head_on_a_Stick View Post
# 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.
 
Old 02-28-2015, 09:14 AM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Arch & Debian
Posts: 1,183

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by Higgsboson View Post
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).
 
Old 02-28-2015, 08:51 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,838

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
Quote:
Originally Posted by Higgsboson View Post
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.
 
Old 03-01-2015, 08:01 AM   #8
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by syg00 View Post
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sudo apt-get update command not working zeeshanayub Linux - Newbie 1 10-21-2014 09:16 PM
[SOLVED] Recurring Grub rescue mode after update-grub harris4got Linux - Software 6 04-23-2012 10:30 AM
update-grub: command not found utkarshrawat Linux - Newbie 2 06-16-2011 03:42 AM
[SOLVED] update-grub: command not found, in OpenSuse 11.2 TheIndependentAquarius Linux - Newbie 18 02-27-2011 07:42 AM
Grub Rescue No such partition, No command except ls and set working amolgupta Linux - General 1 09-27-2010 07:08 PM


All times are GMT -5. The time now is 06:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration