如何缩短启动时间?(包括引导图和 dmesg 输出)

Man*_*ndy 9 boot dmesg 12.04 boot-time bootchart

我注意到我最近的启动时间异常缓慢。我正在运行 12.04 笔记本电脑,带有 2.40GHz CPU 和 4GB RAM。我已经运行了 bootchart 和 dmesg,但我不确定如何使用它们来解决这个问题。

这是引导图:

引导图

这是 dmesg 输出(粘贴在这里太长了):http : //pastebin.com/bspNtsux

任何帮助将非常感激。如果我能提供更多信息,请告诉我。提前致谢。

alc*_*lci 2

我不知道您期望的启动时间是多少,以及这台机器过去需要多长时间。我认为这ureadahead部分很长,但我不确定,因为我使用 SSD 已经很多年了......

不管怎样,你可以看看http://ubuntuforums.org/showthread.php?t=1434502 的帖子,它解释了ureadahead。

从这篇文章中,您可以尝试以下操作:

  • 触发 ureadahead 重新配置

    sudo rm /var/lib/ureadahead/*.pack
    
    Run Code Online (Sandbox Code Playgroud)

    然后重新启动一次以重新配置,并再次查看结果。

  • 删除 ureadahead 并看看情况是否会好转(它们很可能会变得更糟,但谁知道呢?)

    sudo mv /etc/init/ureadahead.conf /etc/init/ureadahead.disable
    
    Run Code Online (Sandbox Code Playgroud)

    然后重新启动并查看情况是否有所改善。要重新激活 ureadhead,请重命名/etc/init/ureadahead.disable/etc/init/ureadahead.conf

有帮助吗?