grub update and MBR installation

I have just installed openSuSE 11.4. I have several other Linux distros on the hard disk but I cannot setup a start menu to access them.

In Ubuntu I used -

sudo update-grub
sudo grub-install /dev/sda

In Suse I get command not found.
TIA

Alan

openSUSE uses grub legacy

Follow this guide
updategrub for openSUSE Legacy Grub (not update-grub!)

I am currently running Windows 7 and Mint 11 with grub 2. Should I follow the instructions in the thread you provided here after installing openSUSE 11.4? Or would I be better off deleting Mint 11 first, installing openSUSE 11.4, and then reinstalling Mint 11?

If you delete Mint first, then if won’t make sense to run updategrub to add boot entries for other distros (that you deleted). What are you trying to do exactly? If you run update-grub under Mint (or Ubuntu), it will add entries for openSUSE in Grub2’s menu. And if you run updategrub under openSUSE, it will add Mint’s boot entries in openSUSE (Legacy) Grub’s menu. The two scripts actually serve the same purpose and scan for other distros in the same way (both using os-prober). updategrub has more features and is more configurable though. :wink: You can see updategrub as an attempt to port (or emulate) Ubuntu’s update-grub to Legacy Grub based distros. I use it under openSUSE, Fedora, ArchLinux and Mandriva.

I want to install openSUSE and already have Mint and Windows 7 installed. I want to know the easiest way to do this and be able to boot all 3.

“easiest” doesn’t seem to mean the same for everybody, as different people will disagree about what is the easiest way. I assume that you have Grub2 in MBR. openSUSE setup will unfortunately overwrite it … unless you prevent it from doing so by explicitely unchecking Write Generic boot Code to MBR. But if you do so, what you will see at next boot will be Grub2. And you will have to run update-grub under Mint first in order to be able to boot openSUSE… unconventional but probably the easiest.

If you go the other way (the openSUSE/Windows way) and let openSUSE overwrite your MBR, you’ll have to install and run updategrub under openSUSE (or edit /boot/grub/menu.lst manually) to add a kernel boot entry for Mint. Now the problem it that Mint won’t have its own Grub anymore, which is bad, as it won’t be able to boot on its own. Therefore I personnaly recommend the first option. But if you wait a little bit, you’ll surely get other pieces of advice from “Generic MBR” fans (and arguing with them is futile).

Many people will also install openSUSE, let it overwrite the MBR, then boot a Mint live CD and reinstall Grub2 in MBR … and pretend that it is the easiest way … although it is just the most stupid way (but works too).

I get an error when I try to install updategrub.

http://i642.photobucket.com/albums/uu150/lak611/Screenshot-lauralinux-ha4jsite.png

The url is wrong (incomplete).
Remove the repo first:

zypper rr PTA

Then try:


zypper ar [noparse] http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/[/noparse]  PTA
zypper refresh -r PTA
zypper in updategrub

The url might have got shorted in one of the post.

  • Everything as root, meaning type su -l before entering the commands.

Thank you. Everything works now. :slight_smile:

On Sun, 18 Sep 2011 02:06:03 GMT, please try again
<please_try_again@no-mx.forums.opensuse.org> wrote:

>
>The url is wrong (incomplete).
>Remove the repo first:
>
>Code:
>--------------------
> zypper rr PTA
>--------------------
>
>Then try:
>
>Code:
>--------------------
>
> zypper ar http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/ PTA
> zypper refresh -r PTA
> zypper in updategrub
>
>--------------------
>
>
>The url might have got shorted in one of the post.
>
>* Everything as root, meaning type su -l before entering the
>commands.

This is giving me a really weird problem.

the previous removed,
the fresh one installed and refreshed!
the install said “updategrub” not found, nothing to do.

I can’t imagine you removing all the contents of your repo, but when i try
to look at it in yast->software management
repositories -> PTA it comes up empty.

download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/

Is what i get from pasting server name and directory.

Any ideas??

Carefully now, use your mouse to copy and paste

su -
zypper ar -f http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/ pta

zypper ref
zypper in updategrub

To use it

su -
updategrub

updategrub for openSUSE Legacy Grub (not update-grub!)

I don’t know what’s the problem.

The repos are not empty (from what I see) :
[noparse]http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/x86_64/[/noparse]](http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/x86_64/)
[noparse]http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/i586/[/noparse]](http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/i586/)

Unfortunately, it’s impossible to get the URLs displayed correctly in the forum, even between [noparse][noparse][/noparse] tags or in [noparse]

[/noparse] tags. Athough sometimes it works (?)*. I think the forum should simply not touch the URLs at all.


[noparse]

zypper lr -u | grep PTA

1 | PTA | PTA | Yes | No | http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/

zypper refresh -r PTA

Repository ‘PTA’ is up to date.
Specified repositories have been refreshed.

zypper in updategrub

Loading repository data…
Reading installed packages…
‘updategrub’ is already installed.
No update candidate for ‘updategrub-1.5.4-92.1.noarch’. The highest available version is already installed.
Resolving package dependencies…

Nothing to do.
[/noparse]



* It worked here by puting the whole text in [noparse]

[noparse][/noparse]…[noparse][/noparse][/noparse][noparse]

[/noparse]

On Sun, 18 Sep 2011 05:26:04 GMT, please try again
<please_try_again@no-mx.forums.opensuse.org> wrote:

>
>josephkk;2385203 Wrote:
>>
>>
<snip>
>Unfortunately, it’s impossible to get the URLs displayed correctly in
>the forum, even between tags or in
>
>Code:
>--------------------
> tags. Athough sometimes it works (?)*. I think the forum should simply not touch the URLs at all.
>
>
>Code:
>--------------------
>
> # zypper lr -u | grep PTA
> 1 | PTA | PTA | Yes | No | http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/
>
> # zypper refresh -r PTA
> Repository ‘PTA’ is up to date.
> Specified repositories have been refreshed.
>
> # zypper in updategrub
> Loading repository data…
> Reading installed packages…
> ‘updategrub’ is already installed.
> No update candidate for ‘updategrub-1.5.4-92.1.noarch’. The highest available version is already installed.
> Resolving package dependencies…
>
> Nothing to do.
>
>--------------------
>
>
> * It worked here by puting the whole text in
>Code:
>--------------------
> [noparse]…
>--------------------

@Carl

I retried and the repository adds and refreshes.

++++++++++++++
Dumbarton:~ # zypper lr -d | grep PTA
8 | PTA | PTA | Yes | No
| 99 | rpm-md |
http://download.opensuse.org/repositories/home:/please_try_again/openSUSE_11.4/
|
Dumbarton:~ #

zypper in updategrub fails.

++++++++++++++
Dumbarton:~ # zypper in updategrub
Loading repository data…
Reading installed packages…
‘updategrub’ not found.
Resolving package dependencies…
Nothing to do.
Dumbarton:~ #

I still do not understand why.

@please_try_again

I looked at the repository with Firefox and everything is there, as i
expected, the updategrub package and many others are there.

Reading up on it in the links that have been provided i expect it would
pull in os-prober as a dependency. Those rmps is also there.

Neither Yast nor zypper can find updategrub in the repo. I do not
understand why.

Wait a minute, i am trying this on an old 11.1 system trying to get my
newly installed 11.4 to boot. The tools may be concluding that there is
no version for 11.1.

Fiddlesticks. I suppose i could pick up the sources and try to repackage
for 11.1. That might be a bit over my head though.

Thanks for your support and repository. I guess i should go for it.

?-)

Yes. That’s the problem. The package is only available for 11.3 and 11.4. It only include scripts (there is nothing to compile) but it needs os-prober. As I packaged os-prober (ported from Fedora & ArchLinux) and put it in my repo, it wasn’t available for openSUSE. Now, I think it is in Factory, will propably be in 12.1. There is nothing to compile in os-prober either. If you look at /usr/bin/linux-boot-prober /usr/bin/os-prober, they are just shell scripts. I don’t see any binary file in the ones included in os-prober:


# rpm -ql os-prober
/usr/bin/linux-boot-prober
/usr/bin/os-prober
/usr/lib/linux-boot-probes
/usr/lib/linux-boot-probes/50mounted-tests
/usr/lib/linux-boot-probes/mounted
/usr/lib/linux-boot-probes/mounted/40grub
/usr/lib/linux-boot-probes/mounted/40grub2
/usr/lib/linux-boot-probes/mounted/50lilo
/usr/lib/linux-boot-probes/mounted/90fallback
/usr/lib/newns
/usr/lib/os-probes
/usr/lib/os-probes/50mounted-tests
/usr/lib/os-probes/init
/usr/lib/os-probes/init/10filesystems
/usr/lib/os-probes/mounted
/usr/lib/os-probes/mounted/10freedos
/usr/lib/os-probes/mounted/10qnx
/usr/lib/os-probes/mounted/20macosx
/usr/lib/os-probes/mounted/20microsoft
/usr/lib/os-probes/mounted/30utility
/usr/lib/os-probes/mounted/40lsb
/usr/lib/os-probes/mounted/70hurd
/usr/lib/os-probes/mounted/80minix
/usr/lib/os-probes/mounted/83haiku
/usr/lib/os-probes/mounted/90linux-distro
/usr/lib/os-probes/mounted/90solaris
/usr/share/doc/packages/os-prober
/usr/share/doc/packages/os-prober/README
/usr/share/doc/packages/os-prober/TODO
/usr/share/doc/packages/os-prober/changelog
/usr/share/doc/packages/os-prober/copyright
/usr/share/os-prober
/usr/share/os-prober/common.sh
/var/lib/os-prober

No. Just download the os-prober rpm and try to install it using rpm. Then try to install updategrub. Alternatively you can also copy/paste the latest updategrub and findgrub code. Notice that findgrub doesn’t need os-prober at all (on purpose!).

On Sun, 18 Sep 2011 21:46:03 GMT, please try again
<please_try_again@no-mx.forums.opensuse.org> wrote:

>
>josephkk;2385389 Wrote:
>>
>> Wait a minute, i am trying this on an old 11.1 system trying to get my
>> newly installed 11.4 to boot. The tools may be concluding that there
>> is
>> no version for 11.1.
>
>Yes. That’s the problem. The package is only available for 11.3 and
>11.4. It only include scripts (there is nothing to compile) but it needs
>os-prober. As I packaged os-prober (ported from Fedora & ArchLinux) and
>put it in my repo, it wasn’t available for openSUSE. Now, I think it is
>in Factory, will propably be in 12.1. There is nothing to compile in
>os-prober either. If you look at /usr/bin/linux-boot-prober
>/usr/bin/os-prober, they are just shell scripts. I don’t see any binary
>file in the ones included in os-prober:
>
>
<snip>
>josephkk;2385389 Wrote:
>>
>> Fiddlesticks. I suppose i could pick up the sources and try to
>> repackage
>> for 11.1. That might be a bit over my head though.
>>
>
>No. Just download the os-prober rpm and try to install it using rpm.
>Then try to install updategrub. Alternatively you can also copy/paste
>the latest updategrub and findgrub code. Notice that findgrub doesn’t
>need os-prober at all (on purpose!).

OK. Got findgrub and os-prober installed. Will test soon. Thanks again.

?-)

On Thu, 22 Sep 2011 02:28:30 GMT, josephkk <joseph_barrett@sbcglobal.net>
wrote:

>On Sun, 18 Sep 2011 21:46:03 GMT, please try again
><please_try_again@no-mx.forums.opensuse.org> wrote:
>
>>
>>josephkk;2385389 Wrote:
>>>
>>> Wait a minute, i am trying this on an old 11.1 system trying to get my
>>> newly installed 11.4 to boot. The tools may be concluding that there
>>> is
>>> no version for 11.1.
>>
>>Yes. That’s the problem. The package is only available for 11.3 and
>>11.4. It only include scripts (there is nothing to compile) but it needs
>>os-prober. As I packaged os-prober (ported from Fedora & ArchLinux) and
>>put it in my repo, it wasn’t available for openSUSE. Now, I think it is
>>in Factory, will propably be in 12.1. There is nothing to compile in
>>os-prober either. If you look at /usr/bin/linux-boot-prober
>>/usr/bin/os-prober, they are just shell scripts. I don’t see any binary
>>file in the ones included in os-prober:
>>
>>
><snip>
>>josephkk;2385389 Wrote:
>>>
>>> Fiddlesticks. I suppose i could pick up the sources and try to
>>> repackage
>>> for 11.1. That might be a bit over my head though.
>>>
>>
>>No. Just download the os-prober rpm and try to install it using rpm.
>>Then try to install updategrub. Alternatively you can also copy/paste
>>the latest updategrub and findgrub code. Notice that findgrub doesn’t
>>need os-prober at all (on purpose!).
>
>OK. Got findgrub and os-prober installed. Will test soon. Thanks again.
>
>?-)

Those tools do their job. Didn’t solve all my problem. Will continue in
another thread i started.

Bye. ?-)