Home>Article>Operation and Maintenance> How to solve the problem of insufficient boot space in centos7
Solution to insufficient boot space in centos7: 1. Execute "umount /boot mkdir /boot_old mount /dev/sda1 /boot_old"; 2. Execute "cp -rp * /boot"; 3. Delete the boot item That’s it.
The operating environment of this article: CentOS 7 system, DELL G3 computer
How to solve the problem of insufficient centos7 boot space?
Solving the lack of space in the centos /boot directory
Because I didn’t look carefully when installing the system, the default setting of the /boot directory is only 100M, so I compiled several versions The kernel/boot space is not enough.
Mount it and you will see that the /boot directory is mounted on /dev/sda1 and the space is only 100M
Solution:
1. umount /boot
2. mkdir /boot_old
3. mount /dev/sda1 /boot_old
4. Go to the /boot_old directory: cp -rp * /boot
5. Delete the /boot entry in the /etc/fstab table
This method is to cancel hanging /boot on sda1 and use the /boot directory directly, but you need to change the original directory Copy the files on /dev/sda1 to /boot.
Recommended: "centos usage tutorial"
The above is the detailed content of How to solve the problem of insufficient boot space in centos7. For more information, please follow other related articles on the PHP Chinese website!