During RHEL6.1 installation, a RAID1 md (multipledevice) is created for mounting/boot. During grub installation, grub is installed in the md in a confused manner and cannot be started, for the repair process, see: (for convenience, the subsequent system prompt "# command" indicates the command input. If a new prompt is defined, the "prompt command" indicates the command input; "// text" indicates a comment. All commands are only English characters.) After Entering Linuxrescue mode
When RHEL6.1 is installed, a raid 1 md (multiple device) is created for mounting/boot. When grub is installed, grub is installed in this md in a confused manner and cannot be started, for the repair process, see:
(For convenience, the subsequent system prompt "# command" indicates the command input. If a new prompt is defined, "prompt command" indicates the command input; "// text" indicates the comment; all commands are half-width English characters)
There are several methods to boot the system in Linux rescue mode:
Method 1:
1. Enter fdisk-l at the system prompt #.
// Display the hard disk partition to determine the partition for Linux installation.
// In this example, the third primary partition of the first hard disk is hda3.
2. # grub-install/dev/hda
// Reinstall the GRUB boot program on the first hard disk.
3. # exit; reboot
// Exit and restart the system.
Method 2:
1. # grub
// Enter the GRUB command line mode, and the prompt is displayed: grub>
2. grub> root (hd0, 3)
// Locate the root partition for Linux installation. There is a space between the root partition and the parameter (hd0, 3.
3. grub> setup (hd0)
// After you reinstall the GRUB boot program on the first hard disk, there is a space between setup and parameter (hd0.
4. grub> exit; reboot
// Exit and restart the system.
Method 3:
1. # grub
// Enter the GRUB command line mode, and the prompt is displayed: grub>
2. grub> root (hd0, 3)
3. grub> kernel (hd0, 3)/boot/vmlinuz ro root = LABEL =/
// Enter the kernel parameters. Note the kernel location and name.
3. grub> initrd (hd0, 3)/boot/initrd-2.4.20-8.img
// Transfer the image file and pay attention to its location and name.
5. grub> boot
// Boot the Linux system.
You can use common Linux commands after entering the Linux rescue mode or GRUB command line mode.
Root (hdX, Y) // locate the operation partition. X and Y are numbers. If this command exists in this partition
// The file system type is the file system code and the partition type code is displayed.
Find-l file name // find a file in a specified partition. The wildcard * or?
Good luck!