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!