• 解决"更新需要花去xM磁盘上总计/boot的空间..."的问题


    解决"更新需要花去xM磁盘上总计/boot的空间..."的问题
     
    系统自动升级会安装多个内核,卸载多余的内核可以获得更多磁盘空间
     
    root@local-Lenovo-G470:/home/local# dpkg --get-selections|grep linux      
     //带有image的为系统内核
      www.2cto.com  
    libselinux1
    install
    linux-firmware install
    linux-generic install
    linux-headers-3.2.0-23 install
    linux-headers-3.2.0-23-generic install
    linux-headers-3.2.0-24 install
    linux-headers-3.2.0-24-generic install
    linux-headers-3.2.0-27 install
    linux-headers-3.2.0-27-generic install
    linux-headers-3.2.0-29 install
    linux-headers-3.2.0-29-generic install
    linux-headers-generic install
    linux-image-3.2.0-24-generic install
    linux-image-3.2.0-27-generic install
    linux-image-3.2.0-29-generic install
    linux-image-generic install
    root@local-Lenovo-G470:/home/local# uname -a          //查看系统当前使用内核
    Linux local-Lenovo-G470 3.2.0-29-generic #46-Ubuntu SMP Fri Jul 27 17:03:23 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
     
    root@local-Lenovo-G470:/home/local# sudo apt-get remove image-3.2.0-24-generic       //卸载多余内核
    正在读取软件包列表... 完成
    正在分析软件包的依赖关系树       
    正在读取状态信息... 完成       
    注意,根据正则表达式 image-3.2.0-24-generic 选中了 linux-image-3.2.0-24-generic
    注意,根据正则表达式 image-3.2.0-24-generic 选中了 linux-image-3.2.0-24-generic-pae
     
    下列软件包将被【卸载】:  www.2cto.com  
      linux-image-3.2.0-24-generic
    升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 90 个软件包未被升级。
    解压缩后将会空出 149 MB 的空间。
    您希望继续执行吗?[Y/n]y
     
    (正在读取数据库 ... 系统当前共安装有 251973 个文件和目录。)
    正在卸载 linux-image-3.2.0-24-generic ...
    Examining /etc/kernel/prerm.d.
    run-parts: executing /etc/kernel/prerm.d/dkms 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
    Examining /etc/kernel/postrm.d .
    run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
    update-initramfs: Deleting /boot/initrd.img-3.2.0-24-generic
    run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-24-generic /boot/vmlinuz-3.2.0-24-generic
     
    Generating grub.cfg ...  www.2cto.com  
    Found linux image: /boot/vmlinuz-3.2.0-29-generic
    Found initrd image: /boot/initrd.img-3.2.0-29-generic
    Found linux image: /boot/vmlinuz-3.2.0-27-generic
    Found initrd image: /boot/initrd.img-3.2.0-27-generic
    Found memtest86+ image: /memtest86+.bin
    Found Windows 7 (loader) on /dev/sda1
    Found Windows Recovery Environment (loader) on /dev/sda4
    done
    root@local-Lenovo-G470:/home/local# 
  • 相关阅读:
    文本框样式
    flash载入xml不显示中文之谜
    日期 时间 正则表达式
    .NET对象生命周期小结
    Python标准库12 数学与随机数 (math包,random包)
    CXF 4 应用开发
    CXF 2
    CXF 3
    MyEclipse提示键配置、提示快捷键、提示背景色、关键字颜色、代码显示
    CXF 5参考资料
  • 原文地址:https://www.cnblogs.com/androidstudy/p/5134606.html
Copyright © 2020-2023  润新知