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 06-05-2004, 12:59 AM   #1
muthiahm
LQ Newbie
 
Registered: Jun 2004
Location: India
Distribution: Red Hat 7.2
Posts: 13

Rep: Reputation: 0
Booting Process


Hi Friends,

I am doing a research work in linux. Now only i have started and i am finding difficult to understand the booting process. Can anyone explain me about that.

Regards
Muthiah.M
 
Old 06-05-2004, 02:33 AM   #2
Kristijan
Member
 
Registered: Sep 2003
Location: Melbourne, Australia
Distribution: NetBSD 3.0.1, Slackware 10.1
Posts: 394

Rep: Reputation: 30
What exactly don't you understand, can you be more specific?
 
Old 06-05-2004, 03:08 AM   #3
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
www.tldp.org has some excellent information on this. Booting isn't really complicated, but it's pretty arcane once you get past the basics. This is because you are dealing more with hardware than software. As each peice of hardware is different, the boot process varies greatly. The most obvious problem is legacy. Older computers may still exist for a certain operating system, and that operating system needs to be able to adapt to the older boot processes. Therefore, you have a number of truely inefficient operations at boot time, to adapt to this possibility.

Honestly though, the biggest problem in understanding booting is the fact that you have to have excellent knowledge of the bios/processor/motherboard system, and how they interact. You need to know what commands are available, what aren't, what is efficient, tricks and traps, and so on. If you're new to this subject, I wish you luck. This is the kind of thing people spend years learning.
 
Old 06-05-2004, 05:04 AM   #4
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
The (very veru basic) outline of the boot process is:

1) The machine is powered on and checks for basic hardware. This is called the POST (Power On Self Test) and is controlled by the physical jumper settings on your motherboard and the motherboard's BIOS settings.

2) Once the machine knows what physical hardware (memory, ports, hard drives, removeable drives) it has connected, it begins the search for an OS to load. Since at this point all it knows is hardware, it seeks the first drive partition with a 'bootable' flag (usually the first primary partition of the master device on the primary IDE channel) in order to read the MBR (Master Boot Record). The MBR is a loader which contains pointers, created by a bootloader, to indicate where the bootloader should next look for the bulk of the information as to what OSes exist on the system and where each OSes boot files are located.

3) Once the bootloader has initialized, it then reads its own configuration file and presents a menu if necessary; when a choice is made from this menu, or if no menu is necessary because only one OS esixts on the system, it then loads the boot files referenced in the configuration file for that menu entry, or which are hard-coded ino the botloader itself in the case of Windows.

4) Now control is passed to the kernel of the booting OS, which initializes and detects the available hardware for use by the OS. When the hardware has been detected, any configuration for the individual parts is initialized, usually via a system service or daemon (sound services, USB services, network daemons such as DHCP, Samba file sharing, etc).

5) When that process is complete, it's pretty much time for the OS to get personal, and offer to log a user in, or do so automatically. Once a user is logged in, the personal desktop configuration files are read, and per-user services are started.

6) Finally, your desktop is presented to you in all its glory, and you can get on with computing.

Hope this helps-- any readers who see major gaps or errors in this text, please correct me. I was just testing my understanding of the boot process by typing this, so if my understanding is incomplete, I'm more than happy to learn .
 
Old 06-05-2004, 05:46 AM   #5
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
Okay, you're pretty new at this, and willing to admit it, so that's a good sign. Still, you're glossing over some of the major things that happen as a computer boots. For one thing, there's rarely a clean handover of responsibilities, where one segment ends, and another one begins. Usually, there's some grey area there.

I'm not sure what you're aiming for, but step 4 is the most critical part. Think of how many items are involved. Now, the hardware is almost an abstract point. At stage 4, the user is becoming more critical.
 
Old 06-05-2004, 08:53 AM   #6
motub
Senior Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Gentoo (main); SuSE 9.3 (fallback)
Posts: 1,607

Rep: Reputation: 46
Thanks Scott, but of course I glossed over some of the major things that happen and presented it as generally more clearly defined than the process really is... the original question was quite general and non-specific, and I had no intention of writing a book on the subject (not being a software engineer, and not being paid to write a book for any purpose in any case ).

But obviously someone "having difficulty understanding the boot process" has to first know what the boot process actually is. So that's what I tried to explain in a simple and understandable way for someone who might not be technically oriented and only had seen the boot process without knowing anything about what was actually happening.

I was mostly wondering if there were any gross errors of fact in the summary I posted.
 
Old 06-10-2004, 04:54 AM   #7
muthiahm
LQ Newbie
 
Registered: Jun 2004
Location: India
Distribution: Red Hat 7.2
Posts: 13

Original Poster
Rep: Reputation: 0
Thank You Friends,


Regards,
Muthiah.M
 
  


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
booting process scc28y Linux - Newbie 1 03-26-2005 12:57 AM
skip a process when pc is booting totti10 Mandriva 4 11-15-2004 01:19 PM
speeding up the booting process dieroboter Linux - Software 4 09-20-2003 07:38 PM
Mandrake 9.1 and booting process mykyl Linux - General 2 09-04-2003 10:26 AM
Booting process of Linux monowar Linux - General 6 07-29-2002 09:46 AM

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

All times are GMT -5. The time now is 02:44 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