CentOS Rescue Mode Lab Notes

Source: Internet
Author: User

1, first in the BIOS set the boot option to DVD drive boot or USB boot is also possible

2. Select "Rescue installed System" from the option that appears after the CD is booted and press ENTER to confirm the figure:

3, the language choice, here we choose the default is possible, because it is not graphical, so there is no way to support Chinese, the keyboard also choose the default and then press ENTER, specific as:

4, in setupnetworking here we according to their own needs to confirm whether to enable the network, here I choose is not enabled,

5, continue is to let the virtual system (that is, the rescue environment) to find the installed Linux system and read and write to mount to/mnt/sysimage, which is the most common way, read-only read-only mount, do not make any changes, When using continue and read-only can not mount the partition when we use the skip way, to find their own partition, without system help, not suitable for beginners, advanced is used to configure storage-related,

6, the hint is that the Linux system has been hung in the/mnt/sysimage directory, if we want to get the root environment, we need to perform "chroot/mnt/sysimage"

Press twice to enter the following mode:

The meanings of these three modes are:

Shell: Directly into the command line, you can do the operation has to edit files, modify user password, etc.

FAKD: Diagnostic mode

Reboot: Direct Restart

7. Select the shell to enter the root environment, such as in the root environment

8, into the root environment can not operate the hard disk on the Linux system files, but also to enter the Chroot/mnt/sysimage command before you can operate the file on the hard disk,

Enter Chroot/mnt/sysimage after press ENTER will find that the original is bash-4.1 will become sh-4.1, this time you can work on the file on the hard disk.

Under sh-4.1 does not support reboot restart, you must exit to bash-4.1 can use reboot to restart the system, after restarting the system select "Bootfrom local drive" This option will be able to boot into the system normally. Small white Experimental notes, the wrong place also ask the big God to correct.

CentOS Rescue Mode Lab Notes

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.