LinuxQuestions.org
Visit the LQ Articles and Editorials section
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, 03:33 AM   #1
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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 TheIndependentAquarius; 02-23-2011 at 04:49 AM. Reason: Edited out the 'grub-install' error, it works as 'sudo /usr/sbin/grub-install'
 
Old 02-23-2011, 03:43 AM   #2
corp769
Guru
 
Registered: Apr 2005
Posts: 5,814

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

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

Rep: Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055Reputation: 1055
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, 03:49 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,988

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
What version of grub?
 
Old 02-23-2011, 03:59 AM   #5
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Original Poster
Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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, 04:02 AM   #6
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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, 04:04 AM   #7
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Original Poster
Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897

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

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
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, 04:05 AM   #9
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
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 04:06 AM.
 
1 members found this post helpful.
Old 02-23-2011, 04:06 AM   #10
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Original Poster
Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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, 04:07 AM   #11
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

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

Kind regards,

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

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
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, 04:10 AM   #13
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Original Poster
Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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, 04:13 AM   #14
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,622
Blog Entries: 29

Original Poster
Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
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, 04:19 AM   #15
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 5,988

Rep: Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544Reputation: 544
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


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


All times are GMT -5. The time now is 12:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration