LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2011, 02:33 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Question update-grub: command not found, in OpenSuse 11.2


OpenSuse 11.2

Code:
anisha@linux-uitj:~> sudo update-grub
sudo: update-grub: command not found
Am I missing some point here?

Last edited by Aquarius_Girl; 02-23-2011 at 03:49 AM. Reason: Edited out the 'grub-install' error, it works as 'sudo /usr/sbin/grub-install'
 
Old 02-23-2011, 02:43 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Edited my post. Didn't see the OpenSuse at the top.....My bad!

Last edited by corp769; 02-23-2011 at 02:49 AM.
 
Old 02-23-2011, 02:45 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
From memory those are Debian specific scripts. In classic grub they don't exit - grub2 came out of (predominantly) Ubuntu, so they exist for it.
 
Old 02-23-2011, 02:49 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
What version of grub?
 
Old 02-23-2011, 02:59 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by EDDY1 View Post
What version of grub?
Code:
anisha@linux-uitj:~> grub
Absolute path to 'grub' is '/usr/sbin/grub', so running it may require superuser privileges (eg. root).
Running grub gets me a shell, I don't know how to know the version, I read the man too,
but where to run that version command?

Quote:
Originally Posted by syg00 View Post
From memory those are Debian specific scripts. In classic grub they don't exit - grub2 came out of (predominantly) Ubuntu, so they exist for it.
It seems you are correct, those commands worked in Mint but act like aliens
in Suse,

I found this: http://www.novell.com/documentation/...l/ch07s04.html

But I am not able to understand from the above link, which one corresponds to
update-grub?

I can't try them all without understanding what they do.
 
Old 02-23-2011, 03:02 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello Anisha,

This should give you the version:
Code:
sudo grub-setup --version
At least it did for me:
Code:
grub-setup (GRUB) 1.98+20100804-14
Sure there are other ways but this is one. Hope it helps.

Kind regards,

Eric
 
1 members found this post helpful.
Old 02-23-2011, 03:04 AM   #7
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940

Code:
anisha@linux-uitj:~> sudo grub-setup --version
root's password:
sudo: grub-setup: command not found
anisha@linux-uitj:~>
 
Old 02-23-2011, 03:04 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I'm not sure what suse's package manager is but in debian I've used "apt-get install grub-pc".
Grub2 is a dummy package grub-pc is grub2.

---------- Post added 02-23-11 at 01:04 AM ----------

I'm not sure what suse's package manager is but in debian I've used "apt-get install grub-pc".
Grub2 is a dummy package grub-pc is grub2.
 
Old 02-23-2011, 03:05 AM   #9
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
LOL, You have to be kidding!!

Can you echo your PATH as sudo and post that please?
Code:
sudo echo $PATH
Or even this:
Code:
sudo ls /usr/sbin | grep grub
Kind regards,

Eric

Last edited by EricTRA; 02-23-2011 at 03:06 AM.
 
1 members found this post helpful.
Old 02-23-2011, 03:06 AM   #10
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Code:
anisha@linux-uitj:~> sudo echo $PATH
/opt/qtcreator-2.0.92/bin/:/opt/qtsdk-2010.05/qt/bin/:/opt/qtcreator-2.0.92/bin/:/opt/qtsdk-2010.05/qt/bin/:/usr/lib64/mpi/gcc/openmpi/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin:/usr/lib/qt3/bin
anisha@linux-uitj:~>
 
Old 02-23-2011, 03:07 AM   #11
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Check /usr/sbin for grub, as indicated in my 'edited' post.

Kind regards,

Eric
 
Old 02-23-2011, 03:08 AM   #12
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Do you have an Ubuntu-live-cd desktop version?
http://karuppuswamy.com/wordpress/20...rescue-prompt/

---------- Post added 02-23-11 at 01:08 AM ----------

Do you have an Ubuntu-live-cd desktop version?
http://karuppuswamy.com/wordpress/20...rescue-prompt/
 
Old 02-23-2011, 03:10 AM   #13
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Wow, this shows something interesting Thanks Eric.
Code:
anisha@linux-uitj:~> sudo ls /usr/sbin | grep grub
grub
grub-install
grub-install.unsupported
grub-md5-crypt
grubonce
grub-set-default
anisha@linux-uitj:~>
But how to update Grub?
I found the following quote from the link in post: 5,
Quote:
Any manual change to the device.map file requires that you update your GRUB installation. Use the following command:

grub --batch --device-map=/boot/grub/device.map < /etc/grub.conf
I am not sure it means what I think it means?!?
 
Old 02-23-2011, 03:13 AM   #14
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by EDDY1 View Post
Do you have an Ubuntu-live-cd desktop version?
Thanks, but I have a Mint Live CD, and I know these commands would work with Mint,
but in case something goes wrong I need to find out what works with Suse!
 
Old 02-23-2011, 03:19 AM   #15
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're welcome.
Before you follow the link from post# 5 remember that it refers to grub not grub2.
You'll need documentation for grub2.
 
  


Reply

Tags
grub



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
[SOLVED] grub-install command not found ! debianD Gentoo 3 04-30-2015 12:05 AM
grub error 17, but 'sudo grub' = command not found davidstvz Ubuntu 2 08-02-2010 09:09 AM
grub fdisk command not found pavankonka Linux - Laptop and Netbook 3 02-08-2006 05:06 PM
update-menus: command not found juanjavier_xxx Debian 2 07-16-2005 12:44 PM

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

All times are GMT -5. The time now is 05:52 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
Open Source Consulting | Domain Registration