Linux troubleshooting instance (1)

Source: Internet
Author: User
Linux troubleshooting example (1)-Linux general technology-Linux technology and application information. The following is a detailed description. During the RHCE certification training for trainees, we have provided a number of examples on how to troubleshoot errors. Here we will share with you:
1. MBR damaged or lost
Enter rescue mode
Check the grub. conf file to ensure the file content is correct.
Grub-instll/dev/had

2. the grub. conf file is incorrect.
Grub. conf contains the following statements:
Root (hdX, y) # specify the location of the/boot partition. x y indicates the disk and partition.
Kernel/vmlinuz-2.xx.x-x.EL ro root =/dev/xxx #/specify the location of the kernel file vmlinuz-xxx, ro indicates read-only, root = specifies the location of the root Partition
Initrd/initrd-2.xx.x-x.img # Load initrd image file, initialize RAM disk

# Reference the post "Big Bad goat #
If the kernel cannot be found, check whether root (hdx, y) is correct.
In rescue mode, check whether the vmlinuz file is renamed or moved to another place.
Generally, File not found appears.
Press any key to continue...
If you find the kernel and run it for a while,
Kernel Panic: Not init Found,
Generally, root =/dev/xxx is not found.
If you find the kernel and run it for a while,
Kernel panic: VFS: Unable to mount root fs on ...,
In general it may be forgotten to add initrd/initrd-2.4.21-4.EL.img (most of the time it happens when using a scsi hard disk)
In general, there must be several lines in grub. conf.

3. the/etc/inittab file is missing.
Will appear
INIT: No inittab file found
Enter runlevel:
Inittab file belongs to initscripts-7.31.6.EL- 1 RPM package
You can enter rescue mode to reinstall this package,
You can also enter the single-user mode to repair the problem. after entering the single-user mode, you must manually mount the root partition.
Mount? O remount rw/dev/xxxx/
Note: When entering the single user mode, enter single instead of 1.
If the inittab file disappears, input 1 cannot enter single-user mode. (Specific reasons for future discussion)


If you want to find me, you can go to www.richedu.cn. Where can you leave your contact information? We can communicate via voice!

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.