By: SpookZanG no technical content .... I. Linux boot loader sequence I may say: boot? & Gt; BIOS initialization? & Gt; determine the boot device (hard drive, optical drive, USB, network, etc )? & Gt; kernel initialization? & Gt; init? & Gt; terminal? & Gt; when the shell determines that the device is started
By: SpookZanG
This article does not have any technical content ....
I. Linux boot loader sequence
I would like to say: Boot?> BIOS initialization?> Determine the boot device (hard drive, optical drive, USB, network, etc.)?> Kernel initialization?> Init?> Terminal?> Shell
When the device is determined to start, it will read the/boot/grub. conf file
If the file fails or does not exist, Linux cannot start properly.
During init, the system reads the/etc/inittab file, which stores startup sequence and level. if the file is damaged, it cannot be started.
II. Solution
1. destruction and loss of/boot/grub. conf
When Linux is started,
Press any key to enter grub, and then press c on the interface to write grep.
(Note: Please do not follow the same input as me, please enter according to your actual situation)
Then start, and you will be able to access Xwindows normally. then modify/boot/grub. conf and save the settings.
My error here is that the file loaded by the kernel does not exist (that is, the file name is incorrect. change it to exist)
2. the/etc/inittab is damaged and the root password is forgotten.
The solution is the same for both cases.
/Etc/inittab, damaged, modified. Error
The running level of this figure is 9, so an error is reported.
In the same way as "1", enter grub, write grub, enter single-user mode, modify/etc/inittab, or reset the root account password with passwd (used when the root password is forgotten)
The difference between the single-user mode and "1" is that when "root =" is written, add "1" at the end.
Start, enter single user mode
Modify the/etc/inittab file and change its value to 5 (Xwindows)
Finally, let's say that if the MBR is deleted... (Dd </dev/zero>/dev/sda bs = 446 count = 1). It can only be guided by a CD or network...