SDB:Prefered bootloader options

Jump to: navigation, search
Icon-cleanup.png
This article is in need of attention because it does not follow our wiki guidelines.
If you want to contribute, please read the rules for this wiki and if you have any questions, don't hesitate to contact the wiki team, we are more then willing to help you! :-)
This article explains what are the preferred options to setup with YaST and the default GRUB bootloader.
Icon-warning.png
Warning: Using this setup (like any other boot modification) may lead to problems with previous Windows installation. This is usually not so scary, but may be you should read this before attempting anything Windows problems (old article)

Situation

You are installing openSUSE and this openSUSE will not be the only Operating System on the disk(s).

YaST offers many options and you don't know which one is the best. In fact the options given here are not the usually known on Linux. There are very good reasons to choose them, mostly explained on Bugs/grub (old article).

NOTE: this was not tested on multi-disk installation, but only with one disk with several partitions.

Procedure

The procedure shown here was created on a running openSUSE 10.3, there may be slight differences at install time.

At some time you will go to the bootloader screen. If necessary go to expert mode. On the right (in the circle) you see "Bootloader installation". Go there.

Bootloader1.jpg

You will come here:

Bootloader2.jpg

Usually one will choose "MBR". Don't! It's no more the preferred one. In fact a "default" MBR tries always to load the primary partition indicated as bootable by a flag, so the best practice is to use this feature. YaST will take care of this for you.

But you must first choose any primary partition to hold GRUB "stage1" most important part. Of course this can't be the Windows partition, but any primary belonging to Linux is good (that is root, or any other, including the extended fake partition, as shown on the image.

On a running system you can use:

fdisk -l

To know what partitions are good. Only the numbers 1, 2, 3 or 4 are usable. The bootable one is flagged by an "*".

Bootloader3.jpg

Go to the "bootloader options". There you will find the two important options:

  • Set active flag...
  • Write generic boot code

Bootloader4.jpg

Of course activate these two options.

That's all. Save. Try to reboot (just in case, keep an openSUSE CD/DVD at hand to be able to start the installed system in emergency).

Usefulness of this setup

With this setup, even Windows can setup your booting menu if it ever disappears, like for example if you need to re-install Windows.

It's enough to use Windows (Windows fdisk or disk manager, depending of your Windows version) to setup the booting partition flag (even Windows know how to do that) and your GRUB menu is back...


See also