Solved

linux boot process

Posted on 2014-02-14
7
898 Views
Last Modified: 2014-03-16
in rhel4 / rhel5 / rhel5 is the linux boot process same?

can someone explain how linux boot process works?

what is upstart? is it some thing new?
0
Comment
Question by:ittechlab
7 Comments
 
LVL 13

Accepted Solution

by:
Daniel Helgenberger earned 200 total points
ID: 39860082
Hello,

I assume you mean RHEL  4,5,6?

The Linux boot process can very basically broken down into these steps:
- Boot loader (grub) loads the kernel in an initial ram disk
- There kernel takes care of enumerating devices (udev) and loading appropriate drivers (kernel modules). In the end, the root filesystem is mounted read/write.
- Then, the INIT process is started. From there, the init process runs the scripts in /etc/init.d in alphabetical order until every script for the target runlevel is executed.

This works the same for RHEL4 and RHEL5. As for RHEL6, Red Hat switched to upstart. While some things are different , Upstart can run things asynchronously and handles (hotplug-) devices much better, things are basically all the same and you will not see much difference. Upstart was designed make the transition smooth.
As a general rule, always use the 'service' command and try to avoid directly invoking /etc/init.d/ scripts.

However, a note to your question: In RHEL 7 this will change drastically, as it will incorporate the new systemd witch fully replaces sysVinit / Upstart.

I hope I could shed some light into the matter? Do you want me to be more specific?

Helge
0
 

Author Comment

by:ittechlab
ID: 39862696
please explain more specific also pass me some information about RHEL7 boot process as well. much appreciated.
0
 
LVL 13

Assisted Solution

by:Daniel Helgenberger
Daniel Helgenberger earned 200 total points
ID: 39862717
Hello,
IMHO it is beyond this thread to rewrite all the documentation on this topic.

Please read http://en.m.wikipedia.org/wiki/Linux_startup_process
And esp. the links there.

The same is true for systemd.

One note on systemd for further reading; a good start is again the Wikipedia article, esp the links to Lennart Pöttering's blog - he wrote several posts on systemd for administrators:
http://0pointer.de/blog/projects/systemd-for-admins-1.html

At the moment there is an ongoing debate if systemd is a 'good' thing for servers. Suffice to say that after Debian adopted systemd recently (the guys who maintain upstart), these discussions are rather pointless.

So kindly read the provided docs and I am happy to assist with specific questions on the matter.
Cheers
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 62

Assisted Solution

by:gheist
gheist earned 200 total points
ID: 39868917
RHEL4 - lilo + mkinitrd + sysvinit
RHEL5 - grub + mkinitrd + sysvinit
RHEL6 - grub + dracut + upstart
RHEL7 beta (as seen in fedora 19) - grub2 + dracut + systemd

1st loads kernel from disk
theen kernel loads initial ramdisk with some programs (like init, and others to load some extra drivers)
then it changes root to real root and runs real init (see 3) as PID1
0
 
LVL 25

Assisted Solution

by:madunix
madunix earned 100 total points
ID: 39873298
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 200 total points
ID: 39873446
Some are inacurate (even coming from horses mouth) "mounts partition read only"
It actually mounts small system image from initrd file which contains drivers and filesystem checkers to get system to mounting / read-write.
0
 
LVL 13

Expert Comment

by:Daniel Helgenberger
ID: 39932375
Hello Ittechlab,

I wonder what you expected us to write here to get the A grading. It is impossible to explain this topic comprehensively in a forum post.
I used layman's terms in my first posting to get you started, but unless you do not come up with specific questions I can only copy/paste the official documentation; witch is - and I hope you agree -  not achieving the objective. The same is true for your other question about multipath.

Please consider reading:
http://support.experts-exchange.com/customer/portal/articles/481419
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question