Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there an easy way to disable Grub2 new submenu structure? I'd like to have back the old structure (each option as a menuentry) where each kernel is visible and selectable on the fly.

I've already tried this solution, to no avail. And this is the most promising solution I've found until now. I didn't try it (I'll test it tomorrow) but I was wondering if there is a better way.

Thanks for any help.

share|improve this question

3 Answers 3

up vote 4 down vote accepted

Deprecated

The answer below applies to Ubuntu versions older than 14.04

gksu gedit /etc/grub.d/10_linux

At the end of the file:

  if [ "$list" ] && ! $in_submenu; then
    echo "submenu \"Previous Linux versions\" {"
    in_submenu=:
  fi
done

if $in_submenu; then
  echo "}"

add the "#" character in front of some lines to disable (i.e. comment out) their effect, make it look like this (4 lines changed):

  if [ "$list" ] && ! $in_submenu; then
    #echo "submenu \"Previous Linux versions\" {"
    in_submenu=:
  fi
done

#if $in_submenu; then
  #echo "}"
#fi

Then run sudo update-grub to apply the changes.

share|improve this answer
1  
See Nish Aravamudan answer here in this page which is the right one for Trusty (GRUB 2.02) –  useful Jul 26 at 14:55

In the latest Ubuntu (14.04), one can specify:

GRUB_DISABLE_SUBMENU=y

in /etc/default/grub.

Then apply with

sudo update-grub
share|improve this answer

Well, if you don't mind adding a PPA then yes!

Grub Customizer:

Grub Customizer is a graphical interface to configure the grub2/burg settings.It allows you to edit the GRUB2 menu entries: reorder, rename or add/remove entries.

Installation:

sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt-get update
sudo apt-get install grub-customizer

How to disable Grub2 submenu?

Once installed, Hit Alt+F2, type grub-customizer and hit Enter.

Select the submenu entries one by one and click on (Up) button in toolbar to move them to main menu. enter image description here

And no more submenu! Save your settings by clicking on save button in toolbar. That's it! enter image description here


To remove Grub Customizer run following commands in terminal

sudo apt-get autoremove --purge grub-customizer
sudo add-apt-repository -r ppa:danielrichter2007/grub-customizer
sudo apt-get update
share|improve this answer
    
Nice, I'll give it a try. However, what I'm really looking for is something that doesn't need to be re-applied at each kernel update (or at least that can be re-applied automatically). Is there a way to "script" Grub Customizer? –  Avio May 30 '12 at 7:12
    
I don't think so you'll have to reapply it upon every kernel update, it will automatically create new entries under main menu. Note the two entries in Linux menu (new Entries) and (new Entries of Previous Linux versions). –  Basharat Sialvi May 30 '12 at 8:11
    
No need for a PPA since Trusty/GRUB2.02: see Nish Aravamudan answer here in this page which is the right one since. –  useful Jul 26 at 14:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.