RedHatLinux cannot be started normally.

Source: Internet
Author: User
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...

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.