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

王林
Release: 2020-03-16 19:52:01
Original
4310 people have browsed it

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!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!