Editing GRUB (menu.lst)?

Hi! :slight_smile:

Does somebody knows how can I make GRUB to remember my last booted installation?

I couldn’t find such an option at yast and trying to edit menu.lst (either from inside the OS or from live CD) returns me that I don’t have the rights.

I have installed open suse 11 with kde3 and win xp.

THANKS!!! :slight_smile:

You need to have root privileges to edit menu.lst.

in KDE: open K Menu; system–>file manager–>Super User Mode

it will ask for root password.

Hi,

To make grub remember your latest selected OS so that you don´t have to select it the next time, add the ‘savedefault’ keyworkd to all the stanzas you are interested grub to remember.

For example,

      **default saved**
      timeout 10
      
      title GNU/Linux 1 Blah Blah Blah
      root (hd0,0)
      kernel /boot/vmlinuz root=/dev/sda1 
      initrd /boot/initrd
      **savedefault**
      
      title GNU/Linux 2 Blah Blah Blah
      root (hd1,0)
      kernel /boot/vmlinuz root=/dev/sdb1 
      initrd /boot/initrd
      **savedefault**

Now, GRUB will remember the choosed OS entry booted the last time.

Hope this helps.

Hi,

I´ve just forgotten…

To gain root privileges from a regular account, do this from the command line:

> su - root

Type the root password when you are prompted to do so.

From now on you are the superuser and you are on your own to tweak whatever setting in the system you want.

When you are done, type exit to return back to your regular account session.

Hope this helps.

if you go into file-manager, one of the selections is

file manager - super user mode

if you select that option, it will ask for your root password, and then open a file manager with root privileges. You should
then be able to edit menu.lst

You will probably want to edit menu.lst with kwrite; as kate won’t let you update the file.

MANY MANY THANKS guys!!! :slight_smile:

Going to file manager, has done the trick! :wink: