35

When I boot up my my newly installed copy of Ubuntu on my custom rig w/4GB DDR3 RAM and a 3 Ghz Intel Core i7, it takes about a minute and a half at the purple loading screen, and then after logging in it takes a while for the icons to show up on the screen. This computer could run and boot Windows 7 faster, so i have a problem here.

  • 1
    probably it's waiting for something and times out, can you check /var/log/messages after you booted? It has a log with the times from during the boot sequence. – steabert Apr 16 '11 at 19:35
  • 4
    You might try running bootchart. Also see this answer – belacqua Apr 16 '11 at 20:19
  • @belacqua, it seems the bootchart Ubuntu packages are not available for download anymore bootchart.org/download.html – Marco Lackovic May 23 '12 at 11:06
  • 1
    In Ubuntu 12.04 there is an alternative application to bootchart called pybootchartgui available in Ubuntu Software Center. – Marco Lackovic May 23 '12 at 14:53
  • With SSD or without SSD? – BigSack Jun 18 '12 at 8:36
19

I would check System > Administration > Log File Viewer > Messages. It may show something lagging or stalling before it backgrounds the process while booting. The log has time date stamp with seconds. Look for excessive gaps in the seconds,, etc. and repeated items. If your box has been booted over successive days you may be able to compare previous logs.

  • Thanks! Helped me find an issue where the swap partition was moved on a disk, so the UUID for it was no longer valid. Can't imagine how I would have figured that out without this tip – Zane Hooper Jul 16 '16 at 0:13
  • Now that this System > ... > Messages menu structure does not exist any more in recent Ubuntu versions, how can I reach the same UI? I found a log viewer, but it doesn't have a "Messages" section. – Dan Mirescu Sep 10 '18 at 8:50
19

Easiest would be to open the terminal and then write "dmesg" to look for gaps as Peck proposed. The output would be less verbose than the messages one. You will see the time stamps within "[]" brackets.

This is clearly a bug. With that system you should not have a boot longer than ~10 seconds.

  • 5
    I did $dmesg and I get bunch load of output now what to look for? – Gaurav Agarwal Jan 3 '15 at 11:18
  • 1
    Look for the lines with a big difference of timestamps value. For example, in my case I've noticed that before the line cgroup: new mount options do not match the existing superblock, will be ignored the system was loading for 10 seconds but this one step took the whole 90 seconds which is bad (caused by wrong swap partition id). So that's the way to nail down your problem. – Nicolas Ivanov Jul 30 '16 at 17:20
  • What do you do when you isolate the problem? I don't know anything about partitions or booting in general – Matt G Nov 12 '17 at 16:03
7

Install bootchart and pybootchartgui and upload the .png file in /var/log/bootchart.

Anyway, it'll show you the entire procedure from system up till the complete boot. Disable time-consuming but non-required packages. Install the application bug for this.

All these packages can be installed this way:

sudo apt-get install bootchart pybootchartgui

Also run the command:

sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop

Now open 'Startup Applications' and uncheck whatever you don't wish to load during boot.

5

You could start by disabling some services at startup like Bluetooth and Remote Desktop and Gnome Login Sound.

Go to System > Administration > Startup Applications to de-select the items for running at startup and see if you notice any change in boot up time.

4

I solved this problem by entering the BIOS and then disabling the ACHI SATA controller option and setting the SATA control in "compatibility" mode. It worked just fine for my Toshiba NB200!

3

Believe it or not its the text output.

open a terminal and run:

sudo nano /etc/default/grub

change the line:

GRUB_CMDLINE_LINUX_DEFAULT=""

to

GRUB_CMDLINE_LINUX_DEFAULT="quiet"

run:

sudo update-grub2

It shaved 10 seconds off my 15 second boot time.

0

Uninstalling hp-lip 3.14.1 helped with the same problem. I used Ubuntu-Tweek to clean everything out.

I'm using Ubuntu 12.04. hp-lip was required for my printer (HP Envy 4500).

-2

in BIOS menu, change SATA controller to compatible. worked on lenovo z500. it's not miracle but it boosts startup considerably. also kill ALL the startup applications. Desktop environments do not matter at all, at least not that much. on my computer Unity, Gnome shell and XFCE take almost the same time to start up so don't put a lot of effort into changing your DE.

  • 2
    SATA mode should be in AHCI for performance. Changing it to IDE-compatible only slows it down for compatibility with older braindead operating systems. I don't see why this would be useful. – gertvdijk Oct 14 '13 at 20:26
  • 1
    That would slow even more the boot. – Braiam Oct 14 '13 at 22:06

protected by souravc Jan 19 '17 at 7:24

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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