今天安装 bootchart 的时候,发现 update-initramfs 把我自安装 Ubuntu 以来的所有内核 initramfs 文件都生成了一遍,足有十几个,可怜的 /boot 才 100M,瞬间就一点没有了。

虽然每次更新内核,我都会手工把旧内核删除,但旧内核在系统中还是有记录的。

除了删除 /boot 下的相关文件之外,还要用如下命令删除内核对应的 initramfs:

sudo update-initramfs -k 2.6.28-16-generic -d -v
参数 k 指定了内核的版本,参数 d 是要删除,参数 v 是啰嗦。

删除完毕之后,重新 sudo dpkg-reconfigure bootchart 就搞定了。

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

This site uses Akismet to reduce spam. Learn how your comment data is processed.