Hi, Suppose I get a Kernel source code and try to compile it on Linux which is not having gcc compiler then it will not get compiled for sure b'coz kernel needs gcc for compilation. My question is then how a Linux gets installed on raw hard disk which in not having gcc pre-installed. I also believe gcc can't be installed on raw hard disk (not sure and never tried). So, it is also not the case that Linux installs gcc first and then do the rest later. Can any one explain how the thing works from lower level point of view. |
Hi, I am not asking about the installation process etc ........ As Titus already pointed out I am more into how it all started ?? The question can be generalised for any OS. I tried to look into ULK for system startup but it only talks about how system gets bootup not installed |
You need a LiveCD to be able to build linux kernel & coreutils, etc from sources. LiveCD has all above. I prefer using either Gentoo Install CD or Slackware DVD for that(last one is easy for me because I already have it on disc) for that. Also I am a Gentoo Linux user, I've built it from stage 3(meaning I have gcc, coreutils and some other basic soft already compiled), my current kernel is 2.6.33.2 from kernel.org. You may also wish to see LFS project site: * http://www.linuxfromscratch.org/ * http://www.linuxfromscratch.org/livecd/
(15 Apr '10, 09:34)
Web31337
|
Hi, Ok, this one is easy...but first: welcome to the pack. If you ask THIS question, you're possibly V-E-R-Y new to Linux, so, again: welcome! Installing Linux...the easy way. Get a distro. Flip to this page (ftp://ftp.belnet.be/mirror/) and select one. I use Fedora, but you are free to choose. If you are that new, though, go for Ubuntu. Download the ISO's. Can you burn a DVD? Cool, get the one big one. No DVD's? Like me, then, get one ISO per CD-rom. Burn the CD-s/DVD. Any package can do that. Install. Put the DVD/first CD in the drive and reboot, follow instructions. It seems that what you are trying to do is build a Lambo from scratch. Well, "Linux from scratch" lets you do just that, but it IS tuff, be warned. Better just use what's already out there, most of us do... Now, however, you are on the right path here assuming gcc is needed somewhere. It is. To recompile a kernel. Wanna give that a whack? No sweat, it is easy, just follow the steps outlined here : http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html and you're off. But Linux needs to have been installed already... At install, the installer will ask to prep the drive, let it use the pre-configured settings, they "fit most sizes" - it will (re) format the drive for you. If there is no surface at all - then you'll need to low-level format the thing first. Let the pack know how this turns out!! Happy to have you in the group!! Thor Thanks but my question is how it gets installed not how to install.
(15 Apr '10, 10:32)
Anonymous
|
Please accept an answer so the question/answer can be finished.