1. 查看当前使用内核:uname -r4.4.0-97-generic 2. 查看安装的内核dpkg --list 'linux-image*' 3. 删除旧内核sudo apt-get remove linux-image-VERSION sudo apt-get remove linux-image-4.4.0-21-genericsudo apt-get remove linux-image-4.4.0-75-genericsudo apt-get remove linux-image-…
2016年09月03日 14:16:45 萧氏一郎 阅读数:7802 标签: ubuntuboot分区清理更多 个人分类: linux   版权声明:本文为本猿原创文章,转载务必注明出处,多谢. https://blog.csdn.net/xhw035/article/details/52422970 关于ubuntu系统boot分区空间不足而又无法卸载旧内核的解决方法 今天早上打开电脑,发现本人ubuntu 16.04系统提示boot分区不足,然后仔细查看,发现果然boot分区剩余0m.顿时不…
现象: CentOS7开机启动界面显示多个内核选项 原因: 正常情况下,有两个启动项,一个是"正常启动",另一个是"救援模式启动"(rescue). 如果启动项多于2个,说明当前系统有旧内核未删除.原因是CentOS更新后不会自动删除旧内核. 默认以新内核启动,可以在启动选项中临时选择,也可以修改配置永久指定. 示例:修改默认启动的内核 [root@CentOS-7 ~]# uname -r # 查看当前内核版本 3.10.0-693.5.2.el7.x86_64…
#使用cat /boot/grub2/grub.cfg |grep menuentry 查看系统可用内核 [root@bigapp-slave27 ~]# cat /boot/grub2/grub.cfg |grep menuentry if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" menuentry_id_option="" export menu…
#使用cat /boot/grub2/grub.cfg |grep menuentry 查看系统可用内核 [root@bigapp-slave27 ~]# cat /boot/grub2/grub.cfg |grep menuentry if [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id" menuentry_id_option="" export menu…
https://blog.csdn.net/along_oneday/article/details/75148240 先查看当前内核版本号(防止误删) uname –r 查看已经安装过的内核 dpkg –get-selections|grep linux 删除旧内核(小于1中显示的版本号的内核) sudo apt-get remove linux-image-(旧版本号) 有卸载不完全的(有提示),可以用 sudo apt-get autoremove来删除…
导入key rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org 安装elrepo的yum源 rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm 安装内核 yum --enablerepo=elrepo-kernel install kernel-ml-devel kernel-ml 查看默认启动项 awk -F\' '$1=="menu…
随着android项目的进行,如果没有及时删除无用的资源时安装包会越来越大,是时候整理一下废弃资源缩小压缩包了,少年! 其实判断一个资源(drawable,layout)是否没有被使用很简单,文件名(不包含后缀)去文件中查找一下就行了,没找到就没有用到,直接删除了就可以了 python的字符串处理相对简单一点,就写了个脚本,供大家参考: import osimport os.pathrootdir = 'D:\HitFm_v2.1.6\hitfm\src' pngFiles = []xmlFil…
Android lint  删除无用.冗余的  配置文件和 图片资源    转载请注明  http://blog.csdn.net/aaawqqq?viewmode=contents Android项目经过长期的迭代开发  项目当中有大量无用的java类和冗余图片 如果不整理将会导致 apk 包比较大 审查 清理Java类  使用UCDetector  可以查看我的上篇 博文 http://blog.csdn.net/aaawqqq/article/details/46684441 Androi…
经常升级Linux内核,导致更新时警告/boot分区空间不足.这是以为多次升级内核后,导致内核版本太多,清理一下没用的内核文件就行了. 原文地址请保留http://www.cnblogs.com/rossoneri/p/4017861.html 查看安装的内核 dpkg --get-selections |grep linux-image 也可直接查看/boot下有哪些文件 ls /boot 查看当前运行内核 uname -a 将旧的内核删除(尽量保留2-3个以便恢复) --generic 清理…