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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-23-2011, 02:33 AM
|
#1
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
|
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 Anisha Kaul; 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
|
|
Guru
Registered: Apr 2005
Location: /dev/null
Distribution: technixOS
Posts: 5,723
|
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: 11,234
|
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
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,171
|
What version of grub?
|
|
|
|
02-23-2011, 02:59 AM
|
#5
|
|
Senior Member
Registered: Dec 2008
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
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
|
|
Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,796
|
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
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
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
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,171
|
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
|
|
Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,796
|
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
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
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
|
|
Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 18 with Awesome WM
Posts: 6,796
|
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
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
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
Location: Gurgaon, India
Distribution: OpenSUSE 11.4
Posts: 4,581
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
|
|
Senior Member
Registered: Mar 2010
Location: Oakland,Ca
Distribution: DebianSqueeze, winsxp, wins7, Debian wheezy, LFS 7.2
Posts: 4,171
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:51 PM.
|
|
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
|
|