opensuse boot options

I did install open suse as a second os on my win pc.
After that suse become default boot os.
I did’nt see how to change boot os order. Can’t find boot option in suse install/repair section.
I need windows as default boot os.
Could any one help ?

The default boot option is set in /boot/grub/menu.lst

If you feel comfortable editing this as root, then from a terminal window, open your favourite editor with

sudo nano /boot/grub/menu.lst

or for KDE4 environment

kdesu kwrite /boot/grub/menu.lst

Locate the default entry and change to the preferred OS boot entry. Each entry is arranged in a block, the first being 0, the next being 1, etc. For example, I have mine set to the third menu option:

# Modified by YaST2. Last modification on Wed Aug  3 09:22:46 NZST 2011
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader

default 2
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,5)/boot/message
##YaST - activate

When finished, save and reboot for it to take effect.

Thank you for your answer.
Will try it.
I’m using KDE4, so have to open command prompt(terminal window) and execute “kdesu kwrite /boot/grub/menu.lst” and edit inside this list as you did show, right ?

Correct. But you’ll better make a copy of this file before editing it!

 sudo cp /boot/grub/menu.lst /boot/grub/menu.lst.old

that back up IS VERY IMPORTANT
It might not seam so BUT one typo and you will need the install dvd to boot
if that happens it is a very EASY fix to use the BACKUP file

so ** get into the habit of making backup files of system files if you change them **

also the file “/boot/grub/menu.lst” is changed EVERY TIME there is a kernel update

in the future it would help to know the a bit more details
with dual booting things like
did you REPLACE the MS Windows bootloader on the MBR
install grub on the first linux partition

also a very well known issue with win7 mostly
there is a hidden “restore” ( for WINDOWS ONLY) that the OEM puts on the MBR
so win7 is normally NOT sda1 but sda2

oem’s and MS messing up a simple thing

The upshot is MOST Linux distros INCORRECTLY set the "other os " to the WRONG location

you can hide or NOT hide the boot menu selections
read the menu.lis file

That’s for Vista as well as Win7.

You should be able to boot either sda1 or sda2, and either will work to boot Windows (assuming those are the two partitions used by Windows). When I install opensuse, it makes one of those “Windows 1” and the other “Windows 2” in the grub menu.

Since booting either one will work, I don’t see this as “messing up a simple thing”.

I have not tried it, but my understanding is that if you use bitlocker (encrypted file system) with Win7, then you must boot the recovery partition rather than the main Windows partition. In that case, the main Windows partition is encrypted, while the recovery partition is not encrypted and contains the drivers needed to access the encrypted partition. It is similar to having a separate “/boot” partition in linux.

On 10/04/2011 05:06 PM, rainbowsally wrote:
> Don’t back up fstab. Mount will try to mount any “fstab?” file

do backup /boot/grub/menu.lst as advised, prior to beginning your
manual edit…

> and the backups tend to be generated with single tilde chars (’~’).

the tilde or not depends entirely on the editor used and anyway, the OP
was being advised to make a copy of the file prior to beginning the
editing process (not just keep the original with a tilde added by kwrite
in the same directory)

openSUSE®, the “German Automobiles” of operating systems

I don’t understand what you mean here. But backing up /etc/fstab has never hurt anyone … on the contrary! And if mount would try to mount everything, none of my computers would even reach the login prompt under openSUSE (Ubuntu would offer to skip non available filesystems).

On Tue, 04 Oct 2011 15:06:03 +0000, rainbowsally wrote:

> Don’t back up fstab. Mount will try to mount any “fstab?” file

I don’t know that this is a true statement - but more importantly, saving
the file off to another directory is a perfectly fine way to back it up
(or to a flash drive or whatever). Backing it up before editing it
manually is highly recommended.

> and the
> backups tend to be generated with single tilde chars (’~’).

That depends on the editor used. It is common for some editors to create
a backup file for ‘file’ named ‘file~’ - but it’s far from ubiquitous.


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at