LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-25-2004, 02:55 AM   #1
gvb_mitwec
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Rep: Reputation: 0
booting of linux


hi,

well may be i haven't checked the right books, but my doubt is this:

when we load dos, three files are loaded 1st: IO.SYS, MS-DOS.SYS and COMMAND.COM...

which files are loaded into the system first when we load linux ?
 
Old 09-25-2004, 05:23 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
It is all recorded in the /var/log/messages file (must be root to view it).
 
Old 09-25-2004, 05:41 AM   #3
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi!

I interpret your question as you want to know what happens when Linux boots. This is a sketchy overview:

o LILO or GRUB (the bootloader) loads the kernel (you'll find it in the /boot/ directory) and an optional initial ram disk which contains some utilities that the kernel might need.

o The kernel configures itself and the hardware and starts the file system.

o The kernel then executes the command /sbin/init. If you look at it, you will notice that it always has PID (Process ID) 1:
ps -aux |grep init
You can put any statically linked program there. I tried with a small "Hello world" C program once. It indeed did print the Hello world string, but my program exited after that. The init program is supposed to never exit, so the kernel paniced. If you are not good at using a rescue disk -- don't try this at home!

o Anyway, the init program reads the file /etc/inittab which is the configuration file for init and acts accordingly. After that it's pretty distribution dependant, but from here on it's scripts galore.

This page contains some more info:
http://www.yolinux.com/TUTORIALS/Lin...itProcess.html

Did this answer your question?
Martin
 
Old 09-26-2004, 08:42 AM   #4
gvb_mitwec
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Smile thanx

hi,

thanx fancypiper and martin!

but i tried /var/log.... there was no file called 'message' &

i found 'message.pcx' in /boot!

but i couldn't open it.
anyways, thnx for helping me, & martin u'r info. was really good.
 
Old 09-26-2004, 09:24 AM   #5
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
Hi again

It's /var/log/messages (notice the s). Also, only root is allowed to read the file. All kind of stuff is written to that log file. You are probably looking for lines like these:
Code:
Sep  5 21:14:29 charlene smb: smbd startup succeeded
Sep  5 21:14:30 charlene smb: nmbd startup succeeded
Sep  5 21:14:31 charlene xfs: xfs startup succeeded
Sep  5 21:14:31 charlene xfs: listening on port 7100
Sep  5 21:14:31 charlene anacron: anacron startup succeeded
Martin
 
Old 09-29-2004, 12:48 AM   #6
gvb_mitwec
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Original Poster
Rep: Reputation: 0
well, i'm looking for the actual filenames ; tha's it.
 
Old 09-29-2004, 01:03 AM   #7
MartinN
Member
 
Registered: Nov 2003
Location: Ronneby, Sweden
Posts: 555

Rep: Reputation: 30
I think you are comparing apples and oranges. You can't name three files that are first loaded in Linux. My best answer is probably my first reply where I described the boot process.

Why do you want to know, is it just curiosity?

Martin
 
Old 09-29-2004, 10:03 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Is this what you are looking for:

http://axiom.anu.edu.au/~okeefe/p2b/...ower2bash.html

or this

http://www.luv.asn.au/overheads/linux-startup.html
 
Old 09-29-2004, 10:54 AM   #9
Kronux
Member
 
Registered: Sep 2004
Distribution: RH9/FreeBSD
Posts: 36

Rep: Reputation: 15
If your seriously interested in finding the interworking of the boot process I suggest LFS.
LinuxfromScratch

But I advise before you go to this website here is what your looking for and it is a very good start.
PowerUp to Bash Prompt

Hope this helps
enjoy!

-kX
 
Old 09-30-2004, 02:16 PM   #10
gvb_mitwec
LQ Newbie
 
Registered: Aug 2004
Posts: 4

Original Poster
Rep: Reputation: 0
thankyou all !

i'll check it out.
 
  


Reply



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
Triple Booting linux/linux/windows Flak Pyro Linux - Distributions 10 12-08-2003 07:46 PM
Tripple booting linux/linux/windows Flak Pyro Linux - General 1 12-05-2003 10:24 PM
triple booting linux linux and 2000 devashish Linux - Software 12 08-28-2003 06:44 AM
Booting Linux evian Linux - Newbie 1 03-11-2003 07:23 AM
Booting Linux DRR Linux - Newbie 2 05-21-2002 10:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:37 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
Open Source Consulting | Domain Registration