欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

玩欧卡就用莱仕达V10方向盘欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 6034|回复: 0
收起左侧

Ubuntu更新时提示/boot空间不足的解决办法

[复制链接]
知行 发表于 2012-7-15 19:56 | 显示全部楼层 |阅读模式
ubuntu更新时提示/boot目录空间不足,google了一下,可以把旧的内核卸载掉,腾出/boot空间

1.首先查看自己使用的内核
jerome@***:~$ uname -a

Linux jerome@*** 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011 x86_64 GNU/Linux

2.然后查看自己boot目录,选择需要卸载的版本
jerome@***:~$ cd /boot
jerome@***:/boot$ ls -l
总用量 60053
-rw-r–r– 1 root root 646299 2011-04-09 06:26 abi-2.6.32-31-generic
-rw-r–r– 1 root root 646334 2011-04-21 06:38 abi-2.6.32-32-generic
-rw-r–r– 1 root root 646334 2011-07-30 05:52 abi-2.6.32-33-generic
-rw-r–r– 1 root root 646590 2011-09-14 07:26 abi-2.6.32-34-generic
-rw-r–r– 1 root root 110567 2011-04-09 06:26 config-2.6.32-31-generic
-rw-r–r– 1 root root 110578 2011-04-21 06:38 config-2.6.32-32-generic
-rw-r–r– 1 root root 110578 2011-07-30 05:52 config-2.6.32-33-generic
-rw-r–r– 1 root root 110578 2011-09-14 07:26 config-2.6.32-34-generic
drwxr-xr-x 3 root root 6144 2011-09-30 08:29 grub
-rw-r–r– 1 root root 8342172 2011-05-03 09:40 initrd.img-2.6.32-31-generic
-rw-r–r– 1 root root 8341449 2011-06-08 08:16 initrd.img-2.6.32-32-generic
-rw-r–r– 1 root root 8373069 2011-08-11 08:45 initrd.img-2.6.32-33-generic
-rw-r–r– 1 root root 8374070 2011-09-30 08:29 initrd.img-2.6.32-34-generic
drwx—— 2 root root 12288 2010-08-20 09:59 lost+found
-rw-r–r– 1 root root 160280 2010-03-23 17:40 memtest86+.bin
-rw-r–r– 1 root root 2158030 2011-04-09 06:26 System.map-2.6.32-31-generic
-rw-r–r– 1 root root 2156642 2011-04-21 06:38 System.map-2.6.32-32-generic
-rw-r–r– 1 root root 2156784 2011-07-30 05:52 System.map-2.6.32-33-generic
-rw-r–r– 1 root root 2157354 2011-09-14 07:26 System.map-2.6.32-34-generic
-rw-r–r– 1 root root 1336 2011-04-09 06:32 vmcoreinfo-2.6.32-31-generic
-rw-r–r– 1 root root 1336 2011-04-21 06:39 vmcoreinfo-2.6.32-32-generic
-rw-r–r– 1 root root 1336 2011-07-30 05:53 vmcoreinfo-2.6.32-33-generic
-rw-r–r– 1 root root 1336 2011-09-14 07:29 vmcoreinfo-2.6.32-34-generic
-rw-r–r– 1 root root 4055840 2011-04-09 06:26 vmlinuz-2.6.32-31-generic
-rw-r–r– 1 root root 4049376 2011-04-21 06:38 vmlinuz-2.6.32-32-generic
-rw-r–r– 1 root root 4051264 2011-07-30 05:52 vmlinuz-2.6.32-33-generic
-rw-r–r– 1 root root 4053696 2011-09-14 07:26 vmlinuz-2.6.32-34-generic

3.卸载旧内核应该使用命令:
jerome@***:/boot$ sudo apt-get remove linux-image-2.6.32-31-generic
jerome@***:/boot$ sudo apt-get remove linux-image-2.6.32-32-generic
4.查看/boot目录:
jerome@***:/boot$ sudo du -m /boot //以MB为单位显示
1        /boot/grub/locale
5        /boot/grub
1        /boot/lost+found
34        /boot

5.查看文件系统使用情况,和文件系统被挂在的位置:
jerome@***:/boot$ df -lh
文件系统 容量 已用 可用 已用%% 挂载点
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 74G 9.2G 61G 14% /
none 2.0G 264K 2.0G 1% /dev
none 2.0G 1.5M 2.0G 1% /dev/shm
none 2.0G 144K 2.0G 1% /var/run
none 2.0G 0 2.0G 0% /var/lock
none 2.0G 0 2.0G 0% /lib/init/rw
/dev/sda1 92M 39M 48M 46% /boot
/dev/sda4 382G 195G 168G 54% /home

reboot电脑便可以更新

转自http://www.jeromechan.com/it-2/ubuntu%E6%9B%B4%E6%96%B0%E6%97%B6%E6%8A%A5-boot%E7%A9%BA%E9%97%B4%E4%B8%8D%E8%B6%B3%E7%9A%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-5-8 12:58 , Processed in 0.037344 second(s), 8 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表