change the size of directory boot in Linux

October 9, 2011 at 00:33:09
Specs: red hat linux
I am compiling the new kernel of Linux, so I will use the file folder /usr/scr and /boot. But it said there is not enough space in /usr/scr and /boot. But there is enough space in /home. So I want to increase the size of the file folder /usr/src and /boot. Please tell me how should I do with it.
Thanks in advance.

See More: change the size of directory boot in Linux

Report •

October 9, 2011 at 01:51:55
The problem is that your /usr/src (or possibly just /usr) and /boot are located on different partitions to /home. The real answer to your problem is to resize these partitions, using something like parted.

A workaround for the /usr/src problem would be to move the Linux source directory to your home directory and compile it there (it doesn't have to be in /usr/src - that's just a convention).

As for the boot partition, I'm surprised that it doesn't have enough room for your existing kernel and a new one. Are there several old kernels in /boot? If so you could delete the oldest one.

Report •
Related Solutions

Ask Question