可能重复:
释放更多 /boot 空间
我在Ubuntu 10.04。
当我使用“更新管理器“,会弹出一个对话框告诉我”卷“boot”仅剩余 0 字节磁盘空间“
我当前使用的内核是:
myname:~$ uname -r
2.6.32-37-generic
boot文件夹的内容为:
myname:~$ ls -lah /boot
total 217M
drwxr-xr-x 4 root root 3.0K 2012-01-13 15:18 .
drwxr-xr-x 24 root root 4.0K 2012-01-13 15:21 ..
-rw-r--r-- 1 root root 626K 2010-04-16 16:01 abi-2.6.32-21-generic
-rw-r--r-- 1 root root 637K 2011-01-11 03:18 abi-2.6.32-28-generic
-rw-r--r-- 1 root root 637K 2011-02-11 21:56 abi-2.6.32-29-generic
-rw-r--r-- 1 root root 637K 2011-03-02 04:27 abi-2.6.32-30-generic
-rw-r--r-- 1 root root 637K 2011-04-09 02:35 abi-2.6.32-31-generic
-rw-r--r-- 1 root root 637K 2011-04-21 01:52 abi-2.6.32-32-generic
-rw-r--r-- 1 root root 637K 2011-07-30 03:17 abi-2.6.32-33-generic
-rw-r--r-- 1 root root 638K 2011-09-14 03:51 abi-2.6.32-34-generic
-rw-r--r-- 1 root root 638K 2011-10-11 23:33 abi-2.6.32-35-generic
-rw-r--r-- 1 root root 638K 2011-11-09 03:33 abi-2.6.32-36-generic
-rw-r--r-- 1 root root 638K 2011-12-03 04:08 abi-2.6.32-37-generic
-rw-r--r-- 1 root root 114K 2010-04-16 16:01 config-2.6.32-21-generic
-rw-r--r-- 1 root root 114K 2011-01-11 03:18 config-2.6.32-28-generic
-rw-r--r-- 1 root root 114K 2011-02-11 21:56 config-2.6.32-29-generic
-rw-r--r-- 1 root root 114K 2011-03-02 04:27 config-2.6.32-30-generic
-rw-r--r-- 1 root root 114K 2011-04-09 02:35 config-2.6.32-31-generic
-rw-r--r-- 1 root root 114K 2011-04-21 01:52 config-2.6.32-32-generic
-rw-r--r-- 1 root root 114K 2011-07-30 03:17 config-2.6.32-33-generic
-rw-r--r-- 1 root root 114K 2011-09-14 03:51 config-2.6.32-34-generic
-rw-r--r-- 1 root root 114K 2011-10-11 23:33 config-2.6.32-35-generic
-rw-r--r-- 1 root root 114K 2011-11-09 03:33 config-2.6.32-36-generic
-rw-r--r-- 1 root root 114K 2011-12-03 04:08 config-2.6.32-37-generic
drwxr-xr-x 3 root root 4.0K 2012-01-13 15:18 grub
-rw-r--r-- 1 root root 14M 2010-08-24 12:00 initrd.img-2.6.32-21-generic
-rw-r--r-- 1 root root 14M 2011-01-27 16:26 initrd.img-2.6.32-28-generic
-rw-r--r-- 1 root root 14M 2011-03-25 11:11 initrd.img-2.6.32-29-generic
-rw-r--r-- 1 root root 14M 2011-03-28 09:32 initrd.img-2.6.32-30-generic
-rw-r--r-- 1 root root 14M 2011-06-20 15:33 initrd.img-2.6.32-31-generic
-rw-r--r-- 1 root root 14M 2011-06-22 13:02 initrd.img-2.6.32-32-generic
-rw-r--r-- 1 root root 14M 2011-08-10 10:37 initrd.img-2.6.32-33-generic
-rw-r--r-- 1 root root 14M 2011-10-21 19:02 initrd.img-2.6.32-34-generic
-rw-r--r-- 1 root root 14M 2011-11-11 10:03 initrd.img-2.6.32-35-generic
-rw-r--r-- 1 root root 14M 2011-12-05 17:13 initrd.img-2.6.32-36-generic
-rw-r--r-- 1 root root 14M 2012-01-13 15:18 initrd.img-2.6.32-37-generic
drwxr-xr-x 2 root root 12K 2010-08-05 00:24 lost+found
-rw-r--r-- 1 root root 157K 2010-03-23 11:37 memtest86+.bin
-rw-r--r-- 1 root root 1.7M 2010-04-16 16:01 System.map-2.6.32-21-generic
-rw-r--r-- 1 root root 1.7M 2011-01-11 03:18 System.map-2.6.32-28-generic
-rw-r--r-- 1 root root 1.7M 2011-02-11 21:56 System.map-2.6.32-29-generic
-rw-r--r-- 1 root root 1.7M 2011-03-02 04:27 System.map-2.6.32-30-generic
-rw-r--r-- 1 root root 1.7M 2011-04-09 02:35 System.map-2.6.32-31-generic
-rw-r--r-- 1 root root 1.7M 2011-04-21 01:52 System.map-2.6.32-32-generic
-rw-r--r-- 1 root root 1.7M 2011-07-30 03:17 System.map-2.6.32-33-generic
-rw-r--r-- 1 root root 1.7M 2011-09-14 03:51 System.map-2.6.32-34-generic
-rw-r--r-- 1 root root 1.7M 2011-10-11 23:33 System.map-2.6.32-35-generic
-rw-r--r-- 1 root root 1.7M 2011-11-09 03:33 System.map-2.6.32-36-generic
-rw-r--r-- 1 root root 1.7M 2011-12-03 04:08 System.map-2.6.32-37-generic
-rw-r--r-- 1 root root 1.2K 2010-04-16 16:03 vmcoreinfo-2.6.32-21-generic
-rw-r--r-- 1 root root 1.2K 2011-01-11 03:20 vmcoreinfo-2.6.32-28-generic
-rw-r--r-- 1 root root 1.2K 2011-02-11 21:57 vmcoreinfo-2.6.32-29-generic
-rw-r--r-- 1 root root 1.2K 2011-03-02 04:29 vmcoreinfo-2.6.32-30-generic
-rw-r--r-- 1 root root 1.2K 2011-04-09 02:38 vmcoreinfo-2.6.32-31-generic
-rw-r--r-- 1 root root 1.2K 2011-04-21 01:54 vmcoreinfo-2.6.32-32-generic
-rw-r--r-- 1 root root 1.2K 2011-07-30 03:19 vmcoreinfo-2.6.32-33-generic
-rw-r--r-- 1 root root 1.2K 2011-09-14 03:53 vmcoreinfo-2.6.32-34-generic
-rw-r--r-- 1 root root 1.2K 2011-10-11 23:34 vmcoreinfo-2.6.32-35-generic
-rw-r--r-- 1 root root 1.2K 2011-11-09 03:34 vmcoreinfo-2.6.32-36-generic
-rw-r--r-- 1 root root 1.2K 2011-12-03 04:10 vmcoreinfo-2.6.32-37-generic
-rw-r--r-- 1 root root 3.9M 2010-04-16 16:01 vmlinuz-2.6.32-21-generic
-rw-r--r-- 1 root root 3.9M 2011-01-11 03:18 vmlinuz-2.6.32-28-generic
-rw-r--r-- 1 root root 3.9M 2011-02-11 21:56 vmlinuz-2.6.32-29-generic
-rw-r--r-- 1 root root 3.9M 2011-03-02 04:27 vmlinuz-2.6.32-30-generic
-rw-r--r-- 1 root root 3.9M 2011-04-09 02:35 vmlinuz-2.6.32-31-generic
-rw-r--r-- 1 root root 3.9M 2011-04-21 01:52 vmlinuz-2.6.32-32-generic
-rw-r--r-- 1 root root 3.9M 2011-07-30 03:17 vmlinuz-2.6.32-33-generic
-rw-r--r-- 1 root root 3.9M 2011-09-14 03:51 vmlinuz-2.6.32-34-generic
-rw-r--r-- 1 root root 3.9M 2011-10-11 23:33 vmlinuz-2.6.32-35-generic
-rw-r--r-- 1 root root 3.9M 2011-11-09 03:33 vmlinuz-2.6.32-36-generic
-rw-r--r-- 1 root root 3.9M 2011-12-03 04:08 vmlinuz-2.6.32-37-generic
问题:
- boot 文件夹中的哪些文件可以删除?
- 如何使用Synaptic 软件包管理器工具?
答案1
在终端中运行sudo apt-get remove linux-image-<version>
每个您不需要的内核。
举例来说,sudo apt-get remove linux-image-2.6.32-21-generic
删除 2.6.32-21-generic 版本的内核和所有相关文件。这将释放 /boot 分区上的空间。
要找出应该保留哪一个,请运行uname -r
。 根据您的具体情况,您可以安全删除的版本是:
2.6.32-21-generic
和2.6.32-28-generic
-2.6.32-36-generic
答案2
打开 synaptic。搜索“linux-image”。选择所有你不使用的版本(可能是 2.6.32-36-generic 及以下版本)。右键单击,标记删除,然后点击应用。