All of lore.kernel.org
 help / color / mirror / Atom feed
* Low on disk space after compiling new kernel.
@ 2010-12-20  6:48 Rishi Agrawal
  2010-12-20  8:45 ` Mulyadi Santosa
  0 siblings, 1 reply; 5+ messages in thread
From: Rishi Agrawal @ 2010-12-20  6:48 UTC (permalink / raw)
  To: kernelnewbies

Hi All,

I installed the kernel 2.6.36 into my Fedora 12 system.

I am now low on disk space.

[root at rishi-desktop kernels]# du -sh linux-2.6.36/
4.4G    linux-2.6.36/

It shows that the new compiled kernel is taking around 4.4GB.

The /lib/modules/2.6.36 is taking around 780M on my disk.

I wanted to free some of the space occupied by the compiled code. I
understand that the /lib/modules/2.6.36 directory can't be deleted as it
contains the compiled modules.

I wanted to delete the files in /usr/src/kernel/2.6.36, without effecting my
newly installed kernel.

-> Can I delete them?

-> What is the best way to delete them, I want to keep the source files?

-> Should I run make clean to remove the compiled code?

-> Any other way?

-- 
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101220/4ccc1b30/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Low on disk space after compiling new kernel.
  2010-12-20  6:48 Low on disk space after compiling new kernel Rishi Agrawal
@ 2010-12-20  8:45 ` Mulyadi Santosa
  2010-12-20  9:15   ` Rishi Agrawal
  0 siblings, 1 reply; 5+ messages in thread
From: Mulyadi Santosa @ 2010-12-20  8:45 UTC (permalink / raw)
  To: kernelnewbies

Hi Rishi....

On Mon, Dec 20, 2010 at 13:48, Rishi Agrawal <rishi.b.agrawal@gmail.com> wrote:
> Hi All,
>
> I installed the kernel 2.6.36 into my Fedora 12 system.
>
> I am now low on disk space.
>
> [root at rishi-desktop kernels]# du -sh linux-2.6.36/
> 4.4G??? linux-2.6.36/

Hm, I think that's rather big....here after compilation (of course, my
.config is likely different than yours), 2.6.36 takes approximately
1.7 GiB
>
> It shows that the new compiled kernel is taking around 4.4GB.

Together with the object files during linking stage, I believe :)

> I wanted to free some of the space occupied by the compiled code. I
> understand that the /lib/modules/2.6.36 directory can't be deleted as it
> contains the compiled modules.

Yup...

> I wanted to delete the files in /usr/src/kernel/2.6.36, without effecting my
> newly installed kernel.
>
> -> Can I delete them?

AFAIK, /lib/modules/<version>/build is symlink-ed to that source code
dir, so IMHO don't delete it..

> -> What is the best way to delete them, I want to keep the source files?

I think the best way here is to do "make clean" and then followed by
"make modules_prepare". That way, your kernel source dir is build with
files enough to compile external modules whenever needed, but not too
bloated

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Low on disk space after compiling new kernel.
  2010-12-20  8:45 ` Mulyadi Santosa
@ 2010-12-20  9:15   ` Rishi Agrawal
  2010-12-20 14:04     ` Dexter Haslem
  0 siblings, 1 reply; 5+ messages in thread
From: Rishi Agrawal @ 2010-12-20  9:15 UTC (permalink / raw)
  To: kernelnewbies

Thanks a ton ... I will try it.


On Mon, Dec 20, 2010 at 2:15 PM, Mulyadi Santosa
<mulyadi.santosa@gmail.com>wrote:

> Hi Rishi....
>
> On Mon, Dec 20, 2010 at 13:48, Rishi Agrawal <rishi.b.agrawal@gmail.com>
> wrote:
> > Hi All,
> >
> > I installed the kernel 2.6.36 into my Fedora 12 system.
> >
> > I am now low on disk space.
> >
> > [root at rishi-desktop kernels]# du -sh linux-2.6.36/
> > 4.4G    linux-2.6.36/
>
> Hm, I think that's rather big....here after compilation (of course, my
> .config is likely different than yours), 2.6.36 takes approximately
> 1.7 GiB
> >
> > It shows that the new compiled kernel is taking around 4.4GB.
>
> Together with the object files during linking stage, I believe :)
>
> > I wanted to free some of the space occupied by the compiled code. I
> > understand that the /lib/modules/2.6.36 directory can't be deleted as it
> > contains the compiled modules.
>
> Yup...
>
> > I wanted to delete the files in /usr/src/kernel/2.6.36, without effecting
> my
> > newly installed kernel.
> >
> > -> Can I delete them?
>
> AFAIK, /lib/modules/<version>/build is symlink-ed to that source code
> dir, so IMHO don't delete it..
>
> > -> What is the best way to delete them, I want to keep the source files?
>
> I think the best way here is to do "make clean" and then followed by
> "make modules_prepare". That way, your kernel source dir is build with
> files enough to compile external modules whenever needed, but not too
> bloated
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>



-- 
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101220/146e778a/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Low on disk space after compiling new kernel.
  2010-12-20  9:15   ` Rishi Agrawal
@ 2010-12-20 14:04     ` Dexter Haslem
  2010-12-21  4:30       ` Rishi Agrawal
  0 siblings, 1 reply; 5+ messages in thread
From: Dexter Haslem @ 2010-12-20 14:04 UTC (permalink / raw)
  To: kernelnewbies

On 12/20/2010 2:15 AM, Rishi Agrawal wrote:
>
> Thanks a ton ... I will try it.
>
>
> On Mon, Dec 20, 2010 at 2:15 PM, Mulyadi Santosa
> <mulyadi.santosa at gmail.com <mailto:mulyadi.santosa@gmail.com>> wrote:
>
>     Hi Rishi....
>
>     On Mon, Dec 20, 2010 at 13:48, Rishi Agrawal
>     <rishi.b.agrawal at gmail.com <mailto:rishi.b.agrawal@gmail.com>> wrote:
>      > Hi All,
>      >
>      > I installed the kernel 2.6.36 into my Fedora 12 system.
>      >
>      > I am now low on disk space.
>      >
>      > [root at rishi-desktop kernels]# du -sh linux-2.6.36/
>      > 4.4G    linux-2.6.36/
>
>     Hm, I think that's rather big....here after compilation (of course, my
>     .config is likely different than yours), 2.6.36 takes approximately
>     1.7 GiB
>      >
>      > It shows that the new compiled kernel is taking around 4.4GB.
>
>     Together with the object files during linking stage, I believe :)
>
>      > I wanted to free some of the space occupied by the compiled code. I
>      > understand that the /lib/modules/2.6.36 directory can't be
>     deleted as it
>      > contains the compiled modules.
>
>     Yup...
>
>      > I wanted to delete the files in /usr/src/kernel/2.6.36, without
>     effecting my
>      > newly installed kernel.
>      >
>      > -> Can I delete them?
>
>     AFAIK, /lib/modules/<version>/build is symlink-ed to that source code
>     dir, so IMHO don't delete it..
>
>      > -> What is the best way to delete them, I want to keep the source
>     files?
>
>     I think the best way here is to do "make clean" and then followed by
>     "make modules_prepare". That way, your kernel source dir is build with
>     files enough to compile external modules whenever needed, but not too
>     bloated
>
>     --
>     regards,
>
>     Mulyadi Santosa
>     Freelance Linux trainer and consultant
>
>     blog: the-hydra.blogspot.com <http://the-hydra.blogspot.com>
>     training: mulyaditraining.blogspot.com
>     <http://mulyaditraining.blogspot.com>
>
>
>
>
> --
> Regards,
> Rishi Agrawal
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Hi Rishi,

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.

-- 
-Dexter Haslem

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Low on disk space after compiling new kernel.
  2010-12-20 14:04     ` Dexter Haslem
@ 2010-12-21  4:30       ` Rishi Agrawal
  0 siblings, 0 replies; 5+ messages in thread
From: Rishi Agrawal @ 2010-12-21  4:30 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Dec 20, 2010 at 7:34 PM, Dexter Haslem <dexter.haslem@gmail.com>wrote:

> On 12/20/2010 2:15 AM, Rishi Agrawal wrote:
>
>>
>> Thanks a ton ... I will try it.
>>
>>
>> On Mon, Dec 20, 2010 at 2:15 PM, Mulyadi Santosa
>> <mulyadi.santosa at gmail.com <mailto:mulyadi.santosa@gmail.com>> wrote:
>>
>>    Hi Rishi....
>>
>>    On Mon, Dec 20, 2010 at 13:48, Rishi Agrawal
>>    <rishi.b.agrawal at gmail.com <mailto:rishi.b.agrawal@gmail.com>> wrote:
>>     > Hi All,
>>     >
>>     > I installed the kernel 2.6.36 into my Fedora 12 system.
>>     >
>>     > I am now low on disk space.
>>     >
>>     > [root at rishi-desktop kernels]# du -sh linux-2.6.36/
>>     > 4.4G    linux-2.6.36/
>>
>>    Hm, I think that's rather big....here after compilation (of course, my
>>    .config is likely different than yours), 2.6.36 takes approximately
>>    1.7 GiB
>>     >
>>     > It shows that the new compiled kernel is taking around 4.4GB.
>>
>>    Together with the object files during linking stage, I believe :)
>>
>>     > I wanted to free some of the space occupied by the compiled code. I
>>     > understand that the /lib/modules/2.6.36 directory can't be
>>    deleted as it
>>     > contains the compiled modules.
>>
>>    Yup...
>>
>>     > I wanted to delete the files in /usr/src/kernel/2.6.36, without
>>    effecting my
>>     > newly installed kernel.
>>     >
>>     > -> Can I delete them?
>>
>>    AFAIK, /lib/modules/<version>/build is symlink-ed to that source code
>>    dir, so IMHO don't delete it..
>>
>>     > -> What is the best way to delete them, I want to keep the source
>>    files?
>>
>>    I think the best way here is to do "make clean" and then followed by
>>    "make modules_prepare". That way, your kernel source dir is build with
>>    files enough to compile external modules whenever needed, but not too
>>    bloated
>>
>>    --
>>    regards,
>>
>>    Mulyadi Santosa
>>    Freelance Linux trainer and consultant
>>
>>    blog: the-hydra.blogspot.com <http://the-hydra.blogspot.com>
>>    training: mulyaditraining.blogspot.com
>>    <http://mulyaditraining.blogspot.com>
>>
>>
>>
>>
>> --
>> Regards,
>> Rishi Agrawal
>>
>>
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
> Hi Rishi,
>
> 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.
>
> --
> -Dexter Haslem
>

yes I have some debugging options set.

The current usage (after make clean and modules_prepare ) is around 867M.

Thanks a lot...


-- 
Regards,
Rishi Agrawal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20101221/9b6abcb7/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-12-21  4:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20  6:48 Low on disk space after compiling new kernel Rishi Agrawal
2010-12-20  8:45 ` Mulyadi Santosa
2010-12-20  9:15   ` Rishi Agrawal
2010-12-20 14:04     ` Dexter Haslem
2010-12-21  4:30       ` Rishi Agrawal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.