LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2004, 09:39 AM   #1
vito_huang
Member
 
Registered: Oct 2004
Posts: 68

Rep: Reputation: 15
kernel questions


what does kenerl acutly do??/ i mean when does it start kernel, all i see when i complie and new kernel it just make an kernel image(about 3Mbytes),modules,and system.map. all this thing are under 100Mbytes. and when you boot linux you only boot the kernel image, is kernel really that small programs??i don't understand
when boot an small kernel image how can this small program reconstruct to an very power kernel
i mean under windows you have windows directory store the kernel things, but in linux there are only three things to construct an power system(does it possible or i am wrong??)

and i also don't understand when kernel it loaded it load init within the /sbin/init but all the init are bash scripts,it need an bash shell to interrputer it, so it shoud load an bash shell first, therefore the process for number 1 will be bash(or some other console) not init

can somebody point out what i am saying here is wrong and give some useful documentation URL to me !!!!!!
 
Old 12-03-2004, 10:09 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
First, /sbin/init is not a shell script.
Code:
[~]# file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
The kernel is the very most base part of the OS. For the most part, all the kernel does is move data around. It handles talking to the hardware, and making sure programs run (that is, as a scheduler). During normal bootup the bootloader loads the kernel, which then takes off and probes your hardware, finds the root filesystem, and kicks off init. Init handles bringing up the rest of the system to whatever runlevel is specified in inittab.

The kernel on Win32 is not all of %system32%. It's %system32%\kernel.exe (and usually some DLLs, which are roughly equal to LKMs in the Linux world).

HTH
 
Old 12-03-2004, 10:09 AM   #3
0pal_t0ad
Member
 
Registered: Feb 2004
Location: Southampton, England
Distribution: Laptop:Gentoo-i686-2.6.9-r9 Desktop:Slackware10 2.4.26
Posts: 298

Rep: Reputation: 30
this should explain everything: http://www.tldp.org/LDP/tlk/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Questions jimbo-62 Debian 2 08-08-2005 09:49 PM
Kernel Questions. rvijay Linux - General 3 01-09-2005 04:33 PM
2.6.7 Kernel questions deiussum Linux - Software 4 08-04-2004 08:32 AM
Kernel questions breider565 Linux - Newbie 2 06-04-2004 03:30 PM
kernel questions matt_w_lambert Linux - General 2 12-27-2003 08:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration