LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06:40 AM   #1
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 50
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, 07:00 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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, 07:37 AM   #3
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Code:
# update-grub
 
1 members found this post helpful.
Old 02-28-2015, 07: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: 50
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, 08: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: 50
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, 08:14 AM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
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, 07:51 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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, 07: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: 50
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



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 08:16 PM
[SOLVED] Recurring Grub rescue mode after update-grub harris4got Linux - Software 6 04-23-2012 09:30 AM
update-grub: command not found utkarshrawat Linux - Newbie 2 06-16-2011 02:42 AM
[SOLVED] update-grub: command not found, in OpenSuse 11.2 Aquarius_Girl Linux - Newbie 18 02-27-2011 06:42 AM
Grub Rescue No such partition, No command except ls and set working amolgupta Linux - General 1 09-27-2010 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 PM.

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
Open Source Consulting | Domain Registration