An explanation of several important files during the Linux boot process

Source: Internet
Author: User

/LINUXRC executes the init process initialization file. The main task is to mount the installed root file system (/etc) to Ramfs, and copy all files in the/mnt/etc/directory to/etc, where the system starts many special files, and then LINUXRC to reconstruct the file allocation table Inittab, then perform the system initialization process/ Sbin/init.

LINUXRC #!/bin/"mount/etc as Ramfs"/bin/mount-n-T Ramfs Ramfs/etc< /C5>/BIN/CP-A/mnt/etc/*  /etcecho "Re-create the/etc/mtab entries" # Re-create The/etc/mtab Entries/bin/mo Unt-f-T Cramfs-o remount,ro/dev/mtdblock/3//bin/mount-f-t Ramfs ramfs/etcexec/sbin/init

Etc/init.d/rcs completes the mount of each file system, executes the/usr/etc/rc.local, and the RcS can invoke the DHCP program to configure the network. After the RcS is finished, Init will be on a console, follow Inittab's instructions to open a shell, or open Getty + Login, so the user will be prompted to enter the user name prompt.

rc.local/usr/etc/#!/bin//usr/etc/"hello! Embest ""ifconfig eth0 192.168.0.10"192.168 . 0.10 #可自行配置开发板IP

/usr/etc/rc.local This is a special file that is executed by the Init.d/rcs file call, which is related to the Linux system hardware platform, such as installing core modules, configuring the network, running the application, starting the graphical interface, and so on.

RcS/mnt/etc/init.d/#!/bin/sh/bin/mount-/usr/etc/rc.local

/usr/etc/profile the environment variables required to perform the file configuration.

profile/usr/etc/#!/bin/Shpath

An explanation of several important files during the Linux boot process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.