Linux Lifeline-Rescue mode and single-user mode!

Source: Internet
Author: User

Rescue mode:

What is the role of rescue mode?

1, you can change the root password;

2, restore the hard disk, file system operation;

3, the system can not be started, the rescue mode to repair the parameters and then start;

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Enter Rescue mode:

1, first boot into the BIOS settings, boot boot sequence for CD-ROM priority to boot CD drive using the keypad of the +-number adjustment in the upper and lower order; set up and save and exit. (Remember to prepare the system image.)

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/86/AF/wKioL1fHt1_inFX2AAAqsHagi2c059.png-wh_500x0-wm_3 -wmp_4-s_2686757586.png "title=" 1.png "alt=" Wkiol1fht1_infx2aaaqshagi2c059.png-wh_50 "/>

2, restart the system after entering the installation boot menu, the up and down keys moved to the Rescue Install system rescue installation systems;

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/86/AF/wKioL1fHt9rT_IF3AAc00xzQBp0802.png-wh_500x0-wm_3 -wmp_4-s_2175173458.png "title=" 2.png "alt=" Wkiol1fht9rt_if3aac00xzqbp0802.png-wh_50 "/>

3, choose the language, keep the default English (of course, Simplified Chinese can also)

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/86/B0/wKiom1fHuB3T4-21AAA_oVk9PvM506.png-wh_500x0-wm_3 -wmp_4-s_1099161431.png "title=" 2.png "alt=" Wkiom1fhub3t4-21aaa_ovk9pvm506.png-wh_50 "/>

4, select the keyboard type, keep the default us

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/86/B0/wKiom1fHuDqCsvuUAAA8VVkFduA880.png-wh_500x0-wm_3 -wmp_4-s_873977302.png "title=" 1.png "alt=" Wkiom1fhudqcsvuuaaa8vvkfdua880.png-wh_50 "/>

5, whether to start the network, you need to choose according to your actual situation, if you need to copy data through the network, select Yes;

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/AF/wKioL1fHuUHTLSNMAABHgoZ4JFA911.png-wh_500x0-wm_3 -wmp_4-s_3706412084.png "title=" 2.png "alt=" Wkiol1fhuuhtlsnmaabhgoz4jfa911.png-wh_50 "/>

6, enter into the rescue interface, select Continue

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/86/AF/wKioL1fHuYvQ2ndlAABRSiYQNEQ220.png-wh_500x0-wm_3 -wmp_4-s_689250743.png "title=" 2.png "alt=" Wkiol1fhuyvq2ndlaabrsiyqneq220.png-wh_50 "/>

7, the system is mounted under/mnt/sysimage if you want to run the Chroot/mnt/sysimage command in the root environment

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M00/86/AF/wKioL1fHub3g_4mnAABAZ1apVOk446.png-wh_500x0-wm_3 -wmp_4-s_3834323985.png "title=" 2.png "alt=" Wkiol1fhub3g_4mnaabaz1apvok446.png-wh_50 "/>

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/86/B0/wKiom1fHueHiQu0DAAAy29LvjpI872.png-wh_500x0-wm_3 -wmp_4-s_950204030.png "title=" 1.png "alt=" Wkiom1fhuehiqu0daaay29lvjpi872.png-wh_50 "/>

8, three kinds of options: Shell into the command line mode, FAKD is the diagnostic mode; reboot restart the computer; Select shell for the time being.

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/86/B0/wKiom1fHuhXyOlX_AAA3XULG-Ew852.png-wh_500x0-wm_3 -wmp_4-s_2948942676.png "title=" 2.png "alt=" Wkiom1fhuhxyolx_aaa3xulg-ew852.png-wh_50 "/>

9. Enter the shell command line and the prompt is bash-4.1#

650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M00/86/B0/wKiom1fHuj2DwwzrAAA0nSGcHI8063.png-wh_500x0-wm_3 -wmp_4-s_2315372960.png "title=" 1.png "alt=" Wkiom1fhuj2dwwzraaa0nsgchi8063.png-wh_50 "/>

ls/mnt/sysimage/displays the mounted directory as the root directory of the file, and executes chroot/mnt/sysimage/to move the files in the/mnt/sysimage/directory to the root directory;

650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/86/B0/wKiom1fHunawXmw-AABIaVIddr8081.png-wh_500x0-wm_3 -wmp_4-s_355646263.png "title=" 1.png "alt=" Wkiom1fhunawxmw-aabiaviddr8081.png-wh_50 "/>

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/86/B0/wKiom1fHuqfAlkvEAAA5hUfvjjQ432.png-wh_500x0-wm_3 -wmp_4-s_1563056209.png "title=" 2.png "alt=" Wkiom1fhuqfalkveaaa5hufvjjq432.png-wh_50 "/>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Single-User mode:

What is the use of single-user mode?

1, can change the root password, (enter single user mode does not require a password)--more commonly used

2, the system is not fully operational, through the single-user mode to troubleshoot.

3, try to repair.


Single-User mode entry:

1, when the system starts the interface, press "E" key, enter the editing mode.

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/86/B0/wKiom1fHvQyS2jUgAAA7s7dJe1Q093.png-wh_500x0-wm_3 -wmp_4-s_2903660058.png "title=" 1.png "alt=" Wkiom1fhvqys2jugaaa7s7dje1q093.png-wh_50 "/>

2, then press E, enter the editing page, in the appearance of the kernel the end of the line plus single or 1.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M02/86/B0/wKiom1fHvU6S4SZqAABA3D8pi5U567.png-wh_500x0-wm_3 -wmp_4-s_1619104640.png "title=" 1.png "alt=" Wkiom1fhvu6s4szqaaba3d8pi5u567.png-wh_50 "/>

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/86/B0/wKiom1fHviXArhVjAAA25W_yqII244.png-wh_500x0-wm_3 -wmp_4-s_3603372967.png "title=" 1.png "alt=" Wkiom1fhvixarhvjaaa25w_yqii244.png-wh_50 "/>

3, b restart

650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M01/86/B0/wKioL1fHvlqgidc9AABZ4IlKNUY385.png-wh_500x0-wm_3 -wmp_4-s_538188027.png "title=" 1.png "alt=" Wkiol1fhvlqgidc9aabz4ilknuy385.png-wh_50 "/>

Here, let's start your operation!

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



This article from the "[email protected]" blog, declined to reprint!

Linux Lifeline-Rescue mode and single-user mode!

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.