My system takes too long to boot is there a fix?

i just installed Ubuntu 11.04 fresh install with Windows 7 already installed.. when i chose ubuntu from the grub menu it shows the purple screen for too long with no activity from the laptop then after a while it boots normally. Is there a fix for that because really it takes tooooooo long.

dmesg reports the following:

[    3.078617] IP route cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    3.080423] TCP established hash table entries: 524288 (order: 11, 8388608 bytes)
[    3.084959] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
[    3.085502] TCP: Hash tables configured (established 524288 bind 65536)
[    3.085506] TCP reno registered
[    3.085524] UDP hash table entries: 2048 (order: 4, 65536 bytes)
[    3.085576] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes)
[    3.085736] NET: Registered protocol family 1
[  150.340039] pci 0000:00:13.5: EHCI: BIOS handoff failed (BIOS bug?) 01010001
[  150.340069] PCI: CLS mismatch (64 != 32), using 64 bytes
[  150.340088] pci 0000:01:05.0: Boot video device
[  150.340698] PCI-DMA: Disabling AGP.
[  150.340825] PCI-DMA: aperture base @ cc000000 size 65536 KB
[  150.340827] PCI-DMA: using GART IOMMU.
[  150.340831] PCI-DMA: Reserving 64MB of IOMMU area in the AGP aperture
[  150.344449] Simple Boot Flag at 0x44 set to 0x1
[  150.344892] audit: initializing netlink socket (disabled)
[  150.344906] type=2000 audit(1304603463.330:1): initialized

Solution 1:

Googling around, various reports mention that it may be due to a USB issue with your BIOS.

Suggestions range from

  1. Remove all USB devices to see if its resolved
  2. Disabling USB legacy in the BIOS
  3. Upgrade the BIOS to the latest firmware

However, I note the next item in your trace log is AGP - so possibly an issue with the video card? Are there any options in your BIOS which you can play with that relate to AGP/video card?

Suggest have a go with the above and report back.

Solution 2:

I Thought that I have the same problem here.

  1. I started modifiyng grub in xubuntu 10.04 deleting everything but xubuntu (because It recognized recovery partitions and windows 7 that was installed in another drive).
  2. When I restarted It took about 2 minutes to show my motherboard logo. By the while I was trying to press F2 but nothing happened.
  3. I found this thread and I saw that someone have problem with USB so I noticed that my kindle was charging connected by USB. So I just disconnected it and everything is working OK.

Perhaps unplugging a Kindle or similar device from your computer would fix this problem for you as well.

Solution 3:

I had a similar issue with long/inconsistent boot. Error messages indicated AGP and video as well.

It turns out old Compaq USB Internet keyboard was the cause. Replacing it and testing a collection of USB keyboards and mice (and other devices) now shows a consistent boot time of just over two minutes (from Restart to available desktop)

No additional action was required