There are several methods to guide the system in Linuxrescue Mode

Source: Internet
Author: User
Article Title: There are several methods to guide the system in Linuxrescue mode. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories (for convenient representation, the subsequent system prompt "# command" indicates the command input, if a new prompt is defined, "prompt command" indicates command input; "// text" indicates comments; all commands are pure 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!

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.