Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-03-2002, 05:44 PM   #1
LQ Newbie
Registered: Dec 2001
Distribution: SuSe 7.1
Posts: 6

Rep: Reputation: 0
Where Does Linux Look First At Bootup?

I am just learning Linux and I want a FULL understanding of how it works not just that it works when I install it.

Where is the first place that Linux looks at boot up. Like a linux version of autoexec.bat or config.sys.

What file tells Linux to check the file for firewall configuration and so on. Anyone happen to have a nice flowchart of all of this?

Thanks in advance,

Old 04-03-2002, 06:30 PM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
a flowchart???

while booting, linux will run rc.something files. first it starts with /etc/rc.sysinit, and from this will load all relevant /etc/rc{runlevel}.d/ scripts and then go for /etc/rc.local. Often ther will be other files like /etc/rc.firewall or such like. after this they tend to go for /etc/profile, and then /etc/bashrc. Each of these files will in turn use a whole host of other other configuration files, so you often want to have a look through to get an idea of what's going on.

Generally speaking tho, the autoexec equivalent is the bashrc or profile files.
Old 04-03-2002, 07:43 PM   #3
LQ Newbie
Registered: Dec 2001
Distribution: SuSe 7.1
Posts: 6

Original Poster
Rep: Reputation: 0

Thanks for the info! It isn't a flowchart but it will do.

Old 04-04-2002, 03:14 AM   #4
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
How about reading this howto for an extensive explanation:
Old 04-04-2002, 10:32 PM   #5
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
Actually /etc/inittab is the very first file it will read, which in turns runs the rc scripts.
Old 04-05-2002, 01:44 AM   #6
LQ Newbie
Registered: Sep 2001
Location: Croatia
Distribution: Mandrake 9.0
Posts: 12

Rep: Reputation: 0
Just write 'man init' and you will get the description of initialization process in Linux. Init is the father of all processes, all ather processes are simply forked from init.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the Linux bootup appearance. Nebetsu Debian 1 08-17-2005 05:53 PM
Linux kernel Bootup Time shrey_j Programming 0 10-16-2004 01:52 AM
How to convert a bootup floppy to a bootup CD ? wlaw Linux - Newbie 2 07-15-2004 04:28 AM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM
linux wont pass bootup aromes Linux - General 1 09-18-2003 01:02 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:47 PM.

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