LinuxQuestions.org
Register a domain and help support LQ
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 05-30-2005, 02:16 AM   #1
Nilesh.Shah
LQ Newbie
 
Registered: Mar 2005
Location: Mumbai, India
Distribution: RHEL 4
Posts: 29

Rep: Reputation: 15
Booting Sequence


Hello all,

I am new to linux and studying/preparing for it. Can anyone tell me the proper/actual booting sequences which takes place when you start a linux system. I mean the booting files which are evoked inorder.

Also any link to understand grub.conf file very thoroughly would be much appreciated.



Thanks & Regards
Nilesh Shah
 
Old 05-30-2005, 03:21 AM   #2
niknah
Member
 
Registered: Dec 2002
Location: In front of a computer
Distribution: UPS, DHL, FedEx
Posts: 466

Rep: Reputation: 38
the grub instructions are in info on my computer, "info grub", or google for it if you don't like the crappy info keys.

boot goes like this...
* grub/lilo
* kernel
* init
* /etc/rc.d/rc?.d files
 
Old 05-30-2005, 03:51 AM   #3
musicman_ace
Senior Member
 
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
I've heard the process described in more detail than this, so what I've got is a work in progress. I'm going the GRUB way if that matters.


1. Power On Self Test (POST) - Computer's Power button is pressed.
2. If the BIOS and POST recieve no errors, the BIOS loads and executes the first 512 byte from the hard drive.
3. The bootloader is executed which brings up the kernel selection menu
4. Grub loads stage1, and 1.5 (1.5 loads the filesystem that /boot resides on)in order to bring up the menu.
5. Once the kernel is selected and loaded into memory, it initialized devices and loads the ramdisk. It mounts / in memory temporarily in order to mount the virtual filesystems before performing the 'pivot_root()' function to allow / to be mounted on the hard drive.
6. if the ramdisk exists, it will load any modules dependancies and execute the pivot_root
7. INIT - init gets executed. Init reads the /etc/inittab which will determine the runlevel.
8. Runlevel. Since the devices and runlevel are in place, it now starts spawning processes via the init scripts stored in /etc/rc#.d/
 
  


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
Boot sequence fiomba Mandriva 2 12-15-2004 08:04 PM
Change booting sequence u4u Linux - General 1 12-13-2004 06:20 AM
boot sequence kermit Linux - Newbie 3 12-10-2004 02:41 AM
Help to remove script from booting sequence sasha_baranov Linux - Newbie 1 11-18-2004 10:34 AM
starting sequence c0c0deuz Linux - General 2 06-01-2002 06:12 AM


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