CentOS Rescue Mode Lab Notes

Source: Internet
Author: User

CentOS Rescue Mode Lab Notes


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 bootedand press ENTER to confirm the figure:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/32/wKioL1UBsb6AJ00eAAJSzIB-XtA322.jpg "title=" 1.png " alt= "Wkiol1ubsb6aj00eaajszib-xta322.jpg"/>

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:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/32/wKioL1UBsfqj1ap1AAHN1icCg50392.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1ubsfqj1ap1aahn1iccg50392.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/38/wKiom1UBsNnzTakJAAGWGcv2MtY574.jpg "style=" float: none; "title=" 3.png "alt=" Wkiom1ubsnnztakjaagwgcv2mty574.jpg "/>

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

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/32/wKioL1UBslehnyuuAAIKXU4N_-c596.jpg "title=" 4.png " alt= "Wkiol1ubslehnyuuaaikxu4n_-c596.jpg"/>

5, Continue is to let virtual system (that is , Rescue Environment) to find the installed Linux system and read and write to mount to/mnt/sysimage, This is the most common way,read-only in read-only mount, without any modification, when using Continue and read-only can not mount the partition when we use the Skip mode , to find their own partitions, without system help, not suitable for beginners,advanced is used to configure storage-related,

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/32/wKioL1UBsoyyIXNoAALQ_o2MoPw439.jpg "title=" 5.png " alt= "Wkiol1ubsoyyixnoaalq_o2mopw439.jpg"/>

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

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/5B/38/wKiom1UBsa3iXdfWAAF0o54W8bg422.jpg "title=" 6.png " alt= "Wkiom1ubsa3ixdfwaaf0o54w8bg422.jpg"/>

Press twice to enter the following mode:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/32/wKioL1UBsuyy0B3xAAD4AF2hPaY037.jpg "title=" 7.png " alt= "Wkiol1ubsuyy0b3xaad4af2hpay037.jpg"/>

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

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/38/wKiom1UBsgHAtTV7AAD0bFcdONA437.jpg "title=" 8.png " alt= "Wkiom1ubsghattv7aad0bfcdona437.jpg"/>

8. Enter Root The environment is not yet able to operate on the hard Linux the file in the system, also enter Chroot/mnt/sysimage command before you can manipulate the files on the hard disk,

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/5B/32/wKioL1UBs0_yvGQUAABGCLgAylc978.jpg "title=" 9.png " alt= "Wkiol1ubs0_yvgquaabgclgaylc978.jpg"/>

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.

reboot Restart is not supported under sh-4.1 , you must exit to bash-4.1 to restart the system using reboot, then restart the system and Select " Bootfrom Local drive"This option will start entering the system normally. Small White experimental notes, the wrong place also ask the big God to correct.



This article is from the "Communication" blog, please be sure to keep this source http://sxct168.blog.51cto.com/824373/1619921

CentOS Rescue Mode Lab Notes

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.