Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: grub2 update-grub?

  1. #1
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    141

    Default grub2 update-grub?

    Hey guys. I've just installed Opensuse 12.2. I've just edited my /etc/default/grub file to shorten the timeout, i then attempted to update it with,
    Code:
    update-grub
    but i get this back
    Code:
    If 'update-grub' is not a typo you can use command-not-found to lookup the package that contains it, like this:     cnf update-grub
    I have little experience with grub2 but am pretty sure that this isn't right. Any advice please? Thankyou

  2. #2

    Default Re: grub2 update-grub?

    Try this:

    Code:
    grub2-mkconfig -o /boot/grub2/grub.cfg

  3. #3
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    141

    Default Re: grub2 update-grub?

    Thanks for that mate. update-grub still doesn't work, but my edits have been applied.

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    22,072

    Default Re: grub2 update-grub?

    Quote Originally Posted by knightron View Post
    Thanks for that mate. update-grub still doesn't work, but my edits have been applied.
    As the error told you: update-grub doesn't exist (and thus it can not "work").
    Henk van Velden

  5. #5
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    141

    Default Re: grub2 update-grub?

    Is this standard behavior? or is this just present on my system

  6. #6

    Default Re: grub2 update-grub?

    Quote Originally Posted by knightron View Post
    Is this standard behavior? or is this just present on my system
    It's normal.
    The right command is the one I already suggested ...

  7. #7
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    141

    Default Re: grub2 update-grub?

    Ok, thanks heaps then guys. Appreciate it. :-)

  8. #8
    Join Date
    Nov 2008
    Location
    Hannover, Germany
    Posts
    11

    Default Re: grub2 update-grub?

    Hallo,

    update-grub ist z.B. in Debian und ubuntu nur ein Script, das man sich unter OpenSuse z.B. als root mit nano /usr/sbin/update-grub selbst erstellen kann. Der Inhalt ist dann z.B.:

    #!/bin/sh
    set -e
    exec grub2-mkconfig -o /boot/grub2/grub.cfg "$@"

    Dann noch mit chmod +x
    /usr/sbin/update-grub ausführbar machen, fertig.

  9. #9

    Default Re: grub2 update-grub?

    Quote Originally Posted by kwbolte View Post
    Hallo,

    update-grub ist z.B. in Debian und ubuntu nur ein Script, das man sich unter OpenSuse z.B. als root mit nano /usr/sbin/update-grub selbst erstellen kann. Der Inhalt ist dann z.B.:

    #!/bin/sh
    set -e
    exec grub2-mkconfig -o /boot/grub2/grub.cfg "$@"

    Dann noch mit chmod +x
    /usr/sbin/update-grub ausführbar machen, fertig.
    Na ja, einfach "updategrub" aus meinem repo installieren ... Erst dann abschleifen, Farbe drauf und ... fertig!

  10. #10
    Join Date
    Oct 2010
    Location
    Netherlands
    Posts
    2

    Default Re: grub2 update-grub?

    Quote Originally Posted by kwbolte View Post
    Hallo,

    update-grub ist z.B. in Debian und ubuntu nur ein Script, das man sich unter OpenSuse z.B. als root mit nano /usr/sbin/update-grub selbst erstellen kann. Der Inhalt ist dann z.B.:


    Vielen dank, Ich war gerade auf der Suche, warum update-grub nicht arbeitete in openSUSE

Page 1 of 2 12 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
  •