Linux boot sequence:
1. Load the kernel
2. Start init(/etc/inittab)
The pid of the first user-level process started by the kernel is always 1, and other boot scripts are started through this process.
3. Execute/etc//etc /etc/rc.d/rc.sysinit
This is the first script executed by init. The main work of this script is to initialize the system, such as setting the system font, starting the exchange, setting the host name, loading the sound card module and so on.
4. Execute /etc/rc.d/rc*. d(rc0.d,rc 1.d,rc2.drc6.d)。
This step will run the script at different run levels. These running scripts refer to programs that are executed at all levels by starting configured through the chkconfig command.
5. Execute /etc/rc.d/rc.local (i.e. /etc/rc.local).
After the services at all levels are started, the files will be executed. If it is not necessary to configure the script to be executed as a system service, the command to be executed can also be written into this file, which is simpler and more convenient.
6./sbin/mingetty, wait for the user to log in.
Linux boot process steps?
Boot-POST-Read CMOS settings-Find the location of the system from the hard disk boot record-Read the GRUB configuration file (/boot/grub/grub.conf), load the kernel, drive the hardware-Start the init process, read the corresponding configuration file (/etc/inittab), open the default running level, load the corresponding service, and start the startup item-Finish.
Where does cmd of linux system start?
The steps to solve where the cmd of linux system starts are as follows:
1. Right-click on my computer, and then select "Properties" at the bottom of the pop-up menu, and the setting item about "System" will open.
2. Click "Advanced System Settings" in the list on the left to open the "System Properties" setting dialog box, and then click the "Environment Variables" button on the lower right here to open the "Environment Variables" to view the modification dialog box.
3. Find the path in the system variable in the Environment Variable Settings dialog box, and then click the Edit button below. We need to add the Path of C:CygwinPortableAppCygwinbin to the path.
4. In the open Edit System Variable, click the content behind the variable value, navigate to the end, and enter the semicolon;. First of all. , then add C:CygwinPortableAppCygwinbin, and finally click OK to finish the setting.
5. Open the cmd command line tool under windows and enter the command under linux. This solves the problem of where cmd of linux system starts.
Can't Linux boot?
There are many reasons why Linux can't start, and the common ones are as follows:
The file system configuration is incorrect, such as /etc/inittab file, /etc/fstab file, etc. Wait. , resulting in system failure, so that it cannot be started.
Illegal shutdown causes the root file system to be destroyed, that is, the root partition of Linux is destroyed and the system cannot be started normally.
Hardware failure, such as motherboard, power supply, hard disk, etc. , causing Linux to fail to start. There is something wrong with the system bootloader, such as grub being lost or damaged, which makes the system unable to start.