Jump to content
funtoo forums
  • 0
Sign in to follow this  
bluephoenix

[Solved] Why does debian kernel need 20G free disk space?

Question

Why does debian kernel need 20G free disk space? Why I didn't face this requirement when I use Gentoo and its kernel?

This requirement causes Funtoo user need to leave at least 20G free disk space forever except he will not compile kernel forever. And the manual says the compile time will be more than 1 hour even on the modern CPU, but I remember I only need less than 10min when I compiled Gentoo kernel in a normal CPU.

I don't like this limitation somehow and I'd like to know what is the benefit I get from the default situation.

Thanks!

Share this post


Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 1

benefit is that you don't have to configure your own kernel. and you are getting a generic distribution kernel where most of the stuff should just work. If you have compiled your kernel in gentoo and know what you are doing then you can surely stick to the old habit.

hdd space is cheap these days :)

Share this post


Link to post
Share on other sites
  • 0
6 minutes ago, palica said:

benefit is that you don't have to configure your own kernel. and you are getting a generic distribution kernel where most of the stuff should just work. If you have compiled your kernel in gentoo and know what you are doing then you can surely stick to the old habit.

hdd space is cheap these days :)

20GB is still huge for a kernel though.  Even Red Hat's kernel isnt that huge.  I am able to install a minimal installation of Red Hat on a 7 GB VM VHD

Share this post


Link to post
Share on other sites
  • 0

it is an approximate space used during compilation of kernel ins a temporary build environment, typically /var/tmp/portage. not the kernels (package size) installed. it is slightly lesser than 20gb in reality, so that number is set to be 100% sure the build environment has the space.

Share this post


Link to post
Share on other sites
  • 0

Thanks you guys' explain to my question!

My agree and disagree are half half.

One important reason I choose Funtoo/Gentoo is I need an OS to run on my OLD machine on which I don't have enough disk space. For those OLD machine, 20G free disk space is not so easy. Or considering the virtual machine you rent from cloud company, every byte values money.

Second import reason I choose Funtoo/Gentoo is easy customization according to some special requirements. Your GENERAL debian kernel may not fulfill my need. So in this case I have to re-compile the kernel after I edit the config. I didn't find complete document describe the method. So I write another new topic to get help.

And two questions I still curious:

1. Why compiling debian kernel consumes too much resource while gentoo kernel does not?

2. Could I choose to use Gentoo kernel without any problem coupled with Funtoo architecture? 

 

Share this post


Link to post
Share on other sites
  • 0
8 hours ago, bluephoenix said:

For those OLD machine, 20G free disk space is not so easy.

you can compile it on a newer machine and install binary package.

 

8 hours ago, bluephoenix said:

1. Why compiling debian kernel consumes too much resource while gentoo kernel does not?

the kernel size and also the kernel compile/build dir size depends on the amount of modules/options selected. You can surely build a smaller kernel with only modules you know you'll use.

 

8 hours ago, bluephoenix said:

2. Could I choose to use Gentoo kernel without any problem coupled with Funtoo architecture? 

Yes, you can!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×