LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-16-2006, 02:22 AM   #1
bt198629
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Rep: Reputation: 0
How linux starts to work?


I'm a newbie and my English is quite bad.
Can someone tell me how linux starts to work when power on?
 
Old 01-16-2006, 02:35 AM   #2
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
I think you are looking for:
startx
 
Old 01-16-2006, 02:44 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
It sounds more like he's asking how the boot process works. Basically, the computer's BIOS loads the bootloader into memory. The bootloader parses its configuration file and (possibly) waits for user input. After some timeout, it boots the default OS. It reads the kernel off of disk (Linux kernels are compressed, so the kernel image must be uncompressed too), loads it into memory at some predetermined address, and executes a jump instruction to that address. The kernel then ges through hardware detection, initializes itself, and spawns the init process (pid 1, the first user process to run). Assuming we're using a standard init, init parses /etc/inittab to figure out what it's supposed to run. Eventually, depending on how it's configured init will launch the getty process on the console, presenting the user with the standard login prompt. It may also launch xdm, kdm, or something similar to give the user a GUI login prompt.

That's the process in a nutshell. Bt198629, if you want more detail than that, you'll need to ask a more specific question.
 
Old 01-16-2006, 03:01 AM   #4
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
Depending on what boot loader you're using (grub/lilo), it goes to the screen where you choose your boot image to use for this session, you can also pass some parameters to kernel at boot if you'd like unregular boot, then init starts and enables all kinds of hardware and software, then (if you're using graphical linux distribution) the graphical server starts and you're prompted for login name and password.

Hope i didn't miss anything.
 
Old 01-16-2006, 03:03 AM   #5
Infernal211283
Member
 
Registered: Nov 2004
Location: Mid. East / Israel
Distribution: Slackware 10.2, Gentoo
Posts: 157

Rep: Reputation: 30
btmiller's reply is more technical, hope it wont scare you though

Last edited by Infernal211283; 01-16-2006 at 03:07 AM.
 
Old 01-16-2006, 04:48 AM   #6
bt198629
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you! I thank I have to get some books to read . Can you introduce some of this sort to me ?
 
Old 01-16-2006, 04:51 AM   #7
bt198629
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you! I think I have to get some books to read . Can you introduce some of this sort to me ?
 
Old 01-16-2006, 07:55 AM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 8,157
Blog Entries: 4

Rep: Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717Reputation: 2717
Why books?

You need go no further than the LinuxQuestions.Org wiki.

A good article, referenced in the wiki, is How Linux Boots, found here...
 
Old 01-18-2006, 04:25 AM   #9
bt198629
LQ Newbie
 
Registered: Nov 2005
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you!I will go and read it
 
  


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
LXer: Novell starts work on NHS contract LXer Syndicated Linux News 0 12-19-2005 05:16 AM
for those of you who wish for wireless to start when Linux starts... mrchaos Linux - Wireless Networking 3 05-25-2005 07:28 AM
SMC2802W refusing to work with Fedora Core 3 and prism54 and card never starts? Mad Processor Linux - Wireless Networking 0 02-22-2005 04:11 PM
eth0 starts [ ok ] but won't work... perl4ever Linux - Networking 8 09-03-2004 05:49 PM
apache starts but does not work mrosati Linux - Software 6 06-05-2004 12:53 PM


All times are GMT -5. The time now is 09:35 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration