Troubleshooting redhat-5.4

Source: Internet
Author: User
Troubleshooting of redhat-5.4 1. red Hat system boot process www.2cto. com2. rescue mode repairs failure of mbr boot www.2cto. if comlinuxrescue has a CD, reboot from the CD to repair mbr, enter the rescue mode, select the operating language, reboot, and recover from fault 3. grub introduction... troubleshooting redhat-5.4
1. Red Hat system boot process
Www.2cto.com 2. repair mbr boot failure in rescue mode
Www.2cto.com if the linux rescue has a CD, restart the boot from the CD to repair the mbr, enter the rescue mode, select the operating language, reboot, and recover the fault. 3. grub Boot File loss grub. the conf file explains that grub cannot boot 4. after the partition table of the file system is fixed, the/etc/fstab file can be edited normally. the init [3, 5] can be used to access the corresponding terminal interface. create your own linux (to understand the startup process) 1. create 2 grub-install -- root-diretory =/mnt // dev/sdb 3. create a grub menu (copy the kernel, driver/boot/vm) 4. create the corresponding directory, init process bin boot dev etc home lib proc sbin root sys tmp usr var chmod o + t tmp init system call ldd/sbin/init cp/lib/libsepol. so.1 /Mnt/sysroot/lib 5 inittab rc. sysinit cp/bin/bash/mnt/sysroot/bin/ldd/bin/bash view and load the link library, and copy www.2cto.com mkdir etc/rc. d cd rc. d vim rc. sysinit #! /Bin/bash chmod a + x rc. sysinit adds the executable permission cp/bin/ls/mnt/sysroot/bin to view the loaded library file ldd/bin/ls copy library file cp. 5.1 add hard disk 5.2 create corresponding partition for newly added hard disk 5.3 Mount, create mbr/grub5.4 add grub menu 5.5 inittab and rc. sysinit 5.6 add application ls command [root @ localhost ~] # Cp/bin/ls/mnt/sysroot/bin/[root @ localhost ~] # Ldd/bin/lslinux-gate.so.1 => (0x00226000) librt. so.1 =>/lib/librt. so.1 (0x00900000) libacl. so.1 =>/lib/libacl. so.1 (0x0090b000) libselinux. so.1 =>/lib/libselinux. so.1 (0x00968000) libc. so.6 =>/lib/libc. so.6 (0x00770000) libpthread. so.0 =>/lib/libpthread. so.0 (0x008e7000)/lib/ld-linux.so.2 (0x00752000) libattr. so.1 =>/lib/libattr. so.1 (0x00c4a000) libdl. so.2 =>/lib/libdl. so.2 (0x008e1000) libsepol. So.1 =>/lib/libsepol. so.1 (0x00920000) [root @ localhost ~] # Cp/lib/libpthread. so.0/mnt/sysroot/lib/5.7 add boot background [root @ localhost ~] # Convert-resize 640x480! 1. jpg a.jpg //! Ignore the original proportion of the image. you must add it! Otherwise, the image may be full screen. Www.2cto.com [root @ localhost ~] # Convert a.jpg-colors 14-geometry 640x480 splash. xpm [root @ localhost ~] # Gzip splash. xpm [root @ localhost ~] # Cp splash.xpm.gz/mnt/boot/grub/[root @ localhost ~] # Sync; execute multiple times so that data in the memory is written to the hard disk for shutdown or suspension. 5.8 create a new virtual machine runtime environment for testing, use the created hard disk as the system disk boot interface, as shown in Figure. normal: the experiment is over.
Related Article

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.