<br><br><div class="gmail_quote">On Mon, Dec 20, 2010 at 7:34 PM, Dexter Haslem <span dir="ltr"><<a href="mailto:dexter.haslem@gmail.com">dexter.haslem@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 12/20/2010 2:15 AM, Rishi Agrawal wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
Thanks a ton ... I will try it.<br>
<br>
<br>
On Mon, Dec 20, 2010 at 2:15 PM, Mulyadi Santosa<br></div><div class="im">
<<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a> <mailto:<a href="mailto:mulyadi.santosa@gmail.com" target="_blank">mulyadi.santosa@gmail.com</a>>> wrote:<br>
<br>
Hi Rishi....<br>
<br>
On Mon, Dec 20, 2010 at 13:48, Rishi Agrawal<br></div><div><div></div><div class="h5">
<<a href="mailto:rishi.b.agrawal@gmail.com" target="_blank">rishi.b.agrawal@gmail.com</a> <mailto:<a href="mailto:rishi.b.agrawal@gmail.com" target="_blank">rishi.b.agrawal@gmail.com</a>>> wrote:<br>
> Hi All,<br>
><br>
> I installed the kernel 2.6.36 into my Fedora 12 system.<br>
><br>
> I am now low on disk space.<br>
><br>
> [root@rishi-desktop kernels]# du -sh linux-2.6.36/<br>
> 4.4G linux-2.6.36/<br>
<br>
Hm, I think that's rather big....here after compilation (of course, my<br>
.config is likely different than yours), 2.6.36 takes approximately<br>
1.7 GiB<br>
><br>
> It shows that the new compiled kernel is taking around 4.4GB.<br>
<br>
Together with the object files during linking stage, I believe :)<br>
<br>
> I wanted to free some of the space occupied by the compiled code. I<br>
> understand that the /lib/modules/2.6.36 directory can't be<br>
deleted as it<br>
> contains the compiled modules.<br>
<br>
Yup...<br>
<br>
> I wanted to delete the files in /usr/src/kernel/2.6.36, without<br>
effecting my<br>
> newly installed kernel.<br>
><br>
> -> Can I delete them?<br>
<br>
AFAIK, /lib/modules/<version>/build is symlink-ed to that source code<br>
dir, so IMHO don't delete it..<br>
<br>
> -> What is the best way to delete them, I want to keep the source<br>
files?<br>
<br>
I think the best way here is to do "make clean" and then followed by<br>
"make modules_prepare". That way, your kernel source dir is build with<br>
files enough to compile external modules whenever needed, but not too<br>
bloated<br>
<br>
--<br>
regards,<br>
<br>
Mulyadi Santosa<br>
Freelance Linux trainer and consultant<br>
<br></div></div>
blog: <a href="http://the-hydra.blogspot.com" target="_blank">the-hydra.blogspot.com</a> <<a href="http://the-hydra.blogspot.com" target="_blank">http://the-hydra.blogspot.com</a>><br>
training: <a href="http://mulyaditraining.blogspot.com" target="_blank">mulyaditraining.blogspot.com</a><br>
<<a href="http://mulyaditraining.blogspot.com" target="_blank">http://mulyaditraining.blogspot.com</a>><br>
<br>
<br>
<br>
<br>
--<br>
Regards,<br>
Rishi Agrawal<br>
<br>
<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org" target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</blockquote>
<br>
Hi Rishi,<br>
<br>
One other thing that might help is not compiling a debug build if you dont need it. Debug objects are much bigger of course. If you're ending up at 4.4GB it sounds like a build with debugging on.<br>
<br>
-- <br><font color="#888888">
-Dexter Haslem<br>
</font></blockquote></div><br>yes I have some debugging options set.<br><br>The current usage (after make clean and modules_prepare ) is around 867M.<br><br>Thanks a lot...<br><br clear="all"><br>-- <br>Regards,<br>Rishi Agrawal<br>
<br>