Home >Operation and Maintenance >CentOS >What to do if there is insufficient boot space in the centos system

What to do if there is insufficient boot space in the centos system

王林
王林Original
2020-03-16 19:52:014366browse

What to do if there is insufficient boot space in the centos system

Problem:

Because I did not look carefully when installing the system, the default setting of the /boot directory is only 100M, so the /boot space is not enough to compile several versions of the kernel. . Mount it and see that the /boot directory is mounted on /dev/sda1, with only 100M of space.

(Recommended tutorial: centos usage tutorial)

The solution is as follows:

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 /etc/fstab The table contains the /boot item

This method is to cancel hanging /boot on sda1 and use the /boot directory directly, but you need to copy the files originally on /dev/sda1 to /boot .

Related video tutorial sharing: linux video tutorial

The above is the detailed content of What to do if there is insufficient boot space in the centos system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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