Results 1 to 6 of 6

Thread: Editing GRUB (menu.lst)?

  1. #1
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    20

    Question Editing GRUB (menu.lst)?

    Hi!


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

  2. #2
    Join Date
    Jun 2008
    Location
    North east Ohio
    Posts
    74

    Default Re: Editing GRUB (menu.lst)?

    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.

  3. #3
    Join Date
    Jul 2008
    Location
    SPAIN
    Posts
    132

    Default Re: Editing GRUB (menu.lst)?

    Hi,

    To make grub remember your latest selected OS so that you dont 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.

  4. #4
    Join Date
    Jul 2008
    Location
    SPAIN
    Posts
    132

    Default Re: Editing GRUB (menu.lst)?

    Hi,

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

  5. #5
    Join Date
    Jun 2008
    Location
    North east Ohio
    Posts
    74

    Default Re: Editing GRUB (menu.lst)?

    Quote Originally Posted by garyg_the_first View Post
    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.
    if you go into file-manager, one of the selections is
    Code:
    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.

  6. #6
    Join Date
    Jul 2008
    Location
    Greece
    Posts
    20

    Thumbs up Re: Editing GRUB (menu.lst)?

    Quote Originally Posted by garyg_the_first View Post
    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.
    MANY MANY THANKS guys!!!

    Going to file manager, has done the trick!


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •