Results 1 to 6 of 6

Thread: How to simplify/reset Grub menu?

  1. #1
    Join Date
    Sep 2009
    Location
    Manchester (UK)
    Beans
    265
    Distro
    Xubuntu

    How to simplify/reset Grub menu?

    I'm setting up an old laptop with various Linux distros in order to try them out side-by-side. I have installed Lubuntu, Peppermint and Bodhi in separate partitions: all are working without a hitch and I have no problems using them.
    However the Grub menu that appears at startup is a mess. It was fine when I just had Lubuntu and Peppermint, it listed (as I expected) Ubuntu, Peppermint and Memory test. But since installing Bodhi the entries for Lubuntu and Peppermint have been expanded into long strings across the screen. The first one for Lubuntu, for example, begins:
    "Ubuntu, with Linux 3/11/0-19-generic' --class ubuntu --class gnu-linux --class gnu --class os 'gnulinux-3.11.0-19-generic-advanced-e6bebbd9-a192- ... etc. etc." (the rest is off the screen). The entries for Peppermint have a similar form although the details are different.

    I have tried running sudo update-grub but it hasn't made any difference. Is there command which will generate the Grub menu afresh and give me short entries for Lubuntu, Peppermint and Bodhi?

  2. #2
    Join Date
    May 2013
    Location
    Hamunaptra
    Beans
    623
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: How to simplify/reset Grub menu?

    a laymans solution:
    load Lubuntu, then
    Code:
     sudo update-grub
    &
    Code:
    sudo grub-install /dev/sdx
    , replacing the 'x'.

    Then Lubuntu grub will be used and it will reflect a better configuration.
    bhatta

    May the Source be with you !
    Ash nazg durbatulûk, ash nazg gimbatul, ash nazg thrakatulûk, agh
    'Buntu-ishi krimpatul !

  3. #3
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,739

    Re: How to simplify/reset Grub menu?

    Unless you take steps during an installation to do otherwise, the grub from the last OS you install is the one which creates the grub menu you see. When an older version of grub probes for information created by later versions (which use submenus) during installation, you can get entries like you show in your grub menu.

    Solution:

    You need Lubuntu to control the boot process. To have that happen, you need to install grub from Lubuntu: use the existing setup to boot into Lubuntu, and then in the terminal run sudo grub-install /dev/sda (assuming your hard disk is designated sda). After that completes, run sudo update-grub.

    Reboot and you should get a good grub menu.

  4. #4
    Join Date
    Sep 2009
    Location
    Manchester (UK)
    Beans
    265
    Distro
    Xubuntu

    Re: How to simplify/reset Grub menu?

    Many thanks Dennis N: a clear explanation and an effective solution. I've learned a bit more ...

    Thanks
    John

  5. #5
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    Re: How to simplify/reset Grub menu?

    If you want your Lubuntu OS to actually show "Lubuntu 14.04" or something similar to that in the grub menu for the version you have you simply need to edit the /etc/default/grub file as root and change the line
    Code:
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    to read
    Code:
    GRUB_DISTRIBUTOR="Lubuntu 14.04"
    Note the required quotation marks. Now run sudo update-grub again and the menu will now show Lubuntu 14.04, not "Ubuntu etc etc" as it did before for any of the ubuntu family of OSs.

    This edit is very useful, and almost essential if you have many different ubuntu family OSs installed on the same system.

  6. #6
    Join Date
    Sep 2009
    Location
    Manchester (UK)
    Beans
    265
    Distro
    Xubuntu

    Re: How to simplify/reset Grub menu?

    Neat, and very useful as you say! Thanks, I have learned even more now.

Tags for this Thread

Bookmarks

Posting Permissions

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