Home > Operation and Maintenance > CentOS > About centos7 /boot/partition processing

About centos7 /boot/partition processing

藏色散人
Release: 2021-01-11 14:44:45
forward
2710 people have browsed it

The following tutorial column of centos will introduce to you about centos7 /boot/ partition processing. I hope it will be helpful to friends in need!

About centos7 /boot/partition processing

/boot system boot partition

(1) Delete useless kernel

Check the disk capacity , 83% of the /boot partition is occupied, which is very dangerous. It is estimated that if you put another kernel, the system will not be able to open

boot]$ df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/sda1                194M  158M   27M  86% /boot
Copy after login

View the local kernel kernel model

boot]$ uname -r
3.10.0-957.1.3.el7.x86_64    #系统当前使用的内核版本号
 boot]$ rpm -q kernel
kernel-3.10.0-957.el7.x86_64    #内核旧版本,未删除的文件
kernel-3.10.0-957.1.3.el7.x86_64
Copy after login

View all Rpm packages related to the kernel kernel

boot]$ rpm -qa|grep kernel
kernel-tools-libs-3.10.0-957.1.3.el7.x86_64
kernel-3.10.0-957.1.3.el7.x86_64
kernel-debug-devel-3.10.0-1062.1.1.el7.x86_64
kernel-headers-3.10.0-957.1.3.el7.x86_64
kernel-3.10.0-957.el7.x86_64
kernel-tools-3.10.0-957.1.3.el7.x86_64
Copy after login

Delete useless kernel

boot]$ sudo rpm -e kernel-3.10.0-957.el7.x86_64
Copy after login

Check again

boot]$ rpm -q kernel
kernel-3.10.0-957.1.3.el7.x86_64
Copy after login

Complete deletion!

/boot 内存占用变为62%(但少得不是很多)
boot]$ df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/sda1                194M  114M   71M  62% /boot
Copy after login

The above is the detailed content of About centos7 /boot/partition processing. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:cnblogs.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template