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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
02-23-2011, 02:33 AM
#1
Senior Member
Registered: Dec 2008
Posts: 4,731
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'
02-23-2011, 02:43 AM
#2
LQ Guru
Registered: Apr 2005
Location: /dev/null
Posts: 5,818
Edited my post. Didn't see the OpenSuse at the top.....My bad!
Last edited by corp769; 02-23-2011 at 02:49 AM .
02-23-2011, 02:45 AM
#3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128
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.
02-23-2011, 02:49 AM
#4
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
What version of grub?
02-23-2011, 02:59 AM
#5
Senior Member
Registered: Dec 2008
Posts: 4,731
Original Poster
Quote:
Originally Posted by
EDDY1
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
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.
02-23-2011, 03:02 AM
#6
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
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.
02-23-2011, 03:04 AM
#7
Senior Member
Registered: Dec 2008
Posts: 4,731
Original Poster
Code:
anisha@linux-uitj:~> sudo grub-setup --version
root's password:
sudo: grub-setup: command not found
anisha@linux-uitj:~>
02-23-2011, 03:04 AM
#8
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
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.
02-23-2011, 03:05 AM
#9
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
LOL, You have to be kidding!!
Can you echo your PATH as sudo and post that please?
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.
02-23-2011, 03:06 AM
#10
Senior Member
Registered: Dec 2008
Posts: 4,731
Original Poster
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:~>
02-23-2011, 03:07 AM
#11
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Hi,
Check /usr/sbin for grub, as indicated in my 'edited' post.
Kind regards,
Eric
02-23-2011, 03:10 AM
#13
Senior Member
Registered: Dec 2008
Posts: 4,731
Original Poster
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?!?
02-23-2011, 03:13 AM
#14
Senior Member
Registered: Dec 2008
Posts: 4,731
Original Poster
Quote:
Originally Posted by
EDDY1
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!
02-23-2011, 03:19 AM
#15
LQ Addict
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841
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.
All times are GMT -5. The time now is 05:52 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News