ubuntu 10.04 - How to disable the Grub2 menu from displaying

07
2014-07
  • RaamEE

    As part of my attempts to protect my computer from physical hacking by my client, see enter link description here, I am struggling with Grub2, specifically with how to prevent it from showing the boot menu.

    I am trying to prevent the loading of the boot menu, even when the user hits SHIFT key.

    1) I've tried disabling 30_os_prober. That doesn't affect the menu.

    2) I've tried manually disabling the menu entries, but that just shows less entries and the one that is shown can be edited to provide shell login.

    So, any ideas on how to disable the Grub2 boot menu? Any idea would be appriciated

  • Answers
  • lserni

    Keep the timeout as it is: you may need it sooner or later. And if you boot the PC while keeping the SHIFT key pressed, it is possible that the zero timeout can be circumvented. Rather, password protect the relevant GRUB entries. You may also lock out the recovery modes.

    See Ubuntu's fine manual for the details, or this tutorial for the HOWTO.

  • RaamEE

    found it.

    in the file

    /etc/grub.d/40_custom

    add the line

    set timeout=0

    and the menu won't appear any more.

  • Archer

    I suppose this would work. The "correct" method would be to directly edit the existing line in /boot/grub/grub.cfg, or even better, change GRUB_TIMEOUT to 0 in /etc/default/grub and remake the config file.


  • Related Question

    ubuntu - How do I update grub2 on USB drive?
  • TheDeeno

    I have a usb drive with grub2 installed to the MBR. I'd like to add some custom entries to the boot menu but I can't figure out how to run sudo update-grub and have it affect the USB drive and not the grub2 on my HD.

    How do I do this in ubuntu?

    I have both a live ubuntu (on the USB device) and an installed version on my HD.


  • Related Answers
  • BloodPhilia

    I've been experimenting a bit with how to accomplish this, but I think your best bet is to simply disconnect the hard drive and thus boot with USB drive connected only. Then update grub as normal.