LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   update-grub: command not found, in OpenSuse 11.2 (https://www.linuxquestions.org/questions/linux-newbie-8/update-grub-command-not-found-in-opensuse-11-2-a-864462/)

Aquarius_Girl 02-23-2011 02:33 AM

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?

corp769 02-23-2011 02:43 AM

Edited my post. Didn't see the OpenSuse at the top.....My bad!

syg00 02-23-2011 02:45 AM

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.

EDDY1 02-23-2011 02:49 AM

What version of grub?

Aquarius_Girl 02-23-2011 02:59 AM

Quote:

Originally Posted by EDDY1 (Post 4268215)
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 (Post 4268209)
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.

EricTRA 02-23-2011 03:02 AM

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

Aquarius_Girl 02-23-2011 03:04 AM

:D
Code:

anisha@linux-uitj:~> sudo grub-setup --version
root's password:
sudo: grub-setup: command not found
anisha@linux-uitj:~>


EDDY1 02-23-2011 03: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.

---------- 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.

EricTRA 02-23-2011 03:05 AM

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

Aquarius_Girl 02-23-2011 03:06 AM

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:~>


EricTRA 02-23-2011 03:07 AM

Hi,

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

Kind regards,

Eric

EDDY1 02-23-2011 03:08 AM

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/

Aquarius_Girl 02-23-2011 03:10 AM

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?!?

Aquarius_Girl 02-23-2011 03:13 AM

Quote:

Originally Posted by EDDY1 (Post 4268244)
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!

EDDY1 02-23-2011 03:19 AM

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:16 AM.