Ubuntu – GNU grub menu takes too long to boot


I have installed Ubuntu 16.04.1 alongside windows 10, everything works perfect unless gnu grub menu 2.0.2 takes too long to boot, there is somewhere 15-20 sec black screen till purple grub menu shows up.

It is ASUS k501ux laptop with PCIE SSD and it always boot very fast. it is loading windows in 13 sec and Ubuntu in 8 sec but that grub menu takes too long. sometimes it loads perfectly as soon as I turn it on but mostly that's not case.

Otherwise both Ubuntu and Windows load pretty quickly after I choose it from Gnu grub menu, problem is loading time of gnu grub menu itself.

Best Answer

  • To see what grub is doing while it's loading the kernel image and booting up Ubuntu you need to remove the splash screen and enable messaging. Open the terminal and use the command gksu gedit /etc/default/grub and search for this line:

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash vt.handoff=7 kaslr"

    Change the line to look like this:

    GRUB_CMDLINE_LINUX_DEFAULT="vt.handoff=7 kaslr"

    Leave the other parameters alone (which probably don't look like mine). The important thing is to remove "quiet" and "splash" parameters.

    Save the file and then use:

    sudo update-grub

    Now reboot your computer and watch for messages that pause for a long time. After getting a message that pauses for a long time you can review the log file using:

    gedit /var/log/syslog

    Additionally the time for all services loaded during boot can be reviewed using:

    systemd-analyze blame

    After getting specifics of what module(s) is/are slowing down your boot you can ask pointed question(s) about it/them

  • Related Question