Find the answer to your Linux question:
Page 1 of 3 1 2 3 LastLast
Results 1 to 10 of 23
Hi, i'm from Colombia. and i have a problemm. is my first time with Mandriva and I would know how can i edit the grub file, i mean, like root, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    14

    How can i edit grub on mandriva 2009


    Hi, i'm from Colombia. and i have a problemm.


    is my first time with Mandriva and I would know how can i edit the grub file, i mean, like root, because have a problem starting windows (for my family).

    When i tried to edit with kwrite on root mode show me this error:

    kdeinit4: preparing to launch /usr/lib/kde4/libexec/klauncher
    klauncher(6465) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
    Sorry for my bad english.

    Version: Mandriva 2009.

    thnx

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    You can gain root permissions by going to a terminal and entering the su command:

    Code:
    su
    ...enter the root password when requested.

    Then you can enter the following command to edit the menu.lst file:

    Code:
    nano /boot/grub/menu.lst
    You can substitute the text editor of your choice for nano.

    ...when done editing, save the file and reboot.

    For more info on working with the Linux command line, check here:

    LinuxCommand.org: Learn the Linux command line. Write shell scripts.
    oz

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    14
    What is nano?
    [root@localhost grub]# nano menu.lst
    bash: nano: command not found

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by Kolaper View Post
    What is nano?
    It's a text editor. See above:

    You can substitute the text editor of your choice for nano.
    oz

  5. #5
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    If you don't have nano, you can try vi, vim, or pico, with pico probably being the easiest for new linux users.
    oz

  6. #6
    Just Joined!
    Join Date
    Feb 2009
    Posts
    14
    .... i don't understand


    Nano and all the rest are not incluyed on mandriva?

  7. #7
    Just Joined!
    Join Date
    Feb 2009
    Posts
    14
    Vi works! thanks


    how can i save the changes?

  8. #8
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Quote Originally Posted by Kolaper View Post
    .... i don't understand


    Nano and all the rest are not incluyed on mandriva?
    Not sure as I've not run it in about 7 years, or more. Maybe someone currently running it can answer on that. Most distributions do at least come with vi, though.
    oz

  9. #9
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Try this for saving:

    Code:
    :x
    Enter vimtutor in the terminal for more info on using vi / vim.
    oz

  10. #10
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    I think esc : w q should do it ...
    I thought mandriva was using grub2 so the config file might be grub.conf instead of menu.lst ... some of the terminology is different as well example

Page 1 of 3 1 2 3 LastLast

Posting Permissions

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