kernel image path

Sumit Kumar sumit686215 at gmail.com
Tue May 8 15:07:42 EDT 2018


Thanks Valdis. I checked /lib/modules directory. It had a lot of 
subdirectories - one for each kernel build I guess, each one around 4GB. 
I have removed some of the older one's with "rm" cmd. I hope it doesn't 
break grub.

--

Thanks and Regards,

Sumit


On Tuesday 08 May 2018 10:03 AM, valdis.kletnieks at vt.edu wrote:
> On Tue, 08 May 2018 03:12:31 +0530, Sumit Kumar said:
>> My local kernel repository size has inflated to around 14 GB after
>> building kernel a few times. I was wondering if it keeps previous images
>> as well which could be taking a lot of disk space.
> Not sure what you mean by "local kernel repository".  The kernel build directory
> should use pretty much the same amount of disk each time you build it (unless
> you're using O= pointing at a different place each time, in which case it's doing
> exactly what you told it to do...)
>
> Note that if you install a lot of kernels, you'll end up with lots of
> subdirectories in /lib/modules if you don't clear them out.  Particularly a
> problem if you build a kernel a week (like I do) and use a "distro" config that
> builds almost everything (I don't do that).
>




More information about the Kernelnewbies mailing list