Article Title: RedHatLinuxTroubleshooting startup overview. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, basic Classification of embedded systems and open-source systems #######################
##
########################
###
# When the power supply is pressed ##
###
#######################
When the Power supply is down, the computer starts self-check to check whether the CPU, memory, and video card are installed! If you can't go there, you don't have to say that! If you want to change, you need to change the plug-in and plug-in! What troubleshooting lights and voice prompts are not enough on the current motherboard? I think we didn't have to worry about that time. I miss the sound of the little horn!
For our system administrator, BIOS has done two things. One is to configure and drive the underlying device according to the CMOS solution, and the other is to give control to the driver device (such as the soft drive, hard drive, and optical drive)
Check whether the CMOS solution is correctly configured, whether the driver is connected properly, and whether it is the boot device we need!
#######################
##
########################
###
# Starting from hard disk ##
###
#######################
Partition is a learning, points are not good will double work half, specific I have mentioned in the previous article, interested can refer to the "Linux partition mechanism" http://www.linuxsir.org/bbs/showthre...threadid=82245
MBR is a storage space of 446 bytes, which stores Bootloader. Linux Bootloader has LILO and Grub, and the content stored in MBR is different!
LILO: Specifies the Block position pointer of the Bootstrap program and the kernel and initrd files.
Grub: Device Name of the partition where the boot program, Grub Shell, and grub. conf (menu. list) are located
Note that if the Partition Table (DPT) is damaged, unless you have a partition table backup (of course we have some :-), otherwise, remember to write down the start position and end position of the first fdisk for saving your life! If the MBR is damaged, the easiest way is to rescue the system and then chroot to the hard disk/And then grub-install/dev/XXXY. If you want to delete the MBR information of linux, use the boot disk of Windows 98 to enter the DOS prompt. Replace fdisk/mbr with Windows!
#######################
##
########################
###
# When Bootloader is loaded ##
###
#######################
Basically, "big and bad goat" has already been mentioned. Here we will only make corresponding supplements.
First of all, the difference between LILO and Grub in MBR loading is mentioned above, because the loading content is different, so the problem situation and nature are different.
LILO: because the specific Block position pointer of the kernel file is stored, therefore, vmlinuz-* And initrd-* files cannot be music videos (unless the Block location remains unchanged and cannot be renamed !)
Grub: Unlike LILO, grub requires file content, which can be found if you do not change the partition order and ensure that the path of Grub. conf (menu. list) file is correct! Note that the content of grub. conf (menu. list) is written as needed!
Second, "Big Bad goat" is problematic in "(3) Summary! The reason is as follows:
1. LILO. conf of lilo (in the/etc directory by default, if lilo-f/dir/file is required elsewhere)
Image =/boot/vmlinuz-2.4.21-4.EL # location of the directory tree where the kernel is located
Label = linux # label, boot:
Root =/dev/sdc1 # root partition location
Initrd =/boot/initrd-2.4.21-4.EL.img # directory tree location of initrd
It uses the directory tree structure of the current system, that is, the logical location of the kernel and initrd. When we run lilo-v, LILO will follow lilo. the definition of the conf file records the Specific Block position pointer of the kernel and initrd files in the MBR, and then lilo. the conf file is useless. It doesn't matter if you delete it! Of course, the MBR also has a/partition location pointer. decompress and mount the ext2 File System of initrd and read/etc/inittab and/etc/rc. d/rc. sysinit!
2. Grub's grub. conf (it must also be in the/boot/grub directory by default, unless you own the grub source code)
It can be seen that the kernel and initrd may not be in the same partition. The directory location of the vmlinuz-* And initrd-* files depends on the directory location in the partition (hdX, Y! If/boot is not partitioned separately,/boot/vmlinuz-* is displayed on the partition. If/boot is partitioned separately,/vmlinuz-* is displayed on the partition -*.
Ro root = LABEL =/is used to extract the ext2 file system mounted to initrd and read/etc/inittab and/etc/rc. d/rc. sysinit, which can be a LABEL or a device name.
3. the Grub. conf file of grub is required; otherwise, grub: grub shell state is displayed during startup.
#######################
##
########################
###
# When the kernel is mounted ##
###
#######################
It is usually okay when the kernel is loaded, but if your grub. if the incorrect kernel name is used in the conf file, the kernel location in LILO is incorrect, or the partition is mounted, the problem occurs! Of course, it may be that your kernel has a problem. For example, you forgot to compile the module of the ext2 file system into initrd!
/Etc/inittab is the first file read when the linux system is started. It is responsible for determining the startup level, executing the startup script rc. sysinit, and executing the parent process init.
There are a lot of questions. Let's take my courses !; -)
/Etc/rc. d/rc. sysinit is the first script to run when a linux system is started. It is responsible for generating environment variables and file systems required for system operation. Among them, mount-a is to mount all the file systems indicated in/etc/fstab!
In the/etc/inittab, only the default running level is determined. The script to run the level is actually/etc/rc. the level number in d/rc,/etc/inittab is only/etc/rc. d/rc Parameters
########################
##
#########################
###
# When running/etc/init. d /*##
# Hour ##
########################
In the/etc/rc. d/rcX. d directory, all connections except S99local are soft connections (symbolic connections) of/etc/init. d ).
#############################
##
##############################
###
# When running/etc/rc. d/rc. local ##
# Hour ##
#############################
/Etc/rc. d/rc. local is the final script to be run when the system starts. It is not hard to understand the role of Autoexec. bat in DOS.
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