<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-167785054533288906</id><updated>2011-04-22T05:11:53.913+05:30</updated><title type='text'>Linux boots</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-887644165873140185</id><published>2007-11-23T21:40:00.000+05:30</published><updated>2007-11-23T21:48:04.755+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;When system shutdown time finally arrives, shutdown tells init to switch to &lt;br /&gt;runlevel 0 for a halt and runlevel 6 for a reboot. When init enters runlevel 0 &lt;br /&gt;or 6, all of the following takes place, which you can verify by looking at the scripts inside rc0.d and rc6.d: &lt;br /&gt;&lt;br /&gt;1. init kills every process that it can (as it would when switching to any other runlevel). &lt;br /&gt;&lt;br /&gt;# The initial rc0.d/rc6.d commands run, locking system files into place and making &lt;br /&gt;other preparations for shutdown. # The next rc0.d/rc6.d commands unmount all &lt;br /&gt;filesystems other than the root. # Further rc0.d/rc6.d commands remount the root &lt;br /&gt;filesystem read-only. # Still more rc0.d/rc6.d commands write all buffered data &lt;br /&gt;out to the filesystem with the sync program. # The final rc0.d/rc6.d commands tell &lt;br /&gt;the kernel to reboot or stop with the reboot, halt, or poweroff program. &lt;br /&gt;&lt;br /&gt;The reboot and halt programs behave differently for each runlevel, potentially &lt;br /&gt;causing confusion. By default, these programs call shutdown with the -r or -h options, &lt;br /&gt;but if the system is already at the halt or reboot runlevel, the programs tell the &lt;br /&gt;kernel to shut itself off immediately. If you really want to shut your machine down &lt;br /&gt;in a hurry (disregarding any possible damage from a disorderly shutdown), use the -f option.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-887644165873140185?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/887644165873140185/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=887644165873140185' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/887644165873140185'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/887644165873140185'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_4479.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-7218742999344613466</id><published>2007-11-23T21:32:00.000+05:30</published><updated>2007-11-23T21:39:07.207+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can start one of these services by hand. For example, if you want to start &lt;br /&gt;the httpd Web server program manually, run S99httpd start. Similarly, &lt;br /&gt;if you ever need to kill one of the services whe &lt;br /&gt;&lt;br /&gt;the machine is on, you can run the command in the rc*.d directory &lt;br /&gt;with the stop argument (S99httpd stop, for instance). &lt;br /&gt;&lt;br /&gt;Some rc*.d directories contain commands that start with K (for "kill," or stop mode). &lt;br /&gt;In this case, rc runs the command with the stop argument instead of start. &lt;br /&gt;You are most likely to encounter K commands in runlevels that shut the system down. &lt;br /&gt;&lt;br /&gt;Adding and removing services &lt;br /&gt;&lt;br /&gt;If you want to add, delete, or modify services in the rc*.d directories, you &lt;br /&gt;need to take a closer look at the files inside. A long listing reveals a structure like this: &lt;br /&gt;&lt;br /&gt;lrwxrwxrwx . . . S10sysklogd -&gt; ../init.d/sysklogd lrwxrwxrwx . . . S12kerneld -&gt; ../init.d/kerneld &lt;br /&gt;lrwxrwxrwx . . . S15netstd_init -&gt; ../init.d/netstd_init lrwxrwxrwx . . . S18netbase -&gt; ../init.d/netbase ... &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To prevent one of the commands in the init.d directory from running in a particular runlevel, &lt;br /&gt;you might think of removing the symbolic link in the appropriate rc*.d directory. This does work, but i &lt;br /&gt;&lt;br /&gt;you make a mistake and ever need to put the link back in place, you might have trouble &lt;br /&gt;remembering the exact name of the link. Therefore, you shouldn't remove links in the rc*.d &lt;br /&gt;directories, but rather, add an underscore (_) to the beginning of the link name like this: &lt;br /&gt;&lt;br /&gt;mv S99httpd _S99httpd &lt;br /&gt;&lt;br /&gt;At boot time, rc ignores _S99httpd because it doesn't start with S or K. Furthermore, &lt;br /&gt;the original name is still obvious, and you have quick access to the command if you're in a pinch and need to start it by hand.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-7218742999344613466?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/7218742999344613466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=7218742999344613466' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/7218742999344613466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/7218742999344613466'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_3017.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-4534960423634254212</id><published>2007-11-23T21:24:00.000+05:30</published><updated>2007-11-23T21:29:04.898+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;init also controls how the system shuts down and reboots. The proper way to &lt;br /&gt;shut down a Linux machine is to use the shutdown command. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are two basic ways to use shutdown. If you halt the system, it shuts the &lt;br /&gt;machine down and keeps it down. To make the machine halt immediately, use this command: &lt;br /&gt;&lt;br /&gt;shutdown -h now &lt;br /&gt;&lt;br /&gt;On most modern machines with reasonably recent versions of Linux, a halt cuts &lt;br /&gt;the power to the machine. You can also reboot the machine. For a reboot, use -r instead of -h. &lt;br /&gt;&lt;br /&gt;The shutdown process takes several seconds. You should never reset or power off a machine during this stage. &lt;br /&gt;&lt;br /&gt;In the preceding example, now is the time to shut down. This argument is mandatory, &lt;br /&gt;but there are many ways of specifying it. If you want the machine to go down &lt;br /&gt;sometime in the future, one way is to use +n, where n is the number of minutes &lt;br /&gt;shutdown should wait before doing its work. For other options, look at the shutdown(8) manual page. &lt;br /&gt;&lt;br /&gt;To make the system reboot in 10 minutes, run this command: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;On Linux, shutdown notifies anyone logged on that the machine is going down, &lt;br /&gt;but it does little real work. If you specify a time other than now, &lt;br /&gt;shutdown creates a file called /etc/nologin. When th &lt;br /&gt;&lt;br /&gt;s file is present, the system prohibits logins by anyone except the superuser.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-4534960423634254212?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/4534960423634254212/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=4534960423634254212' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/4534960423634254212'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/4534960423634254212'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_5581.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-4119333172286917337</id><published>2007-11-23T21:15:00.000+05:30</published><updated>2007-11-23T21:23:06.934+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To add a service, you must create a script like the others in the init.d &lt;br /&gt;directory and then make a symbolic link in the correct rc*.d directory. &lt;br /&gt;The easiest way to write a script is to examine the scripts already in init.d, &lt;br /&gt;make a copy of one that you understand, and modify the copy. &lt;br /&gt;&lt;br /&gt;When adding a service, make sure that you choose an appropriate place in the boot &lt;br /&gt;sequence to start the service. If the service starts too soon, it may not work, &lt;br /&gt;due to a dependency on some other service. For non-essential services, most systems &lt;br /&gt;administrators prefer numbers in the 90s, after most of the services that came with the system. &lt;br /&gt;&lt;br /&gt;Linux distributions usually come with a command to enable and disable services in the &lt;br /&gt;rc*.d directories. For example, in Debian, the command is update-rc.d, and in Red Hat Linux, &lt;br /&gt;the command is chkconfig. Graphical user interfaces are also available. Using these programs &lt;br /&gt;helps keep the startup directories consistent and helps with upgrades. &lt;br /&gt;&lt;br /&gt;HINT: One of the most common Linux installation problems is an improperly configured &lt;br /&gt;XFree86 server that flicks on and off, making the system unusable on console. &lt;br /&gt;To stop this behavior, boot into single-user mode and alter your runlevel or &lt;br /&gt;runlevel services. Look for something containing xdm, gdm, or kdm in your rc*.d directories, or your /etc/inittab.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Occasionally, you need to give init a little kick to tell it to switch runlevels, &lt;br /&gt;to re-read the inittab file, or just to shut down the system. Because init is always the first process on a system, &lt;br /&gt;&lt;br /&gt;its process ID is always 1. &lt;br /&gt;&lt;br /&gt;You can control init with telinit. For example, if you want to switch to runlevel 3, use this command: &lt;br /&gt;&lt;br /&gt;telinit 3 &lt;br /&gt;&lt;br /&gt;When switching runlevels, init tries to kill off any processes that aren't in the &lt;br /&gt;inittab file for the new runlevel. Therefore, you should be careful about changing runlevels. &lt;br /&gt;&lt;br /&gt;When you need to add or remove respawning jobs or make any other change to the inittab file, &lt;br /&gt;you must tell init about the change and cause it to re-read the file. Some people use &lt;br /&gt;kill -HUP 1 to tell init to do this. This traditional method works on most versions of Unix, &lt;br /&gt;as long as you type it correctly. However, you can also run this telinit command: &lt;br /&gt;&lt;br /&gt;telinit q &lt;br /&gt;&lt;br /&gt;You can also use telinit s to switch to single-user mode.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-4119333172286917337?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/4119333172286917337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=4119333172286917337' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/4119333172286917337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/4119333172286917337'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_2792.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-3758789232845473598</id><published>2007-11-23T21:12:00.000+05:30</published><updated>2007-11-23T21:15:07.116+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can start one of these services by hand. For example, if you want to start &lt;br /&gt;the httpd Web server program manually, run S99httpd start. Similarly, &lt;br /&gt;if you ever need to kill one of the services whe &lt;br /&gt;&lt;br /&gt;the machine is on, you can run the command in the rc*.d directory &lt;br /&gt;with the stop argument (S99httpd stop, for instance). &lt;br /&gt;&lt;br /&gt;Some rc*.d directories contain commands that start with K (for "kill," or stop mode). &lt;br /&gt;In this case, rc runs the command with the stop argument instead of start. &lt;br /&gt;You are most likely to encounter K commands in runlevels that shut the system down. &lt;br /&gt;&lt;br /&gt;Adding and removing services &lt;br /&gt;&lt;br /&gt;If you want to add, delete, or modify services in the rc*.d directories, you &lt;br /&gt;need to take a closer look at the files inside. A long listing reveals a structure like this: &lt;br /&gt;&lt;br /&gt;lrwxrwxrwx . . . S10sysklogd -&gt; ../init.d/sysklogd lrwxrwxrwx . . . S12kerneld -&gt; ../init.d/kerneld &lt;br /&gt;lrwxrwxrwx . . . S15netstd_init -&gt; ../init.d/netstd_init lrwxrwxrwx . . . S18netbase -&gt; ../init.d/netbase ... &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To prevent one of the commands in the init.d directory from running in a particular runlevel, &lt;br /&gt;you might think of removing the symbolic link in the appropriate rc*.d directory. This does work, but i &lt;br /&gt;&lt;br /&gt;you make a mistake and ever need to put the link back in place, you might have trouble &lt;br /&gt;remembering the exact name of the link. Therefore, you shouldn't remove links in the rc*.d &lt;br /&gt;directories, but rather, add an underscore (_) to the beginning of the link name like this: &lt;br /&gt;&lt;br /&gt;mv S99httpd _S99httpd &lt;br /&gt;&lt;br /&gt;At boot time, rc ignores _S99httpd because it doesn't start with S or K. Furthermore, &lt;br /&gt;the original name is still obvious, and you have quick access to the command if you're in a pinch and need to start it by hand.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-3758789232845473598?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/3758789232845473598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=3758789232845473598' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/3758789232845473598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/3758789232845473598'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_9042.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-6551221348982208120</id><published>2007-11-23T21:09:00.000+05:30</published><updated>2007-11-23T21:12:06.850+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;ctrlaltdel &lt;br /&gt;&lt;br /&gt;The ctrlaltdel action controls what the system does when you press CONTROL-ALT-DELETE &lt;br /&gt;on a virtual console. On most systems, this is some sort of reboot command using the shutdown command.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The sysinit action is the very first thing that init should run when it starts up, before entering any runlevels. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How processes in runlevels start &lt;br /&gt;&lt;br /&gt;You are now ready to learn how init starts the system services, just &lt;br /&gt;before it lets you log in. Recall this inittab line from earlier: &lt;br /&gt;&lt;br /&gt;l5:5:wait:/etc/rc.d/rc 5 &lt;br /&gt;&lt;br /&gt;This small line triggers many other programs. rc stands for run commands, &lt;br /&gt;and you will hear people refer to the commands as scripts, programs, or services. &lt;br /&gt;So, where are these commands, anyway? &lt;br /&gt;&lt;br /&gt;For runlevel 5, in this example, the commands are probably either in /etc/rc.d/rc5.d or /etc/rc5.d. &lt;br /&gt;Runlevel 1 uses rc1.d, runlevel 2 uses rc2.d, and so on. You might find the following items in the rc5.d directory: &lt;br /&gt;&lt;br /&gt;S10sysklogd S20ppp S99gpm S12kerneld S25netstd_nfs S99httpd S15netstd_init S30netstd_misc S99rmnologin &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;S20acct S89atd &lt;br /&gt;&lt;br /&gt;S20logoutd S89cron &lt;br /&gt;&lt;br /&gt;The rc 5 command starts programs in this runlevel directory by running the following commands: &lt;br /&gt;&lt;br /&gt;S10sysklogd start S12kerneld start S15netstd_init start S18netbase start ... S99sshd start &lt;br /&gt;&lt;br /&gt;Notice the start argument in each command. The S in a command name means that the &lt;br /&gt;command should run in start mode, and the number (00 through 99) determines &lt;br /&gt;where in the sequence rc starts the command. &lt;br /&gt;&lt;br /&gt;The rc*.d commands are usually shell scripts that start programs in /sbin or /usr/sbin. &lt;br /&gt;Normally, you can figure out what one of the commands actually does &lt;br /&gt;by looking at the script with less or another pager program.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-6551221348982208120?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/6551221348982208120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=6551221348982208120' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/6551221348982208120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/6551221348982208120'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_6008.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-8668057097146000968</id><published>2007-11-23T21:05:00.000+05:30</published><updated>2007-11-23T21:08:25.357+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt;There is no command to execute in the preceding initdefault example because &lt;br /&gt;a command doesn't make sense in the context of setting the default runlevel. &lt;br /&gt;Look a little further down in inittab, until you see a line like this: &lt;br /&gt;&lt;br /&gt;l5:5:wait:/etc/rc.d/rc 5 &lt;br /&gt;&lt;br /&gt;This line triggers most of the system configuration and services through the rc*.d &lt;br /&gt;and init.d directories. You can see that init is set to execute a command called /etc/rc.d/rc 5 &lt;br /&gt;when in runlevel 5. The wait action tells when and how init runs the command: run rc 5 &lt;br /&gt;once when entering runlevel 5, and then wait for this command to finish before doing anything else&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;There are several different actions in addition to initdefault and wait, especially &lt;br /&gt;pertaining to power management, and the inittab(5) manual page tells you all about them. &lt;br /&gt;The ones that you're most likely to encounter are explained in the following sections. &lt;br /&gt;&lt;br /&gt;respawn &lt;br /&gt;&lt;br /&gt;The respawn action causes init to run the command that follows, &lt;br /&gt;and if the command finishes executing, to run it again. You're likely &lt;br /&gt;to see something similar to this line in your inittab file: &lt;br /&gt;&lt;br /&gt;1:2345:respawn:/sbin/mingetty tty1 &lt;br /&gt;&lt;br /&gt;The getty programs provide login prompts. The preceding line is for the first &lt;br /&gt;virtual console (/dev/tty1), the one you see when you press ALT-F1 or CONTROL-ALT-F1. &lt;br /&gt;The respawn action brings the login prompt back after you log out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-8668057097146000968?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/8668057097146000968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=8668057097146000968' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/8668057097146000968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/8668057097146000968'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_4989.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-8433629063788163442</id><published>2007-11-23T21:02:00.000+05:30</published><updated>2007-11-23T21:05:03.560+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots &lt;br /&gt;&lt;br /&gt;Runlevels At any given time on a Linux system, a certain base set of processes is running. &lt;br /&gt;This state of the machine is called its runlevel, and it is denoted with a number &lt;br /&gt;from 0 through 6. The system spends most of its time in a single runlevel. &lt;br /&gt;However, when you shut the machine down, init switches to a different runlevel &lt;br /&gt;in order to terminate the system services in an orderly fashion and to tell the k&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The easiest way to get a handle on runlevels is to examine the init &lt;br /&gt;configuration file, /etc/inittab. Look for a line like the following: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;id:5:initdefault: &lt;br /&gt;&lt;br /&gt;This line means that the default runlevel on the system is 5. All lines in the &lt;br /&gt;inittab file take this form, with four fields separated by colons occurring &lt;br /&gt;in the following order: # A unique identifier (a short string, such as id in &lt;br /&gt;the preceding example) # The applicable runlevel number(s) # The action that &lt;br /&gt;init should take (in the preceding example, the action is to set the &lt;br /&gt;default runlevel to 5) # A command to execute (optional)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-8433629063788163442?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/8433629063788163442/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=8433629063788163442' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/8433629063788163442'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/8433629063788163442'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots_23.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-4768082238273173393</id><published>2007-11-23T20:59:00.000+05:30</published><updated>2007-11-23T21:02:03.363+05:30</updated><title type='text'>Linux boots</title><content type='html'>Linux boots&lt;br /&gt;&lt;br /&gt;VFS: Mounted root (ext2 filesystem) readonly. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Soon after, you will see a message about init starting, followed by system &lt;br /&gt;service startup messages, and finally you get a login prompt of some sort. &lt;br /&gt;&lt;br /&gt;NOTE On Red Hat Linux, the init note is especially obvious, because it "welcomes" &lt;br /&gt;you to "Red Hat Linux." All messages thereafter show success or failure &lt;br /&gt;in brackets at the right-hand side of the screen. &lt;br /&gt;&lt;br /&gt;Most of this chapter deals with init, because it is the part of the &lt;br /&gt;boot sequence where you have the most control. init &lt;br /&gt;There is nothing special about init. It is a program just like any other on the Linux system, &lt;br /&gt;and you'll find it in /sbin along with other system binaries. The main purpose of init &lt;br /&gt;is to start and stop other programs in a particular sequence. &lt;br /&gt;All you have to know is how this sequence works. &lt;br /&gt;&lt;br /&gt;There are a few different variations, but most Linux distributions use the System V &lt;br /&gt;style discussed here. Some distributions use a simpler version that &lt;br /&gt;resembles the BSD init, but you are unlikely to encounter this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-4768082238273173393?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/4768082238273173393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=4768082238273173393' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/4768082238273173393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/4768082238273173393'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/linux-boots.html' title='Linux boots'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-167785054533288906.post-3418850691533361598</id><published>2007-11-23T20:26:00.000+05:30</published><updated>2007-11-23T20:37:16.618+05:30</updated><title type='text'>welcome To My Blog</title><content type='html'>welcome To My Blog&lt;br /&gt;&lt;br /&gt;How Linux boots &lt;br /&gt;As it turns out, there isn't much to the boot process: &lt;br /&gt;&lt;br /&gt;1. A boot loader finds the kernel image on the disk, loads it into memory, and starts it. &lt;br /&gt;2. The kernel initializes the devices and its drivers. 3. The kernel mounts the root filesystem. &lt;br /&gt;4. The kernel starts a program called init. 5. init sets the rest of the processes in motion. &lt;br /&gt;6. The last processes that init starts as part of the boot sequence allow you to log in. &lt;br /&gt;&lt;br /&gt;Identifying each stage of the boot process is invaluable in fixing boot problems and &lt;br /&gt;understanding the system as a whole. To start, zero in on the boot loader, which is &lt;br /&gt;the initial screen or prompt you get after the computer does its power-on self-test, &lt;br /&gt;asking which operating system to run. After you make a choice, the boot loader runs &lt;br /&gt;the Linux kernel, handing control of the system to the kernel. &lt;br /&gt;&lt;br /&gt;There is a detailed discussion of the kernel elsewhere in this book from which this &lt;br /&gt;article is excerpted. This article covers the kernel initialization stage, the stage &lt;br /&gt;when the kernel prints a bunch of messages about the hardware present on the system. &lt;br /&gt;The kernel starts init just after it displays a message proclaiming &lt;br /&gt;that the kernel has mounted the root filesystem:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/167785054533288906-3418850691533361598?l=linuxboots.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://linuxboots.blogspot.com/feeds/3418850691533361598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=167785054533288906&amp;postID=3418850691533361598' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/3418850691533361598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/167785054533288906/posts/default/3418850691533361598'/><link rel='alternate' type='text/html' href='http://linuxboots.blogspot.com/2007/11/welcome-to-my-blog.html' title='welcome To My Blog'/><author><name>oracle</name><uri>http://www.blogger.com/profile/11433520495369485174</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
