Rescue mode for Linux

Source: Internet
Author: User

I. What is rescue mode

Rescue mode is a pattern that is used to save you from a situation. In normal operation, your Linux system uses files located on the system's hard drive to handle everything-running programs, storing files, and so on. However, in some cases, Linux may not be fully operational and you may not be able to access files on the system's hard disk. With rescue mode, you can access files stored on the system's hard drive even if you can't run Red Hat Enterprise Linux from your hard drive.


Two. The role of the rescue model

Someone saw the first paragraph, will say, the system is broken, we can enter the single-user mode Ah, then if we do not enter the single-user mode, and even unable to open the Linux system, what should be done? In this way, we can see the effect of the rescue mode.


In simple terms, the rescue model generally has these points:

1. Change the root password;

2. Recover hard disk, file system operation

3. System cannot start (configuration error, boot error, etc.)


Three. Difference between rescue mode and single-user mode

There is a big difference between rescue mode and single user mode.

Single-user mode is the same as when the system is installed on a running level in the system and the Windows security mode is the same

The rescue mode is equivalent to the win PE system of Window System

Win PE is a very small memory operating system, and rescue is similar

Therefore, single-user mode can be used as long as the system is installed.

And rescue mode requires a system CD


Four. How to activate rescue mode

1. Boot into BIOS, (different computer boot BIOS is different)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/5C/wKioL1XMdLWjUBXPAAFjjRsXASE959.jpg "title="% @XKE ' 0k4opr ' C$3479hsyb.png "alt=" Wkiol1xmdlwjubxpaafjjrsxase959.jpg "/>


2. Select the boot sequence in the boot option;

3. Put the CD ROM driver into the first one, press F10 to save; ( use the keypad's +-number to adjust the upper and lower order)

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/71/60/wKiom1XMcdDTG6qlAAIc9wbl2JE454.jpg "title=" 1JGFMJO) hg$]%4}]3@8265v.png "alt=" Wkiom1xmcddtg6qlaaic9wbl2je454.jpg "/>

4. After rebooting the system, go to the Installation boot menu, move up and down to rescue install system rescue installation;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/5F/wKiom1XMahXh_UHeAAFIMNNsSQ8450.jpg "title=" 3.png " alt= "Wkiom1xmahxh_uheaafimnnssq8450.jpg"/>

5. Select the language, keep the default English, (even if we choose Chinese Simplified, also can not use, lost Lei Loumu Ah 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0013.gif "alt=" j_0013.gif "/>"

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/5C/wKioL1XMbOWxtoyhAAEcuCoLt1E498.jpg "title=" 4.png " alt= "Wkiol1xmbowxtoyhaaecucolt1e498.jpg"/>

6. Select the type of keyboard to keep the default us

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/5C/wKioL1XMbUfQWwjBAADybhNx-co915.jpg "title=" 5.png " alt= "Wkiol1xmbufqwwjbaadybhnx-co915.jpg"/>

7. Whether to start the network, you need to choose according to your own actual situation, if you need to copy data through the network, select Yes, here we choose No;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/5F/wKiom1XMa6TigUY5AAC3Rd3OsV4791.jpg "title=" 6.png " alt= "Wkiom1xma6tiguy5aac3rd3osv4791.jpg"/>

8. Go to the rescue interface and select Continue

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/5F/wKiom1XMbDKjenplAAK783k9t88989.jpg "title=" 7.jpg " alt= "Wkiom1xmbdkjenplaak783k9t88989.jpg"/>

9. Remind you again

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/5C/wKioL1XMbrKCCLVWAAFQB09c5Dg931.jpg "title=" 8.png " alt= "Wkiol1xmbrkcclvwaafqb09c5dg931.jpg"/>

10. There are three options: the shell enters command line mode; FAKD is the diagnostic mode; reboot restarts the computer; we choose the shell here.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/5C/wKioL1XMbvLjrdVrAAC5jsf6buA451.jpg "title=" 9.png " alt= "Wkiol1xmbvljrdvraac5jsf6bua451.jpg"/>

11. Enter the shell command line, to return to the original system first cd/mnt/sysymage/

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/71/5C/wKioL1XMcqnQ-0KOAAFpwrxfvGY682.jpg "title=" 12.jpg "alt=" Wkiol1xmcqnq-0koaafpwrxfvgy682.jpg "/>

12. Execute chroot/mnt/sysimage/to move the files in the/mnt/sysimage/directory to the root directory;

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/71/5C/wKioL1XMcLrx099BAARh4xTfdbw185.jpg "title=" 11.jpg "alt=" Wkiol1xmclrx099baarh4xtfdbw185.jpg "/>

13. If you want to change the password can passwd change the password, then exit reboot exit

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/71/5F/wKiom1XMcAHxV_jqAADHZQout0M282.jpg "title=" 12.png "alt=" Wkiom1xmcahxv_jqaadhzqout0m282.jpg "/>



That way, it's done, change the password, restore the system 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0013.gif "alt=" j_0013.gif "/>


Good tired, do not say 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0013.gif "alt=" J_0013.gif "/>

This article from "Samoyed Sadness" blog, reproduced please contact the author!

Rescue mode for Linux

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.